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.5k stars 9.31k forks source link

issue with translate-inline #29155

Closed bohdan-berezhniy closed 3 years ago

bohdan-berezhniy commented 4 years ago

Preconditions (*)

  1. Magento 2.4-develop
  2. Disable all shipping methods
  3. Create simple product

    Steps to reproduce (*)

  4. Go to the Stores -> Configuration -> ADVANCED -> Developer -> Translate Inline -> Enabled for Storefront = Yes
  5. Create a new (not English) store view (or use another one if exists)
  6. Add simple product to cart
  7. Change the store view to the one created in step 2
  8. Click on the "Proceed to Checkout" button via mini-cart
  9. Go to frontend and create translate for text: "Sorry, no quotes are available for this order at this time". (for example into ukrainian language) Screenshot_56 Screenshot_57
  10. Go to the Home page (click on the site Logo)
  11. Click on the "View and Edit Cart" button via mini-cart
  12. Expand the "Estimate Shipping and Tax" section Screenshot_58

Expected result (*)

It`s possible to translate the text

Actual result (*)

It's impossible translate the text

Screenshot_59

Additional information It happens because in method _loadDbTranslation that in file vendor/magento/framework/Translate.php calls method $data = $this->_translateResource->getTranslationArray(null, $this->getLocale()); that has not set store id and set null as strore id (if we change null on store id - all will works fine)

m2-assistant[bot] commented 4 years ago

Hi @bohdan-berezhniy. 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 4 years ago

Hi @engcom-Lima. 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:

engcom-Lima commented 4 years ago

Hello @bohdan-berezhniy Could you provide more details for reproduce this issue? Please add version of magento.

Thank you!

bohdan-berezhniy commented 4 years ago

Hello, 2.3.2 Magento version is not important (required version 2 and upper)

ср, 22 лип. 2020 о 15:26 Viktoriia Sekeresh notifications@github.com пише:

Hello @bohdan-berezhniy https://github.com/bohdan-berezhniy Could you provide more details for reproduce this issue? Please add version of magento.

Thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/29155#issuecomment-662423483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGIAINVJRUA4SZF6OJ2EXTLR43LIDANCNFSM4O2TNGLA .

engcom-Lima commented 4 years ago

Hello @bohdan-berezhniy Could you please add a screenshot of the page that shows this text "Sorry, there are currently no offers for this order.". I mean in the DOM By default it displays as none. Screenshot_51 But if I change display to block - the text shown. But this invalidate case. So I can't translate it inline Screenshot_52

bohdan-berezhniy commented 4 years ago

Hello For me, it happens when I choose a country that not supported by the shipping method. Just remove display none and try to translate that text, or you can adjust the shipping method to get this message.

чт, 23 лип. 2020 о 13:14 Viktoriia Sekeresh notifications@github.com пише:

Hello @bohdan-berezhniy https://github.com/bohdan-berezhniy Could you please add a screenshot of the page that shows this text "Sorry, there are currently no offers for this order.". I mean in the DOM By default it displays as none. [image: Screenshot_51] https://user-images.githubusercontent.com/60198022/88274629-acaf4980-cce4-11ea-8828-09547f1aab2f.png But if I change display to block - the text shown. But this invalidate case. So I can't translate it inline [image: Screenshot_52] https://user-images.githubusercontent.com/60198022/88274772-e8e2aa00-cce4-11ea-929e-92066b16b9b6.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/29155#issuecomment-662926820, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGIAINT7NO4FEVRD4NFZPELR5AEQRANCNFSM4O2TNGLA .

magento-engcom-team commented 4 years ago

:white_check_mark: Confirmed by @engcom-Lima Thank you for verifying the issue. Based on the provided information internal tickets MC-36143 were created

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

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!

magento-engcom-team commented 3 years ago

Unfortunately, we are archiving this ticket now as it did not get much attention from both Magento Community and Core developers for an extended period. This is done in an effort to create a quality, community-driven backlog which will allow us to allocate the required attention more easily.

Please feel free to comment or reopen according to the Issue reporting guidelines the ticket if you are still facing this issue on the latest 2.x-develop branch. Thank you for collaboration.

themew commented 2 years ago

Would really like to reopen this issue. There is still no way to translate edit or translate "Sorry, no quotes are available for this order at this time".