Пример #1
0
 protected function logUndefinedLocaleString($string, $package)
 {
     $package = (string) $package;
     if (isset($this->undefinedStrings[$this->currentLocale][$package][$string])) {
         return;
     }
     Log::warning("I18n: locale string not found: '{$string}'");
     is_file($this->undefinedStringsLogFile) and $this->undefinedStrings = (include $this->undefinedStringsLogFile);
     $this->undefinedStrings[$this->currentLocale][$package][$string] = true;
     fileSaveArray($this->undefinedStringsLogFile, $this->undefinedStrings);
 }