Skip to content

Instantly share code, notes, and snippets.

@pedro-stanaka
Last active December 11, 2015 02:40
Show Gist options
  • Select an option

  • Save pedro-stanaka/b931d19a4072902e70d9 to your computer and use it in GitHub Desktop.

Select an option

Save pedro-stanaka/b931d19a4072902e70d9 to your computer and use it in GitHub Desktop.
//In config/bootstrap.php
/**
* Set the default locale. This controls how dates, number and currency is
* formatted and sets the default language to use for translations.
*/
ini_set('intl.default_locale', 'pt_BR');
// Part of my po file in: src/Locale/pt_BR
msgid "Actions"
msgstr "Ações"
msgid "New Accommodation"
msgstr "Nova acomodação"
// In view:
<h3><?= __('Actions') ?></h3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment