Review main Abandoned

82061[BUGFIX] Return proper typo3Language key when using locale autodetection

Garvin Hicking CR 0 V 0 Easy +6 −0 updated 12/01/23, 22:48

Commit message

Language keys to resolve locallang.xlf file lookups with translations
refer to filenames like `de.locallang.xlf` or `dk.locallang.xlf`.

The language key "typo3Language" of a site configuration specifies
this key with strings like "de" or "dk".

With the introduction of #99882 the auto-detection appended the
country code of a language to that string, leading to the
"typo3Language" variable getting set to "de_DE" instead.

Locales like that are resolved to contain a lookup to both
the a "dependency" of a language ("de_DE" has a dependency on
"de").

For cases where the Locale instantiation was missing this
dependency, it will now be added on-the-fly.

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1