Beispiel #1
0
 public static function loadAdminLanguageFile($langtag = "")
 {
     $lang = JFactory::getLanguage();
     if ($langtag == "") {
         $langtag = $lang->getTag();
     }
     $langpatch = JPATH_ROOT . '/administrator/components/com_jshopping/lang/';
     if (file_exists($langpatch . 'override/' . $langtag . '.php')) {
         include_once $langpatch . 'override/' . $langtag . '.php';
     }
     if (file_exists($langpatch . $langtag . '.php')) {
         include_once $langpatch . $langtag . '.php';
     } else {
         include_once $langpatch . 'en-GB.php';
     }
     JSFactory::reloadConfigFieldTLF();
 }