54 $this->selectedLanguages = (array) $globalSettings[
'availableLanguages'];
55 }
catch (\Exception $e) {
57 $this->configurationPath,
58 array(
'availableLanguages' => array())
88 public function findAll() {
89 if (!count($this->languages)) {
94 $label = htmlspecialchars(
$GLOBALS[
'LANG']->sL(
'LLL:EXT:setup/mod/locallang.xlf:lang_' . $locale));
96 $label = htmlspecialchars($language);
99 $this->languages[$locale] = $this->objectManager->get(
100 'TYPO3\CMS\Lang\Domain\Model\Language',
103 in_array($locale, $this->selectedLanguages)
107 usort($this->languages,
function($a, $b) {
110 if ($a->getLanguage() == $b->getLanguage()) {
113 return $a->getLanguage() < $b->getLanguage() ? -1 : 1;
125 public function findSelected() {
131 if ($language->getSelected()) {
147 $dependencies = array();
149 $dependencies = array_merge($dependencies, $this->locales->getLocaleDependencies($language));
151 if (count($dependencies)) {
155 $dir = count(
$languages) - count($this->selectedLanguages);
156 $diff = $dir < 0 ? array_diff($this->selectedLanguages,
$languages) : array_diff(
$languages, $this->selectedLanguages);
159 $this->configurationPath,
164 'success' => count($diff) > 0,
166 'diff' => array_values($diff),
static makeInstance($className)
injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
updateSelectedLanguages($languages)
injectLocales(\TYPO3\CMS\Core\Localization\Locales $locales)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]