Project

General

Profile

Actions

Bug #86156

open

CMS 8:When using inlineLanguageLabelFiles and a different default language than english, only the default language is usable

Added by Justus Moroni over 5 years ago. Updated about 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2018-09-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Needs Decision

Description

This is an issue that i found in CMS 8.7.

The feature I am using was introduced with:
https://docs.typo3.org/typo3cms/extensions/core/7.6/Changelog/7.5/Feature-57632-AddInlineLanguageLabelFilesWithTypoScript.html

Following scenario:

You want to use `page.inlineLanguageLabelFiles` to get translations to the FE via `TYPO3.lang` in JS.

You use german as the default language in FE. English ist your secondary language.

Expectations:
You use `TYPO3.lang` in german and get the german translations in `source` and `target`.

You use `TYPO3.lang` in english and get the german translations in `source` and the english translations in `target`.

Reality:
You use `TYPO3.lang` in german and get the german translations in `source` and `target`.

You use `TYPO3.lang` in english and get the german translations in `source` and `target`.

Problem/Solution:

I searched for the issue. It seems that the issue lies in the following file:
sysext/core/Classes/Page/PageRenderer.php:2411

It uses `$this->readLLfile()` and there the in `$this->languageDependencies` the `Locales` class of the backend is used:
typo3/typo3/sysext/core/Classes/Localization/Locales.php

In that array of allowed locales the `en` key is missing, as the default language in the backend is english.

I am unsure where exactly the issue is, or rather how this should be changed. The functionality must be switched to allow other languages to also work.
Possibly this is only an issue with english as the secondary language. I am not sure about that.

Actions

Also available in: Atom PDF