10446 Posts in 2223 Topics by 1719 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1098 Views |
-
[userforms] Translation of messages

3 May 2009 at 10:23pm Last edited: 3 May 2009 10:23pm
Hi,
I search, for a moment, how to translate all the messages who appears, for example, when fields are not valid.
For now, the default language is english, but i want to change it.I see there was a "lang" directory in the module. How can I use it ?
Thanx,
Fabrice
-
Re: [userforms] Translation of messages

3 May 2009 at 10:54pm
Hello fabrice,
in your config.php you have to activate the multilingial (i18n) support:
i18n::enable();
Then you have to set your system language:i18n::set_locale('de_DE');
The multilingual support is right buggy in that module. So you have to customise some code. The validation messages e.g. "is a required field" are javascript. Find that file with an IDE codesearch and replace that text.
Good luck ;)
-
Re: [userforms] Translation of messages

3 May 2009 at 11:07pm Last edited: 4 May 2009 4:55am
Hi,
I have already done this :
i18n::enable();
//i18n::set_default_lang('fr');
i18n::set_locale('fr_FR');
But, the administration backoffice send me an error :
[User Error] Couldn't run query: SELECT Lang FROM SiteTree_lang GROUP BY Lang Table 'ss_bizup.sitetree_lang' doesn't existOk, for the rest, i modify the js files as you say.
So, I try to change to use the js file /sapphire/javascript/lang/fr_FR.js, but with this :
i18n::enable();
i18n::set_default_lang('fr');
i18n::set_locale('fr_FR');
... nothing change
Thanx
Fabrice -
Re: [userforms] Translation of messages

31 May 2009 at 12:04am
Hi __fabrice,
i had that problem,
I run: sake /db/build/
and the admin section is restored but the site still displays the problem.if i remove: i18n::set_default_lang('fr');
the site is displayed but no transplation
any ideas?
-
Re: [userforms] Translation of messages

31 May 2009 at 1:37am
Hi,
In my opinion, you must comment all the lines concerning the translation.
Fabrice
| 1098 Views | ||
|
Page:
1
|
Go to Top |



