Skip to content

Eve-PHP/eve-plugin-l10n

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo Eve l10n Plugin

Localization and Internationalization for the Eve Framework

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

====

Install

composer install eve-php/eve-plugin-l10n

====

Usage

  1. 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'),
	)
))
  1. Customize as needed.

  2. Create both settings/i18n/en_US.php and settings/i18n/tg_PH.php.

  3. 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',
);
?>
  1. Done ;)

About

Localization and Internationalization for the Eve Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages