i´ve use it like that __('test', true);
but also you have to define some vars to switch did from en to other lang
you?
2011/7/25 gloop <[email protected]>
> 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php