On Feb 16, 12:13 pm, Gonzalo Servat <gser...@gmail.com> wrote:
> On Mon, Feb 16, 2009 at 5:23 AM, Miles J <mileswjohn...@gmail.com> wrote:
>
> > I do __($var) all the time, just make sure the value of var exists in
> > default.po.
>
> > $var = 'name';
>
> > msgid "name"
> > msgstr "Name"
>
> I'm not sure I follow your example. You're basically saying add the
> translation manually for 'name' to the .po file. Am I right? If so, it
> doesn't solve my problem as the next time I do a cake i18n extract, it will
> create a .pot file *without* the dynamic keys like "name" and poEdit will
> complain saying it is an obsolete key as it only exists in the .po file and
> not the .pot file, and it will remove the translation from the po file.

IMO you'd be better off using __d('stuff', $xyz) - that way your
'manual' entries are in a seperate po(t?) file to the file cake
extract writes to. See http://api.cakephp.org/file/basics.php#function-__d

hth,

AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to