Page 1 of 1
Editing info text in Contact form
Posted: Mon Dec 30, 2013 5:25 pm
by Huhu
Just a quick question: I would like to change (id est, translate) the emoticon user information in comments/contact forms, but can`t find where the lang.inc.php is located. Not in the contact form, spamstop or comment plug-in folder, anyway.
I would like to translate the following string:
Code: Select all
Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
Thanks!
Re: Editing info text in Contact form
Posted: Mon Dec 30, 2013 6:30 pm
by Don Chambers
Those language constants are defined in the file /plugins/serendipity_event_s9ymarkup/ and the UTF-8 versions are in the subfolder ../UTF-8/.
For example, the english version is /plugins/serendipity_event_s9ymarkup/lang_en.inc.php, and the english UTF-8 is /plugins/serendipity_event_s9ymarkup/UTF-8/lang_en.inc.php.
Re: Editing info text in Contact form
Posted: Wed Jan 01, 2014 1:23 pm
by Huhu
Thanks! Found it. The line
Code: Select all
Standard emoticons like :-) and ;-) are converted to images
seems to be located in emoticate.
Which just leads me to another question: It seems the fault was not with the lang file, but that s9y didn`t save the language setting in General Settings -- it always switches back to default (English) for some reason. Any clues?
Thanks and happy new year!
Re: Editing info text in Contact form
Posted: Fri Jan 03, 2014 4:53 pm
by Timbalu
Huhu wrote:... it always switches back to default (English) for some reason. Any clues?
This is the default behaviour overall. If Serendipity can't find any localized constant definition, it falls back to <en>. If you really need to disable/silence a localized constant, just set it to an empty '' string in the value part.
Apart from this, the string mentioned
should already be localized.
If s9y does'nt seem to "remember" the language set in "General Settings", you have to set your personal language in "Personal Settings" too. If that all still does not work, you probably have a cookie problem.
Re: Editing info text in Contact form
Posted: Mon Jan 06, 2014 11:54 am
by Huhu
Okay, thanks, it works if the amin panel is set to the same language as the blog should be.