Page 1 of 1
Changing text in comment form
Posted: Tue Aug 08, 2006 12:09 pm
by substream
Hello!
I tried to search for it but didn't find anything.
So here I go:
I would like to change the text you can see next to comment form fields.
e.g. it should say "what's your name" instead of just "name" (just an example...)
I cannot find a document where to change those words, the lang-files seem to change only the appearence of the administration-panel.
Thanks for helping out.
Heiko
Posted: Tue Aug 08, 2006 12:20 pm
by d_cee
Hi
I think you should find all the text you want to change in
lang/serendipity_lang_en.inc.php
Dave
Re: Changing text in comment form
Posted: Tue Aug 08, 2006 12:50 pm
by garvinhicking
Hi!
You can also edit the commentform.tpl file and replace {$CONST.XXX} there with the strings you want to show
Best regards,
Garvin
Posted: Tue Aug 08, 2006 2:17 pm
by stm999999999
Or you make a lang_en.inc.php in your template-directory with the wanted declarations and add this line in your serendipity_config_local.inc.php:
$serendipity['template_individuell_text'] = true;
So, your declarations will survive an update of s9y. (even a modified lang/serendipity_lang_en.inc.php will be overridden by a new s9y-version - a lang_en.inc.php in the template-dir should be untouched)*
(but only if you have one of the latest nightlies!)
* @garvin: It should, or? Whats about a template which has his own lang-file? This will override the user-modified? Could this be a problem for the few templates, which are carried by the core-installation?
Posted: Tue Aug 08, 2006 3:22 pm
by garvinhicking
Hi!
That's the wrong variable, you would need
Code: Select all
$serendipity['useTemplateLanguage'] = true;
However modifying the language file in this case is not the best thing, because it would replace fields like "Name" - and those are used in other contexts as well, where "Enter your name" would be inappropriate.
Best regards,
Garvin
Posted: Tue Aug 08, 2006 4:57 pm
by stm999999999
That's the wrong variable, you would need
Code: Select all
$serendipity['useTemplateLanguage'] = true;
Argh, c&p from a wrong, old, personal version
However modifying the language file in this case is not the best thing, because it would replace fields like "Name" - and those are used in other contexts as well, where "Enter your name" would be inappropriate.
OK, yes: When you want to alter a phrase, which occurs on many places, but you only want to alter the phrase at a single place without a side-effect it would be better to take new language-constants at this place.