georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
265 stars 356 forks source link

Category names in list view in wrong language #1185

Open agendartobias opened 4 years ago

agendartobias commented 4 years ago

Bug Report

Current Behavior List view plugin show records in primary languages (title, description...) except of category name. If category record is translated to second language in BE, frontend list view plugin show category name in second language instead of primary language.

With dump i see that i get correct uid and slug name of category in primary language, but the name is in secondary language.

But there's a catch, if i define another news plugin on same page "category menu" BEFORE the list view of news record the categorie name are in primary language as expected.

Expected behavior/output Expected are names of categories in primary language if im on L=0

Environment

specialistaweb commented 4 years ago

Hi I confirm, this happens to me in the same way. Howevere I tried to put the plugin - category list, BEFORE the list view, but on my case the 1st category name in the list (plugin below, list mode) appears translated into the language UID = 0 (L=0) the 2nd not, the third yes and so on....

same environment

moreover, with 3 languages activated, when i switch to the page with the 2nd and 3rd language all is ok. The bug happens only with the default language

artus70 commented 4 years ago

In our experience, the wrong category name language in default language view happens after adding a category name translation when the categorized articles already exist.

But we have discovered that the articles will get the correct category translation after opening each article for editing, assigning the categories newly and saving again.

JarvisH commented 4 years ago

Possible duplicate of #843

h3nn3s commented 4 years ago

I have a similar behaviour. The explained conditions apply to all languages, not only L=0

For me, the hole Category Menu titles are in language of first translation, expect one. When I disable one of these translated categories, the menu does not display it in current language, but switches "randomly" to another translation. All of my categories are translated to 7 languages.

For me none of the mentioned possible workarounds worked, additionally the fix to workaround this issue from #843 is not working.

News: 8.3.0 TYPO3: 9.5.19

cehret commented 4 years ago

I can confirm it, too News: 8.4.1 TYPO3 10.4.6

h3nn3s commented 4 years ago

@toco3 @JarvisH @agendartobias @gilas1959 @artus70

Could you please try, if setting typoscript option plugin.tx_news.settings.respectSysLanguageInFindInList = 1 solves the issue for your use-cases? For me, it seems to work.

It's this issue which is already resolved: #900

agendartobias commented 4 years ago

@toco3 @JarvisH @agendartobias @gilas1959 @artus70

Could you please try, if setting typoscript option plugin.tx_news.settings.respectSysLanguageInFindInList = 1 solves the issue for your use-cases? For me, it seems to work.

It's this issue which is already resolved: #900

Hey, still the same. For me it doesn't work