Project

General

Profile

Actions

Bug #46688

closed

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

Added by David Gurk over 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2013-03-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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?


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #44099: L10n fallback does not work for TS labelsClosedXavier Perseguers2012-12-18

Actions
Related to TYPO3 Core - Bug #46748: Custom languages won't be displayed in the frontendClosed2013-03-28

Actions
Actions

Also available in: Atom PDF