19 public static function get($type, $phraseCode =
null, $lang =
null)
21 $path = self::resolveType($type);
24 return is_string($phraseCode)?
'': Array();
27 if (!is_string($lang))
32 if (!isset(self::$MESS[$type][$lang]))
34 self::$MESS[$type][$lang] = \Bitrix\Main\Localization\Loc::loadLanguageFile($_SERVER[
'DOCUMENT_ROOT'].$path, $lang);
37 if (is_string($phraseCode))
39 return isset(self::$MESS[$type][$lang][$phraseCode])? self::$MESS[$type][$lang][$phraseCode]:
'';
43 return isset(self::$MESS[$type][$lang])? self::$MESS[$type][$lang]: Array();