Created
May 2, 2016 00:40
-
-
Save soelen/63fdae258a01776358d936b986f9f50d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// config/app.php | |
'App' => [ | |
'defaultLocale' => env('APP_DEFAULT_LOCALE', 'es'), | |
// ... | |
], | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//config/bootstrap.php | |
ini_set('intl.default_locale', 'es'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Locale/es/default.po | |
#: Controller/UsersController.php:52;77 | |
msgid "The user has been saved." | |
msgstr "El usuario ha sido creado" | |
#: Controller/UsersController.php:55;80 | |
msgid "The user could not be saved. Please, try again." | |
msgstr "El usuario no ha sido creado. Por favor, inténtelo de nuevo" | |
#: Controller/UsersController.php:99 | |
msgid "The user has been deleted." | |
msgstr "El usuario ha sido eliminado" | |
#: Controller/UsersController.php:101 | |
msgid "The user could not be deleted. Please, try again." | |
msgstr "El usuario no se ha eliminado. Por favor inténtelo de nuevo" | |
#: Template/Element/carousel.ctp:15;38 | |
msgid "Hello!" | |
msgstr "Hola" | |
#: Template/Element/carousel.ctp:16;39 | |
msgid "I'm available for work." | |
msgstr "Estoy lista para trabajar" | |
#: Template/Element/carousel.ctp:25 | |
msgid "Available for:" | |
msgstr "Disponible para" | |
#: Template/Element/carousel.ctp:27 | |
msgid "Quality Control" | |
msgstr "Control de Calidad" | |
#: Template/Element/carousel.ctp:28 | |
msgid "Process Analyst" | |
msgstr "Analista de Procesos OyM" | |
#: Template/Element/footer.ctp:9 | |
msgid "Menu" | |
msgstr "Menú" | |
#: Template/Element/footer.ctp:17 | |
msgid "Gallery" | |
msgstr "Galería" | |
#: Template/Element/footer.ctp:30 | |
msgid "Have a question?" | |
msgstr "¿Preguntas?" | |
#: Template/Element/footer.ctp:34 | |
msgid "Email address" | |
msgstr "Correo Electrónico" | |
#: Template/Element/footer.ctp:42 | |
msgid "Get in touch!" | |
msgstr "Mantén el contacto" | |
#: Template/Element/footer.ctp:44 | |
msgid "Industrial Engineer for Hire" | |
msgstr "Ingeniero industrial para Contrartar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//Controller/PagesController.php | |
// at the top | |
use Cake\I18n\I18n; | |
//inside a view method, homepage | |
public function home() | |
{ | |
I18n::locale('es'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment