Exemplo n.º 1
0
 private static function registerLanguage($languages)
 {
     foreach ($languages as $language) {
         $filename = TRANSLATIONS . $language . "_translations.json";
         if (file_exists($filename)) {
             $lang_array = json_decode(file_get_contents($filename), true);
             self::$languages = array_merge(self::$languages, array($language => $lang_array));
         }
     }
 }