read_translations_from_file() public method

public read_translations_from_file ( $file_name, $project = null )
示例#1
0
 public function test_read_translations()
 {
     $translations = $this->format->read_translations_from_file($this->translation_file, (object) array('id' => 1));
     foreach ($this->entries as $sample) {
         list($context, $original, $translation, $comment) = $sample;
         $this->assertEquals($translation, $translations->translate($original, $context));
     }
 }