I'm almost sure you can do it like that:
Put App::import('Core', 'l10n'); in AppController
and your po file sould be like that:
msgid "January"
msgstr "Janeiro"
msgid "February"
msgstr "Fevereiro"
msgid "March"
msgstr "Março"
msgid "April"
msgstr "Abril"
msgid "May"
msgstr "Maio"
etc... (that's branzilian portuguese by the way)
More info: http://book.cakephp.org/2.0/en/core-libraries/internationalization-and-localization.html
if you're brazilian:
http://blog.thiagobelem.net/traduzindo-o-nome-dos-meses-no-cakephp/
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment