[TYPO3-mvc] Extbase localization in CLI mode

Viktor Livakivskyi invisible.kinder at gmail.com
Tue Jul 15 16:00:33 CEST 2014


Hi, List.

Is it possible to "tell" Extbase, which language it should operate in CLI mode?
The problem is in fatc, 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-project-typo3v4mvc mailing list