Пример #1
0
 public static function __($key)
 {
     $res = $key;
     $locale = Session::getInstance()->get('locale');
     if (null == L::$locstrngs) {
         switch ($locale) {
             case 'de_DE':
                 self::$locstrngs = self::$de_DE;
                 break;
         }
     }
     if (isset(self::$locstrngs[$key])) {
         $res = self::$locstrngs[$key];
     }
     return $res;
 }