Issue Bug Closed

#46688Bugfix for "L10n fallback" (#44099) does not work for local languages like "at" (Austria)

David Gurk 03/26/13, 14:45 updated 10/02/18, 12:13

Description

exmple TypoScript:

# German
config {
    sys_language_uid = 0
    language = de
    locale_all = de_DE
}

# German for austria
[globalVar=GP:L=1]
config {
    sys_language_uid = 1
    language = at
    locale_all = de_AT
}
[global]

# German for swiss
[globalVar=GP:L=2]
config {
    sys_language_uid = 2
    language = ch
    locale_all = de_CH
}
[global]

# Polish
[globalVar=GP:L=3]
config {
    sys_language_uid = 3
    language = pl
    locale_all = pl_PL
}
[global]

# Czech
[globalVar=GP:L=4]
config {
    sys_language_uid = 4
    language = cz
    locale_all = cs_CZ
}
[global]

example locallang.xml:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3locallang>
    <meta type="array">
        <description>Example</description>
    </meta>
    <data type="array">
        <languageKey index="default" type="array">
            <label index="example">German</label>
        </languageKey>
        <languageKey index="at" type="array">
            <label index="example">German for austria</label>
        </languageKey>
        <languageKey index="ch" type="array">
            <label index="example">German for swiss</label>
        </languageKey>
        <languageKey index="pl" type="array">
            <label index="example">Polish</label>
        </languageKey>
        <languageKey index="cz" type="array">
            <label index="example">Czech</label>
        </languageKey>
    </data>
</T3locallang>

The updated function “readLLfile” in the class “tslib_fe” won’t work in this case since TYPO3 v4.6.16 (see the related issue). In the frontend the default language appears for AT and CZ. Normally AT and CZ should be shown from the locallang file. The other languages (default/DE, PL, CZ) works well.

The old version of this function works well (TYPO3 through v4.6.15):

function readLLfile($fileRef)    {
    return t3lib_div::readLLfile($fileRef, $this->lang, $this->renderCharset);
}

Is it necessary to change all my language handling or is there another solution?

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.