[TYPO3] getLL problem default language

Manuel Rego Casasnovas mrego at igalia.com
Tue Oct 16 11:36:55 CEST 2007


Hello,

I have detected a problem with the function getLL when I was using the
extension newloginbox.

The problem is that in my website the default language is spanish, and
also exits english into the table syslanguage.
When I navigate for my site in english, this plugin is showed in spanish
(my default language). Really the function getLL don't return the
english translation, return the spanish translation (my default language).

To solve this problem I have modified the locallang file copying the
tags for the default into another tag for english.

Finally my locallang is:

<languageKey index="default" type="array">
   <label index="oLabel_header_welcome">User login</label>
   ...
</languageKey>
<languageKey index="en" type="array">
   <label index="oLabel_header_welcome">User login</label>
   ...
</languageKey>
<languageKey index="dk" type="array">
...


And with this change, the function getLL works well.


I don't know if this is the correct way to solve this problem.


Best regards,
   Rego


-- 
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com



More information about the TYPO3-english mailing list