Magento2: 2.0.7 : Can't translate FPT text on checkout/cart page

Created on 5 Jul 2016  路  9Comments  路  Source: magento/magento2

Preconditions:

Magento 2.4-develop
Php v 7.3

Steps to reproduce

  1. Enable FPT in admin; (Go to Admin->Stores->Configuration->Sales->Tax->Fixed Product Taxes);
  2. Change translate to FPT FPT,FPT(translate) for example (app/code/Magento/Weee/i18n/en_US.csv);
  3. Create simple product with FPT attribute and set value for it;
    Screenshot from 2020-04-30 12-05-32
  4. Go to Storefront;
  5. Add created before the product to Cart;
  6. Go to Shopping Cart;

:heavy_check_mark: The FPT has been translated
screenshot

  1. Proceed to Checkout;
  2. Fill all required fields and go to Review&Payment step;

Actual Result:

:heavy_multiplication_x: The FPT was not translated
screenshot_1

Expected Result:

:heavy_check_mark: The FPT must be translated

I try to translate the text 'FPT' in the checkout page but nothing seems to work:
I try with a language pack in app/i18n/Vendor/nl_nl/nl_NL.csv (the rest of the translations of this pack work so it is loaded):

"FPT","Verwijderingsbijdrage",module,Magento_Weee
"Magento_Weee::FPT","Verwijderingsbijdrage",module,Magento_Weee

I try with the file app/design/frontend/Vendor/Theme/i18n/nl_NL.csv:

"FPT","Verwijderingsbijdrage"
"Magento_Weee::FPT","Verwijderingsbijdrage"

I try with the file app/code/Magento/Weee/i18n/nl_NL.csv:

FPT,Verwijderingsbijdrage

I try by adding an entry to the 'translation'-table in the database (even had to manually check the crc_string):

key_id  string  store_id    translate               locale  crc_string
2       FPT     0           Verwijderingsbijdrage   nl_NL   1575739609

All with no success.
I'm running out of options. Is there any spot I missed where I need to put my translation? Can anyone confirm / try if the text 'FPT' in the checkout/cart page is translatable?

Frontend Tax Translation Fixed in 2.4.x Confirmed Format is valid Ready for Work P3 Reproduced on 2.4.x S2

Most helpful comment

The issue is reproducible on a fresh 2.4-develop instance.

Manual testing scenario:

  1. Enable FPT in admin; (Go to Admin->Stores->Configuration->Sales->Tax->Fixed Product Taxes);
  2. Change translate to FPT FPT,FPT(translate) for example (app/code/Magento/Weee/i18n/en_US.csv);
  3. Create simple product with FPT attribute and set value for it;
    Screenshot from 2020-04-30 12-05-32
  4. Go to Storefront;
  5. Add created before the product to Cart;
  6. Go to Shopping Cart;

:heavy_check_mark: The FPT has been translated
screenshot

  1. Proceed to Checkout;
  2. Fill all required fields and go to Review&Payment step;

Actual Result:

:heavy_multiplication_x: The FPT was not translated
screenshot_1

Expected Result:
:heavy_check_mark: The FPT must be translated

All 9 comments

@kanduvisla thank you for your report.
Internal ticket MAGETWO-56471 was created for this issue.

Has a fix in #5732
Duplicate #5731

@kanduvisla, thank you for your report.
The issue is already fixed in 2.2.0

Re-opening because the FPT label is not translatable yet on the checkout page (second step).

The fix was only done to the checkout_cart_index.xml file in https://github.com/magento/magento2/pull/9204, but was forgotten to be done to the checkout_index_index.xml file.

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

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 5. Add label Issue: Confirmed once verification is complete.

  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

The issue is reproducible on a fresh 2.4-develop instance.

Manual testing scenario:

  1. Enable FPT in admin; (Go to Admin->Stores->Configuration->Sales->Tax->Fixed Product Taxes);
  2. Change translate to FPT FPT,FPT(translate) for example (app/code/Magento/Weee/i18n/en_US.csv);
  3. Create simple product with FPT attribute and set value for it;
    Screenshot from 2020-04-30 12-05-32
  4. Go to Storefront;
  5. Add created before the product to Cart;
  6. Go to Shopping Cart;

:heavy_check_mark: The FPT has been translated
screenshot

  1. Proceed to Checkout;
  2. Fill all required fields and go to Review&Payment step;

Actual Result:

:heavy_multiplication_x: The FPT was not translated
screenshot_1

Expected Result:
:heavy_check_mark: The FPT must be translated

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

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

Hi @engcom-Charlie. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • [ ] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.
  • [ ] 2. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


Hi @kanduvisla. Thank you for your report.
The issue has been fixed in magento/magento2#28108 by @engcom-Charlie in 2.4-develop branch
Related commit(s):

The fix will be available with the upcoming 2.4.0 release.

Was this page helpful?
0 / 5 - 0 ratings