Monday, July 25, 2011

Multilanguage in CakePHP 1.3

Hello,

i search a whole time in the web for multilanguage in CakePHP. I found
that must create a folder in /app/locale/deu/LC_MESSAGE with a file
default.po. These musst filled with:

msgid "test"
msgstr "here the text"

that could use in the *.ctp with:

<?php __('test');?>

if the entry not found it would write "test".

Default is in CakePHP "en".

Now i've write in /app/locale/eng/LC_MESSAGE/default.po for testing
the same text like in the german version, but it writes always the
"msgid".

I've never managed to write the "msgstr".

Can anyone help me with my problem :(

Kind regards
gloop

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

Post a Comment