2017 © Pedro Peláez
 

plugin eve-plugin-l10n

Localization Plugin for the Eve Framework

image

eve-php/eve-plugin-l10n

Localization Plugin for the Eve Framework

  • Tuesday, November 10, 2015
  • by cblanquera
  • Repository
  • 3 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

logo Eve l10n Plugin

Localization and Internationalization for the Eve Framework

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

====, (*1)

, (*2)

Install

composer install eve-php/eve-plugin-l10n, (*3)

====, (*4)

, (*5)

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., (*6)

  2. Create both settings/i18n/en_US.php and settings/i18n/tg_PH.php., (*7)

  3. Add this to both files, (*8)

<?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 ;)

The Versions

10/11 2015

dev-master

9999999-dev http://eve.openovate.com

Localization Plugin for the Eve Framework

  Sources   Download

MIT

The Requires

 

by Christian Blanquera

plugin eve