예제 #1
0
 /**
  * @depends testLoadLang
  */
 public function testValueLang()
 {
     global $base_path;
     I18n::$base_path = $base_path;
     I18n::$arr_i18n = ['en-US'];
     I18n::$language = 'en-US';
     $this->assertEquals('This is a simple text', I18n::$lang['common']['simple_text']);
 }
예제 #2
0
<?php

use PhangoApp\PhaI18n\I18n;
/**
* Configure default internazionalitation
*/
I18n::$modules_path = 'vendor';
I18n::$arr_i18n = array('es-ES', 'en-US');
I18n::$language = 'en-US';