Small question about L10n: Configure::write('Config.language', 'de'); doesn't seem to do anything? --psybear
Hey everybody
I'm currently doing l10n for my web. I have browsed through some
articles, and their alltogehter-verdict was:
- Put "uses('L10n');" into your AppController.
- Put "Configure::write('Config.language', 'de');" into your
bootstrap.php File
- Change the display language by setting the session key which
overrides the configuration setting
So far, so good. Everything seems to work, except the
"Configure::write('Config.language', 'de');"!
I have 3 languages: german (de), french (fr) and italian (it). And for
some reason the default language always is italian, regardless of the
Configure::write(..) setting! Very strange.
my locale folder looks like so:
locale/
locale/deu/
locale/deu/LC_MESSAGES/
locale/deu/LC_MESSAGES/default.po
locale/fre/
locale/fre/LC_MESSAGES/
locale/fre/LC_MESSAGES/default.po
locale/ita/
locale/ita/LC_MESSAGES/
locale/ita/LC_MESSAGES/default.po
Any ideas?
Thanks, Josh
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home