> msgid "Tomatoes"
> msgstr "Tomates"

That's a way to do that, but same things, you will have to list ALL
possibilities. If data comes from DB, it's almost impossible.

Another way if data comes from DB, you can use the Translate behavior.
It permits you to have some fileds in several languages.
Check this thread about this feature:
http://groups.google.com/group/cake-php/browse_frm/thread/889c63d32cfdf69/894514404c1f133f?lnk=gst&q=translate&rnum=2#894514404c1f133f

On 14 juin, 12:00, Gilles Dubois <[EMAIL PROTECTED]> wrote:
> I want to translate in french "Edit" to "Modifier" and "Tomatoes" to
> "Tomates".
>
> I don't think that the first methos works. If in my default.po i put :
>
> msgid "Edit %s"
> msgstr "Modifier %s"
>
> The result is "Modifier Tomatoes" (a mixture of French and English)
>
> If it works for you, can you explain me what you put in your
> default.po ?
>
> I think that "sprintf(__("Edit %s", true), __($name, true))" could be
> a good method ?
> With :
>
> msgid "Edit"
> msgstr "Modifier"
>
> msgid "Tomatoes"
> msgstr "Tomates"


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to