[TYPO3-dev] Bug: tslib_pibase::pi_getLL doesn't recognize translation state of pages and/or records

JoH asenau info at cybercraft.de
Tue Apr 20 13:12:49 CEST 2010


> pi_getLL uses $this->LLkey which is set in function tslib_pibase
> based on $GLOBALS['TSFE']->config['config']['language']

It seems that at least tslib_content and extbase are also using
$GLOBALS['TSFE']->config['config']['language']
only, to get content in a certain language.

In tslib_content stdWrap this is used for TS like that:

10 = TEXT
10.value = English Text
10.lang.de = Deutscher Text

This one behaves like pi_base on pages that fall back to default language
because they are not translated yet.
So you will see German text on an English page.

extbase does exactly the same in function "setLanguageKeys", with the only
difference, that it takes
$GLOBALS['TSFE']->config['config']['language_alt']
into account as well.

In any case the content will be shown translated even though the rest of the
page is not.

So it seems this will need a kind of "global" solution.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com






More information about the TYPO3-dev mailing list