[TYPO3-english] [TYPO3] getLL problem default language
Xavier Perseguers
typo3 at perseguers.ch
Wed Jan 28 15:47:24 CET 2009
Hi,
Thomas Scholze wrote:
> Hello,
> i've the same problem an found out that it is installation pending.
> I coudn't find a solution to access the "default" part in locallang.xml
> with getLL();
>
> print_r($GLOBALS['TSFE']->lang);
> - in german (default): complete locallang, works well
> - in englisch (L=1): gives back "en", nothing else
>
> Are there any hints for this problem?
I do not understand very well where the problem is but the default part
of locallang.xml should always be English. If English is not the default
language in your website is no problem.
When you have German, you should get the "de" part of the locallang.xml,
even if German is your "default" language for your website. When
retrieving English when not having it as default language, you get back
"en" but when you read locallang.xml, no "en" section exists and as such
fall back to "default" which is English btw.
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-english
mailing list