====
composer install eve-php/eve-plugin-l10n
====
- Add this in public/index.php towards the top of the bootstrap chain.
//l10n
->add(Eve\Plugin\L10n\Setup::i()->import(array(
//Default
'default' => array(
'name' => 'Website',
'locale' => '%',
'currency' => 'USD',
'i18n' => array('en_US'),
),
//GLOBAL Domain
'example.com' => 'default',
//Other Domains
'sub.example.com' => array(
'name' => 'Philippines Website',
'location' => 'Philippines',
'locale' => 'philippines',
'currency' => 'PHP',
'i18n' => array('tg_PH', 'en_US'),
)
))
-
Customize as needed.
-
Create both
settings/i18n/en_US.php
andsettings/i18n/tg_PH.php
. -
Add this to both files
<?php //-->
return array(
'Cancel' => 'Cancel',
'Edit' => 'Edit',
'Loading...' => 'Loading...',
'Login' => 'Login',
'Logout' => 'Logout',
'Name must be entered.' => 'Name must be entered.',
'Remove' => 'Remove',
'Sign Up' => 'Sign Up',
'Update' => 'Update',
'User does not exist!' => 'User does not exist!',
'View Products' => 'View Products',
);
?>
- Done ;)