/** * Constructor */ function tx_kickstarter_wizard() { $this->modData = t3lib_div::_POST($this->varPrefix); $version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version); if ($version < 4006000) { $LOCAL_LANG = t3lib_div::readLLXMLfile(t3lib_extMgm::extPath('setup') . '/mod/locallang.xml', 'default'); // Getting the available languages $theLanguages = t3lib_div::trimExplode('|', TYPO3_languages); } else { /** @var $xliffParser t3lib_l10n_parser_Xliff */ $xliffParser = t3lib_div::makeInstance('t3lib_l10n_parser_Xliff'); $LOCAL_LANG = $xliffParser->getParsedData(t3lib_extMgm::extPath('setup') . '/mod/locallang.xlf', 'default'); /** @var $locales t3lib_l10n_Locales */ $locales = t3lib_div::makeInstance('t3lib_l10n_Locales'); // Getting the available languages $theLanguages = $locales->getLocales(); } foreach ($theLanguages as $val) { if ($val !== 'default') { if ($version < 4006000) { $localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val]); } else { $localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val][0]['target']); } $this->languages[$val] = $localLabel; } } asort($this->languages); // init reserved words $resWords = t3lib_div::makeInstance('tx_kickstarter_reservedWords'); $this->reservedWords = $resWords->getReservedWords(); }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath('ameos_formidable') . 'locallang.xml'; if (function_exists("t3lib_div::readLLXMLfile")) { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return array[] the found language labels */ public function includeLocalLang() { if (class_exists('t3lib_l10n_parser_Llxml')) { /** @var t3lib_l10n_parser_Llxml $xmlParser */ $xmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $localLanguage = $xmlParser->getParsedData(t3lib_extMgm::extPath('seminars') . 'locallang.xml', $GLOBALS['LANG']->lang); } else { $localLanguage = t3lib_div::readLLXMLfile(t3lib_extMgm::extPath('seminars') . 'locallang.xml', $GLOBALS['LANG']->lang); } return $localLanguage; }
function includeLocalLang() { $llFile = t3lib_extMgm::extPath('listfeusers') . 'pi3/locallang.xml'; if (class_exists('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser')) { $l10nParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser'); $LOCAL_LANG = $l10nParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } else { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Laden der Lokalisierung. * * @return array */ public function includeLocalLang() { $llFile = $this->getLocalLangFilePath(); if (tx_rnbase_util_TYPO3::isTYPO47OrHigher()) { $localizationParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $LOCAL_LANG = $localizationParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } else { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath('ke_troubletickets') . 'locallang.xml'; if ($this->getNumericTYPO3versionNumber() >= 6000000) { $xmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $LOCAL_LANG = $xmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } else { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath('adgallery') . 'locallang.xml'; if (self::intFromVer(TYPO3_version) < 6000000) { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } else { $parser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $LOCAL_LANG = $parser->getParsedData($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath('ods_osm') . 'locallang.xml'; $version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version); if ($version >= 4007000) { $object = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $LOCAL_LANG = $object->getParsedData($llFile, $GLOBALS['LANG']->lang); } else { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return array The array with language labels */ protected function includeLocalLang() { $llFile = t3lib_extMgm::extPath('medfancyboxcontent') . 'locallang.xml'; $version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version); if ($version < 4006000) { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } else { /** @var $llxmlParser t3lib_l10n_parser_Llxml */ $llxmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $LOCAL_LANG = $llxmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return array The array with language labels */ protected function includeLocalLang() { $llFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('listfeusers') . 'locallang.xml'; $version = class_exists('\\TYPO3\\CMS\\Core\\Utility\\VersionNumberUtility') ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version); if ($version < 4006000) { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } else { /** @var $llxmlParser t3lib_l10n_parser_Llxml */ $llxmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser'); $LOCAL_LANG = $llxmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
function BlumenbachOnline_readonly() { @ session_start(); // extract($GLOBALS); $this->workpath = $_SERVER['DOCUMENT_ROOT'] . "/typo3conf/ext/bolonline/mediafiles/"; $this->workpath_rel = "typo3conf/ext/bolonline/mediafiles/"; // put names for Table Columns from locallang_db to LOCAL_LANG $llFile = t3lib_extMgm :: extPath('bolonline') . 'locallang_db.xml'; $nochdazu = t3lib_div :: readLLXMLfile($llFile, $GLOBALS['TSFE']->lang); $this->LOCAL_LANG = array_merge_recursive($this->LOCAL_LANG, $nochdazu); $this->getTableColumns(); // sets variable $this->tableColumns // $this->fe_userdata = tx_sv_auth::getUser(); $this->fe_userdata = $GLOBALS["TSFE"]->fe_user->user; //require_once ('FileUploader.class.php'); //$this->FU = new FileUploader(); }
/** * Constructor */ function tx_kickstarter_wizard() { $this->modData = t3lib_div::_POST($this->varPrefix); // getting the available languages $theLanguages = t3lib_div::trimExplode('|', TYPO3_languages); $llFile = t3lib_extMgm::extPath('setup') . '/mod/locallang.xml'; $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, 'default'); foreach ($theLanguages as $val) { if ($val != 'default') { $localLabel = htmlspecialchars($LOCAL_LANG['default']['lang_' . $val]); $this->languages[$val] = $localLabel; } } asort($this->languages); // init reserved words $resWords = t3lib_div::makeInstance('tx_kickstarter_reservedWords'); $this->reservedWords = $resWords->getReservedWords(); }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $version = class_exists('t3lib_utility_VersionNumber') ? t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) : t3lib_div::int_from_ver(TYPO3_version); if ($version >= 6000000) { $llFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('myquizpoll') . 'locallang.xml'; $localLanguageParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser'); $LOCAL_LANG = $localLanguageParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } else { if ($version >= 4007000) { $llFile = t3lib_extMgm::extPath('myquizpoll') . 'locallang.xml'; $localizationParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $LOCAL_LANG = $localizationParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } else { $llFile = t3lib_extMgm::extPath('myquizpoll') . 'locallang.xml'; $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } } return $LOCAL_LANG; }
/** * Includes the locallang file for the 'tt_address' extension * * @return array The LOCAL_LANG array */ function includeLocalLang() { switch (TYPO3_branch) { case '4.5': $llFile = t3lib_extMgm::extPath('tt_address') . 'locallang.xml'; $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); break; case '4.6': case '4.7': $llFile = t3lib_extMgm::extPath('tt_address') . 'locallang.xml'; $llFileParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $LOCAL_LANG = $llFileParser->getParsedData($llFile, $GLOBALS['LANG']->lang); break; case '6.0': default: $llFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('tt_address') . 'locallang.xml'; $localLanguageParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser'); $LOCAL_LANG = $localLanguageParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the \$LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { if (TYPO3_VERSION_INTEGER < 6002000) { $llFile = t3lib_extMgm::extPath('ke_search') . 'pi2/locallang.xml'; } else { $llFile = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search') . 'pi2/locallang.xml'; } if (TYPO3_VERSION_INTEGER >= 4006000) { if (TYPO3_VERSION_INTEGER >= 7000000) { $xmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser'); } else { if (TYPO3_VERSION_INTEGER >= 6002000) { $xmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('t3lib_l10n_parser_Llxml'); } else { $xmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); } } $LOCAL_LANG = $xmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } else { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
/** * Includes a locallang-xml file and returns the $LOCAL_LANG array * Works only when the frontend or backend has been initialized with a charset conversion object. See first code lines. * * @param string $fileRef Absolute reference to locallang-XML file * @param string $langKey TYPO3 language key, eg. "dk" or "de" or "default" * @param string $charset Character set (optional) * @return array LOCAL_LANG array in return. */ public function readLLXMLfile($fileRef, $langKey, $charset = '') { if ($this->isVersion6) { return $this->getLlxmlParser()->getParsedData($fileRef, $langKey, $charset); } else { return t3lib_div::readLLXMLfile($fileRef, $langKey, $charset); } }
/** * Includes a locallang file and returns the $LOCAL_LANG array found inside. * * @param string Input is a file-reference (see t3lib_div::getFileAbsFileName). That file is expected to be a 'locallang.php' file containing a $LOCAL_LANG array (will be included!) or a 'locallang.xml' file conataining a valid XML TYPO3 language structure. * @param string Language key * @param string Character set (option); if not set, determined by the language key * @param integer Error mode (when file could not be found): 0 - call debug(), 1 - do nothing, 2 - throw an exception * @return array Value of $LOCAL_LANG found in the included file. If that array is found it will returned. * Otherwise an empty array and it is FALSE in error case. */ public static function readLLfile($fileRef, $langKey, $charset = '', $errorMode = 0) { $result = FALSE; $file = t3lib_div::getFileAbsFileName($fileRef); if ($file) { $baseFile = preg_replace('/\\.(php|xml)$/', '', $file); if (@is_file($baseFile . '.xml')) { $LOCAL_LANG = t3lib_div::readLLXMLfile($baseFile . '.xml', $langKey, $charset); } elseif (@is_file($baseFile . '.php')) { if ($GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset'] || $charset) { $LOCAL_LANG = t3lib_div::readLLPHPfile($baseFile . '.php', $langKey, $charset); } else { include $baseFile . '.php'; if (is_array($LOCAL_LANG)) { $LOCAL_LANG = array('default' => $LOCAL_LANG['default'], $langKey => $LOCAL_LANG[$langKey]); } } } else { $errorMsg = 'File "' . $fileRef . '" not found!'; if ($errorMode == 2) { throw new t3lib_exception($errorMsg); } elseif (!$errorMode) { debug($errorMsg, 1); } $fileNotFound = TRUE; } if (is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride'][$fileRef])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride'][$fileRef] as $overrideFile) { $languageOverrideFileName = t3lib_div::getFileAbsFileName($overrideFile); if (@is_file($languageOverrideFileName)) { $languageOverrideArray = t3lib_div::readLLXMLfile($languageOverrideFileName, $langKey, $charset); $LOCAL_LANG = t3lib_div::array_merge_recursive_overrule($LOCAL_LANG, $languageOverrideArray); } } } } if ($fileNotFound !== TRUE) { $result = is_array($LOCAL_LANG) ? $LOCAL_LANG : array(); } return $result; }
/** * Includes a locallang file and returns the $LOCAL_LANG array found inside. * * @param string Input is a file-reference (see t3lib_div::getFileAbsFileName) which, if exists, is included. That file is expected to be a 'local_lang' file containing a $LOCAL_LANG array. * @param string Language key * @return array Value of $LOCAL_LANG found in the included file. If that array is found it's returned. Otherwise an empty array */ function readLLfile($fileRef, $langKey) { $file = t3lib_div::getFileAbsFileName($fileRef); if ($file) { $baseFile = ereg_replace('\\.(php|xml)$', '', $file); if (@is_file($baseFile . '.xml')) { $LOCAL_LANG = t3lib_div::readLLXMLfile($baseFile . '.xml', $langKey); } elseif (@is_file($baseFile . '.php')) { include $baseFile . '.php'; } else { die('Filereference, "' . $file . '", not found!'); } } return is_array($LOCAL_LANG) ? $LOCAL_LANG : array(); }
/** * Includes the locallang file for this extension * * @return array The LOCAL_LANG array */ protected function includeLocalLang() { $llFile = t3lib_extMgm::extPath('nr_semantic_templates') . 'locallang_db.xml'; return t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); }
/** * Includes locallang files and returns raw $LOCAL_LANG array * * @param string $xmlFile Absolute reference to the ll-XML locallang file. * @return array LOCAL_LANG array from ll-XML file (with all possible sub-files for languages included) */ protected function getLLarray($xmlFile) { $ll = t3lib_div::xml2array(file_get_contents($xmlFile)); if (!isset($ll['data'])) { throw new RuntimeException('data section not found in "' . $xmlFile . '"', 1314187884); } $includedLanguages = array_keys($ll['data']); $LOCAL_LANG = array(); if ($this->version < 4006000) { foreach ($includedLanguages as $langKey) { $llang = t3lib_div::readLLXMLfile($xmlFile, $langKey, $GLOBALS['LANG']->charSet); $LOCAL_LANG[$langKey] = $llang[$langKey]; } } else { foreach ($includedLanguages as $langKey) { /** @var $parser t3lib_l10n_parser_Llxml */ $parser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); $llang = $parser->getParsedData($xmlFile, $langKey, $GLOBALS['LANG']->charSet); unset($parser); $LOCAL_LANG[$langKey] = $llang[$langKey]; } } return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath('jftabulatorsitemap') . 'locallang.xml'; $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); return $LOCAL_LANG; }
/** * Includes the locallang file for the 'formhandler' extension * * @return array The LOCAL_LANG array */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath('formhandler') . 'Resources/Language/locallang_db.xml'; $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath('imagecarousel') . 'locallang.xml'; $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); return $LOCAL_LANG; }
/** * Includes a locallang file and returns the $LOCAL_LANG array found inside. * * @param string Input is a file-reference (see t3lib_div::getFileAbsFileName). That file is expected to be a 'locallang.php' file containing a $LOCAL_LANG array (will be included!) or a 'locallang.xml' file conataining a valid XML TYPO3 language structure. * @param string Language key * @param string Character set (option); if not set, determined by the language key * @return array Value of $LOCAL_LANG found in the included file. If that array is found it's returned. Otherwise an empty array */ public static function readLLfile($fileRef, $langKey, $charset = '') { $file = t3lib_div::getFileAbsFileName($fileRef); if ($file) { $baseFile = preg_replace('/\\.(php|xml)$/', '', $file); if (@is_file($baseFile . '.xml')) { $LOCAL_LANG = t3lib_div::readLLXMLfile($baseFile . '.xml', $langKey, $charset); } elseif (@is_file($baseFile . '.php')) { if ($GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset'] || $charset) { $LOCAL_LANG = t3lib_div::readLLPHPfile($baseFile . '.php', $langKey, $charset); } else { include $baseFile . '.php'; if (is_array($LOCAL_LANG)) { $LOCAL_LANG = array('default' => $LOCAL_LANG['default'], $langKey => $LOCAL_LANG[$langKey]); } } } else { die('File "' . $file . '" not found!'); } } return is_array($LOCAL_LANG) ? $LOCAL_LANG : array(); }
/** * Reads the [extDir]/locallang.xml and returns the \$LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath(rlmp_flashdetection) . 'locallang.xml'; $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the $LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = t3lib_extMgm::extPath('user_azeliz_contacts') . 'locallang.xml'; $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); return $LOCAL_LANG; }