Parses a locale definition file following the POSIX standard
public static loadLocaleDefinition ( string $filename ) : mixed | ||
$filename | string | Locale definition filename |
return | mixed | Array of definitions on success or false on failure |
/** * testLoadLocaleDefinition method * * @return void */ public function testLoadLocaleDefinition() { $path = current(App::path('locales')); $result = I18n::loadLocaleDefinition($path . 'nld' . DS . 'LC_TIME'); $expected = array('zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'); $this->assertSame($expected, $result['day']); }