Actions
Bug #90619
openTranslations doesn't work well
Start date:
2020-03-02
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I have some categories called "Allgemeine Dokumente" and "Unterkategorie" and translated it from german to english.
"Allgemeine Dokumente" -> "General Documents"
"Unterkategorie" -> "Subcategory"
I translated my example page but now the english title will be displayed always.
In my extension I just did something simple:
// PluginController
protected function defaultAction() {
// Already imported the CategoryRepository class.
$repository = $this->objectManager->get(CategoryRepository::class);
$query = $repository->createQuery();
$settings = $query->getQuerySettings();
$settings->setRespectSysLanguage(true);
// Language uid 0 === german, 1 === english
$settings->setLanguageUid(0);
$query->setQuerySettings($settings);
$this->view->assign('categories', $query->execute());
}
Where is the problem? Why I get the "german" record with an english title?!
Files
Updated by Luca Braun over 4 years ago
- Subject changed from Translations doesn't working well to Translations doesn't work well
- Target version set to next-patchlevel
Updated by Christian Eßl over 4 years ago
- Category changed from Localization to Extbase + l10n
Actions