[TYPO3-dev] Extbase localization in CLI mode

Viktor Livakivskyi invisible.kinder at gmail.com
Tue Jul 22 16:36:23 CEST 2014


Crossposting this from MVC-list, since no answers for a week were given there. Hopefuly, DEV-list is more popular.

So,

Is it possible to "tell" Extbase, which language it should operate in CLI mode?
The problem is in fact, that using ->setSysLanguageUid($language) on query settings of Repository helps, but only for 1st level object. Child objects are non-localized in this mode.

Example:
$languageUid = 7;
// $parents contain correct translations (language=7)
$parents = $parentRepository->findAll($languageUid);
foreach($parents as $parent) {
// $child doesn't contain correct translation (language=0)
$child = $parent->getChild();
}

Is it possible to work in some specific language context, when in CLI mode?



More information about the TYPO3-dev mailing list