[TYPO3-english] Locallang.xlf doesn't work for english
Christian Platt
christian.platt at pharmaline.de
Tue Feb 9 16:34:02 CET 2016
did you try using L=1, L=0?
did you remove cache in install tool?
Christian
> Am 09.02.2016 um 15:53 schrieb Nicolai Schirawski <ns at t3magic.de>:
>
> Hi Mogens,
>
> I tried your suggestions, but nothing changes.
>
> The strange thing is, that in fact everything GETS translated. The
> english labels are in the default-file. But the system always goes for
> the german labels...
>
> Only, if I delete the german file, I see the english labels... (of course).
>
> Strange.
>
> Anyhow, thank you for your help
> Nicolai
>
> Am 09.02.2016 um 15:11 schrieb Mogens Fiebrandt:
>> Hi Nicolai,
>>
>> i checked your config against one of mine working multilanguage-projects.
>>
>> Some small differences:
>>
>> In my Config for the Baselanguage i use:
>> config.locale_all = de_DE.UTF-8
>>
>> I dont use the uniqueLinkVars config.
>> I have difference config for sys_lang_overlay and lang_mode, but this
>> shouldn't do it.
>>
>> In my Config for the English language i use:
>> config.locale_all = en_GB.UTF-8
>>
>>
>> The only differnce in the xliff file i can see is that i set the
>> State-Parameter for the target language. Like:
>>
>> <trans-unit id="the_key">
>> <source>German Text</source>
>> <target state="translated">English Text</target>
>> </trans-unit>
>>
>>
>> Hope this helps you.
>>
>>
>> Mogens
>>
>>
>>
>> Am 09.02.2016 um 14:54 schrieb Nicolai Schirawski:
>>> Hi Greetz,
>>>
>>> unfortunately, clearing this cache doesn't change the unwanted behavior.
>>>
>>> Thanks for your hint
>>> Nicolai
>>>
>>> Am 09.02.2016 um 13:29 schrieb Mogens Fiebrandt:
>>>> Hi Nicolai,
>>>>
>>>> to make sure the languagecache is cleared you could delete the folder:
>>>>
>>>> your-project-folder/typo3temp/Cache/Data/l10n
>>>>
>>>>
>>>> Greetz
>>>>
>>>> Mogens
>>>>
>>>> Am 09.02.2016 um 12:57 schrieb Nicolai Schirawski:
>>>>> Hi List,
>>>>>
>>>>> I have a website with two languages:
>>>>> - uid=0: german, default
>>>>> - uid=1: english.
>>>>>
>>>>> In setup.txt, I have set for German default:
>>>>> config {
>>>>> language = de
>>>>> locale_all = de_DE
>>>>> htmlTag_langKey = de
>>>>> metaCharset = utf-8
>>>>> sys_language_uid = 0
>>>>> linkVars = L
>>>>> uniqueLinkVars = 1
>>>>> sys_language_overlay = 1
>>>>> }
>>>>> and for english:
>>>>>
>>>>> [globalVar = GP:L = 1]
>>>>> config.sys_language_uid = 1
>>>>> config.language = en
>>>>> config.locale_all = en_UK.UTF8
>>>>> config.htmlTag_langKey = en
>>>>> [global]
>>>>>
>>>>> This works fine and I can translate pages and content like expected.
>>>>>
>>>>> Now I add an extbase extension.
>>>>> In Resources/Private/Languages, I added two files:
>>>>> - locallang.xlf:
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <xliff version="1.0">
>>>>> <file source-language="en" datatype="plaintext" >
>>>>> <header/>
>>>>> <body>
>>>>> <trans-unit id="eventListFrom">
>>>>> <source>Version EN</source>
>>>>> </trans-unit>
>>>>> </body>
>>>>> </file>
>>>>> </xliff>
>>>>>
>>>>> - and de.locallang.xlf with the german translation:
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <xliff version="1.0">
>>>>> <file source-language="en" target-language="de" datatype="plaintext">
>>>>> <header/>
>>>>> <body>
>>>>> <trans-unit id="eventListFrom">
>>>>> <source>Version EN</source>
>>>>> <target>Version DE</target>
>>>>> </trans-unit>
>>>>>
>>>>> </body>
>>>>> </file>
>>>>> </xliff>
>>>>>
>>>>> In the fluid-template I use:
>>>>> <f:translate key="eventListFrom" />
>>>>>
>>>>> When switching languages, the result is always: "Version DE"
>>>>>
>>>>> I tried:
>>>>> - clear caches
>>>>> - put German into locallang.xlf and add English as en.locallang.xlf
>>>>> - made sure, the content-element is translated
>>>>> but same result.
>>>>>
>>>>> Any idea what else I could try?
>>>>>
>>>>> Thanks for hints
>>>>> Nicolai
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> TYPO3-english mailing list
>>>>> TYPO3-english at lists.typo3.org
>>>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>>
>>
>
>
> --
> Nicolai Schirawski
> t3magic GbR
>
> T +49 89 76775717
> M +49 1575 0881124
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list