Project

General

Profile

Actions

Bug #90619

open

Translations doesn't work well

Added by Luca Braun over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase + l10n
Target version:
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

Actions #1

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
Actions #2

Updated by Christian Eßl over 4 years ago

  • Category changed from Localization to Extbase + l10n
Actions

Also available in: Atom PDF