Skip to content

Category name translated twice #17591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RomanMichak opened this issue Aug 14, 2018 · 9 comments
Closed

Category name translated twice #17591

RomanMichak opened this issue Aug 14, 2018 · 9 comments
Labels
Component: Translation Fixed in 2.4.x The issue has been fixed in 2.4-develop branch Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: done Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S2 Major restrictions or short-term circumventions are required until a fix is available.

Comments

@RomanMichak
Copy link

RomanMichak commented Aug 14, 2018

Category title which has translations for every store, translated one more time from I18n files on category view page. So in situation when we have similar words in different language it could be translated twice.
Example:

en_US nn_NO
Moped Scooter
Scooter Sparkesykkel

So category "Moped" on store nn_NO displayed as "Sparkesykkel" on category view page. Because it alredy tranlsated in admin as "Scooter" and then tranlsated one more time via I18n files to "Sparkesykkel". It shouldn't search for translation if used already translated value from admin.

Preconditions

Magento 2.4-develop
PHP 7.1.18
MySQL 5.7.22

Steps to reproduce

  1. Create 2 stores with locale en_US and nn_NO
  2. Create categories: "Moped", "Scooter"
  3. Set tranlations for nn_NO store in admin as "Moped" => "Scooter", "Scooter" => "Sparkesykkel"
  4. Add nn_NO tranlations to I18n files as "Moped" => "Scooter", "Scooter" => "Sparkesykkel"
  5. Open "Moped" category view page on nn_NO store

Expected result

  1. To see properly translated category name, which is "Scooter".

Actual result

  1. Category name translated twice, and you see "Sparkesykkel"
    image
@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Aug 14, 2018
@magento-engcom-team
Copy link
Contributor

magento-engcom-team commented Aug 14, 2018

Hi @RomanMichak. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me {$VERSION} instance

where {$VERSION} is version tags (starting from 2.2.0+) or develop branches (2.2-develop +).
For more details, please, review the Magento Contributor Assistant documentation.

@RomanMichak do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@ghost ghost self-assigned this Aug 14, 2018
@ghost ghost added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Component: Translation Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Aug 14, 2018
@ghost ghost removed their assignment Aug 14, 2018
@ghost
Copy link

ghost commented Aug 14, 2018

@RomanMichak, thank you for your report.
We've acknowledged the issue and added to our backlog.

@dmytro-ch dmytro-ch self-assigned this Aug 15, 2018
@dmytro-ch
Copy link
Contributor

I will handle this issue. Thank you!

@Johan-Trp
Copy link

We face the same issue. We have a Dutch storeview and an English one. We have two categories where this problem shows up. One called Bestsellers and one called Sale. In Dutch, we also want to call them that. But Magento won't let us, because the translation file kicks in, and it auto-translates these two to "Meest verkochte producten" which is a horribly long category name and Sale becomes "Verkoop" which is a literal translation which doesn't actually give the context of the Sale period.

Even if we switch to the Dutch storeview in Admin > Catalog > Categories, select this Category, then untick the default name and then re-save our intended title of said category, the translation still happens.

It would make sense to me that if left on Default, the translation kicks in. If Default is unticked and we deliberately set the name for these categories, the translation file ignores this. That could be one solution to this problem.

@ghost ghost unassigned dmytro-ch Sep 27, 2019
@ghost ghost removed Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Oct 20, 2020
@magento-engcom-team magento-engcom-team added Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Severity: S2 Major restrictions or short-term circumventions are required until a fix is available. labels Nov 30, 2020
@engcom-Charlie engcom-Charlie added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch and removed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Feb 26, 2021
@magento-engcom-team
Copy link
Contributor

✅ Confirmed by @engcom-Charlie
Thank you for verifying the issue. Based on the provided information internal tickets MC-41071 were created

Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@frank-bokdam
Copy link

You can enable / disable title translations in theme configuration:

Content -> Design -> Configuration -> Header -> Translate title (yes/no)

@vityakopin
Copy link

Looks like a duplicate of #7065

@zakdma
Copy link
Contributor

zakdma commented May 17, 2021

@RomanMichak I'm closing this issue since it can be fixed using configuration
Content -> Design -> Configuration -> Header -> Translate title => NO
If you have any objections please describe it and reopen this issue. Thank you!

@zakdma zakdma closed this as completed May 17, 2021
@magento-engcom-team magento-engcom-team added the Fixed in 2.4.x The issue has been fixed in 2.4-develop branch label May 17, 2021
@magento-engcom-team
Copy link
Contributor

Hi @RomanMichak.

Thank you for your report and collaboration!

The related internal Jira ticket MC-41071 was closed as Fixed.

The fix will be available with the upcoming 2.4.3 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Translation Fixed in 2.4.x The issue has been fixed in 2.4-develop branch Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: done Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S2 Major restrictions or short-term circumventions are required until a fix is available.
Projects
Archived in project
Development

No branches or pull requests

9 participants