예제 #1
0
 /**
  * (non-PHPdoc)
  *
  * @see \PhraseApp\Synchronize\Files\ReaderInterface::read()
  */
 public function read(Synchronize $synchronize)
 {
     foreach ($this->collectFiles() as $fileEntry) {
         $translations = $this->readFile($fileEntry['file'], $fileEntry['name']);
         ksort($translations, SORT_NATURAL);
         $synchronize->addTranslations($fileEntry['locale'], $translations);
     }
     return true;
 }