/**
  * Starts the language file generation.
  *
  * @return void
  */
 public static function generateLanguageFiles()
 {
     // The applications where we need to translate.
     self::$applications = Config::get('system.translated_applications');
     echo "<p></p><span style='color:darkred'>Generating language files</span></p>";
     echo "<ul>";
     foreach (self::$applications as $application => $languages) {
         echo "<li style='color: #2b542c'>APPLICATION NAME: " . $application . "<li>";
         foreach ($languages as $language) {
             echo "<ul>";
             echo "<li style='color: #2e6da4'>[LANGUAGE: " . $language . "]</li>";
             $languageModel = new Language($language, $application);
             if ($languageModel->getFile()) {
                 echo "<span style='color:orangered'>OK</span>";
             } else {
                 throw new NotGenerateFileException('Unable to generate language file!');
             }
         }
         echo "</ul>";
     }
     echo "</ul>";
     return true;
 }
Example #2
0
 public function getAppletPath()
 {
     return Config::get('system.paths.root') . '/cache/flash';
 }
 protected function getLanguageCachePath($application)
 {
     return Config::get('system.paths.root') . '/cache/' . $application . '/';
 }