[TYPO3-mvc] Handling of translations?

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Fri Nov 13 20:55:15 CET 2009


Found something here in German:
http://labs.zeroseven.de/development/typo3/typo3-unterschied-zwischen-sys_language_uid-und-sys_language_content/

Seems a bit weird tho, I can't
figure out the purpose.

Here is an old topic in the TYPO3 mailing list:
http://lists.typo3.org/pipermail/typo3-dev/2006-February/015560.html
(But it doesn't mention anything useful...)

Anybody knows more about it?

Thanks,
Thasmo


Steffen Ritter schrieb:
> Benjamin Mack schrieb:
>> Hey team,
>>
>> cool stuff going with extbase. One question though: How do I handle 
>> translations? Basically, I activated the translation for my records in 
>> the Backend, and it works as expected. But when I show it in the 
>> frontend, and I do a
>>
>> $myRepository->findAll()
>>
>> it literally returns all items, not differentiating between the 
>> currently selected language and its possibly fallback options.
>>
>> Does anybody have a similar situation? Thanks for any pointers.
>>
>> Running extbase off of beta3.
>>
>> All the best,
>> Benni.
> 
> Hey,
> as I told you in Skype, it's easy to implement the "sys_language_mode= 
> strict" in Extbase.
> 
> Just add
> $languageMode = $GLOBALS['TSFE']->sys_language_mode == strict ? 
> 'hideNonTranslated' : '';
> 
> after line 746
> 
> $languageMode = '';
> after Line 757
> 
> and replace last Parameter ('') in line 768 with $languageMode
> 
> 
> 
> But im wondering about ->sys_language_content in line 745.
> I think it should be ->sys_language_uid
> 
> Can anyone tell the difference (since in TS i've never seen or set 
> _content, but always _uid)
> 
> regards
> 
> Steffen


More information about the TYPO3-project-typo3v4mvc mailing list