Thursday, September 3, 2009

Re: Error on syntax of localization file default.po

Because your doing it wrong. Should be done like so:

English version:
en/errors.po

msgid "fileExtRestricted"
msgstr "The submitted file extension is not permitted, only %s
permitted."

Foreign versions:
sp/errors.po

msgid "fileExtRestricted"
msgstr "L'estensione del file caricato non è permessa, solo %s sono
permesse."

All the msgids/slugs must be the same, all that changes is the msgstr.

So once you have done that, in your view your would do:

sprintf(__d('errors', 'fileExtRestricted', true), 'jpeg, gif, png');
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: