예제 #1
0
 public function testIsoEncoding()
 {
     $adapter = new Adapter\Qt(__DIR__ . '/_files/translation_en3.ts', 'fr');
     $this->assertEquals('Message 1 (en)', $adapter->translate('Message 1'));
     $this->assertEquals('Message 1 (en)', $adapter->_('Message 1'));
     if (PHP_OS == 'AIX') {
         return;
         // 'Charsets below are not supported on AIX';
     }
     $this->assertEquals(iconv('UTF-8', 'ISO-8859-1', 'Küchen Möbel (en)'), $adapter->translate('Cooking furniture'));
     $this->assertEquals('Cooking furniture (en)', $adapter->translate(iconv('UTF-8', 'ISO-8859-1', 'Küchen Möbel')));
 }