Пример #1
0
 public function testOptionLocaleFilename()
 {
     $adapter = new Adapter\ArrayAdapter(dirname(__FILE__) . '/_files/testarray', 'de_DE', array('scan' => Translator\Translator::LOCALE_FILENAME));
     $this->assertEquals(array('de_DE' => 'de_DE', 'en_US' => 'en_US', 'ja' => 'ja'), $adapter->getList());
     $this->assertEquals('Nachricht 8', $adapter->translate('Message 8'));
 }