| @@ 493-498 (lines=6) @@ | ||
| 490 | $languageFactory = GeneralUtility::makeInstance(LocalizationFactory::class); |
|
| 491 | $this->LOCAL_LANG = $languageFactory->getParsedData($locallangPathAndFilename, $this->languageKey); |
|
| 492 | ||
| 493 | foreach ($this->alternativeLanguageKeys as $language) { |
|
| 494 | $tempLL = $languageFactory->getParsedData($locallangPathAndFilename, $language); |
|
| 495 | if ($this->languageKey !== 'default' && isset($tempLL[$language])) { |
|
| 496 | $this->LOCAL_LANG[$language] = $tempLL[$language]; |
|
| 497 | } |
|
| 498 | } |
|
| 499 | } |
|
| 500 | $this->loadTypoScriptLabels(); |
|
| 501 | } |
|
| @@ 988-993 (lines=6) @@ | ||
| 985 | $languageFactory = GeneralUtility::makeInstance(LocalizationFactory::class); |
|
| 986 | $this->LOCAL_LANG = $languageFactory->getParsedData($languageFilePath, $this->LLkey); |
|
| 987 | $alternativeLanguageKeys = GeneralUtility::trimExplode(',', $this->altLLkey, true); |
|
| 988 | foreach ($alternativeLanguageKeys as $languageKey) { |
|
| 989 | $tempLL = $languageFactory->getParsedData($languageFilePath, $languageKey); |
|
| 990 | if ($this->LLkey !== 'default' && isset($tempLL[$languageKey])) { |
|
| 991 | $this->LOCAL_LANG[$languageKey] = $tempLL[$languageKey]; |
|
| 992 | } |
|
| 993 | } |
|
| 994 | // Overlaying labels from TypoScript (including fictitious language keys for non-system languages!): |
|
| 995 | if (isset($this->conf['_LOCAL_LANG.'])) { |
|
| 996 | // Clear the "unset memory" |
|