Monday, January 31, 2011

Internationlization Doesn't Seem to Work.

Hello, I'm trying to get my application to use a different language
using cake's i18n. I believe I have my application set up properly.

core.php
Configure::write('Config.language', 'ger');

Posts Controller Flash message:
$this->Session->setFlash(__('You must be registered before you can ask
a question.', true), 'error');

app/locale/ger/LC_MESSAGES/default.po (created using i18n console
then poedit)
The translation should be:
Sie müssen registriert sein, bevor Sie eine Frage kann fragen.

But my application is not using the translated version from my .po
file. Its still using the english version.

Am I missing something here? Thanks for any help.

--
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

No comments: