Ejemplo n.º 1
0
 /**
  * Load a Language from Identifier
  *
  * @param string $langIdentifier
  *
  * @return bool
  *
  * @since 1.0.0
  */
 public function loadLanguageIdentifier($langIdentifier, $suffix = '')
 {
     $lang_path = Finder::getInstance()->getPath($langIdentifier, $suffix . '.ini');
     if (file_exists($lang_path)) {
         $this->strings = empty($this->strings) ? parse_ini_file($lang_path) : array_merge($this->strings, parse_ini_file($lang_path));
         return true;
     }
     return false;
 }