[TYPO3-dev] pi_getLL doesn't get the right translation

Franz Holzinger franz at ttproducts.de
Thu Jun 26 15:43:56 CEST 2014


On 25/06/2014 14:44, Plamen Petkov wrote:
> Hi
>
> I haven't worked with old styled pibase extensions, I just started with new
> extbase, but my friend asked me for help.
>
> Lately his site is upgraded from version 4.4 to 4.5 and a private extension
> stopped working properly with languages.
>
> Problem is only with the extension.
>
> I saw that locallang.xml of the extension has translations
>
> TS includes
>
> config.sys_language_uid and config.language for all the language
>
> But pi_getLL doesn't get the right translation, it shows only one
> translation, although it is not the default.
>
> If I remove this translation from locallang.xml, it shows the default
> language, but again only one language translation.
>

You should add your translations into a separate folder inside of the 
folder typo3conf/l10n for each language.
I am not sure if multiple translations inside of a language are still 
supported with TYPO3 4.5.
Another solution would be not to use pi_base any more for your texts. 
You will find a compatible library for translations inside of the 
extension div2007.

- Franz





More information about the TYPO3-dev mailing list