Wednesday, March 30, 2011

Re: Multilingual website - Entries in .po file

On Thu, Mar 31, 2011 at 12:19 AM, <jairishab@gmail.com> wrote:
> Hi
>
> I tried searching on this a lot. I want to make my website multilingual. So say for french, I wrote the following entry in the default.po file for fre:
> msgid "Hello"
> msgstr "Bonjour"
>
> Now, the issue I am facing is that I'm unable to add more entries here. I tried,
> msgid "Hello" "str2"
> msgstr "Bonjour" "translation for str2"
>
> I tried comma separated too. I tried providing another set of msgid n msgstr pair in the next line. But none of that worked.
>
> Can anybody tell me how to add to this list?


You need separate msgid, msgstr pairs for each translation.

msgid "Hello"
msgstr "Bonjour"

msgid "Goodbye"
msgstr "Au revoir"

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