magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.54k stars 9.32k forks source link

Element translations per module do not work #33160

Open martasiewierska opened 3 years ago

martasiewierska commented 3 years ago

Preconditions (*)

  1. Magento 2.4.2

Steps to reproduce (*)

According to documentation: You can translate the same element in different ways for different modules: https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/translations/theme_dictionary.html

  1. Create store view and set locale
  2. Create translation file
  3. Add:
    "Add to Cart", "Translation Base"
    "Add to Cart", "Translation 1", module, Magento_Catalog
    "Add to Cart", "Translation 2", module, Magento_Wishlist

Expected result (*)

  1. 'Add to cart' string is translated as Translation 1 on catalog pages and Translation 1 on wishlist pages

Actual result (*)

  1. Always the last translation is taken into account trans

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

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

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 give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 3 years ago

Hi @engcom-Echo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

AZiniukhin commented 3 years ago

@magento I am working on this

onlinebizsoft commented 3 years ago

A bad bug :)

github-jira-sync-bot commented 3 years ago

:white_check_mark: Jira issue https://jira.corp.magento.com/browse/AC-1047 is successfully created for this GitHub issue.

m2-assistant[bot] commented 3 years ago

:white_check_mark: Confirmed by @engcom-Hotel. Thank you for verifying the issue.
Issue Available: @engcom-Hotel, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

AZiniukhin commented 3 years ago

@magento I am working on this

ivanaugustobd commented 2 years ago

Any news @AZiniukhin?

skeutmeier commented 5 months ago

This Bug still exists in 2.4.6-p5

When is this expected to be fixed?

engcom-Delta commented 1 week ago

Hi @martasiewierska ,

Thanks for your reporting and collaboration. We have re-verified the issue in latest 2.4-develop instance and the issue is reproducible. Kindly refer the screenshots.

Steps to reproduce :

  1. Create store view and set locale
  2. Create translation file
  3. Add: "Add to Cart", "Translation Base" "Add to Cart", "Translation 1", module, Magento_Catalog "Add to Cart", "Translation 2", module, Magento_Wishlist
  4. Access PDP and Observe the button. Always the last translation is taken into account. image

Thanks.