Skip to content

Instantly share code, notes, and snippets.

@patrickmaciel
Created August 1, 2012 01:15
Show Gist options
  • Save patrickmaciel/3222238 to your computer and use it in GitHub Desktop.
Save patrickmaciel/3222238 to your computer and use it in GitHub Desktop.
Translate dates in CakePHP
<?php
// in core.php
Configure::write('Config.language', 'cpp');
// in app/Locale/cpp/LC_MESSAGES/default.po
#: /cake/libs/view/helpers/form.php:1661
msgid "February"
msgstr "Fevereiro"
#: /cake/libs/view/helpers/form.php:1662
msgid "March"
msgstr "Março"
#: /cake/libs/view/helpers/form.php:1663
msgid "April"
msgstr "Abril"
#: /cake/libs/view/helpers/form.php:1664
msgid "May"
msgstr "Maio"
#: /cake/libs/view/helpers/form.php:1665
msgid "June"
msgstr "Junho"
#: /cake/libs/view/helpers/form.php:1666
msgid "July"
msgstr "Julho"
#: /cake/libs/view/helpers/form.php:1667
msgid "August"
msgstr "Agosto"
#: /cake/libs/view/helpers/form.php:1668
msgid "September"
msgstr "Setembro"
#: /cake/libs/view/helpers/form.php:1669
msgid "October"
msgstr "Outubro"
#: /cake/libs/view/helpers/form.php:1670
msgid "November"
msgstr "Novembro"
#: /cake/libs/view/helpers/form.php:1671
msgid "December"
msgstr "Dezembro"
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment