Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Cart + Checkout Blocks > Random translation Cart "x left in stock" and Checkout GDPR Text #6662

Closed
Marc-pi opened this issue Jul 6, 2022 · 4 comments
Labels
block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. focus: i18n The issue/PR is related to internationalization.

Comments

@Marc-pi
Copy link

Marc-pi commented Jul 6, 2022

Bug Description

Translation not correctly loaded in some block areas. This is a random error
(no additionnal plugins / TT2 theme confirmed)
(reproduced on wordpress.com hosting, but also dedicated ones)

How to reproduce ?

  • install WP and set it to French
  • install Woo Block then Woo Commerce
  • update / load all translations with updater check
  • no other modules installed, default theme TT2
  • Woo : define store location (address) and free shiping method
  • Woo : no other default settings changed, default inventory value for "Stock display format selector" unchanged
  • Woo : Add a product, set price and stock
  • Cart page : edit it in Editor, to add the Cart Block + Save (replace the shortcode)

1/ Add to cart

  • Go to Front to Add to Cart product
  • Go to Cart page

image

2/ Go to checkout
We also have at checkout page one translated zone (GDPR) [shortcode version only, block version forgot to display this text see #6663 ]
The text is correctly set in FR in Woo account settings > should be displayed in French

image

image

3/ Checkout > shiping default text not translated

"Shipping options will be displayed here after entering your full shipping address"

4/ Empty cart > empty cart message not translated

"Checkout is not available whilst your cart is empty—please take a look through our store and come back when you're ready to place an order."

NB : no errors are detected with Browser debug tools

Environment info

  • WP 6.0
  • Gutenberg plugin : no (only core)
  • TT2 theme
  • WooCommerce 6.6.1
  • WooCommerce block 8.8.0
  • No other modules
  • Language set to FR in WP General Settings
  • Bug reproduced with both Firefox and Chrome Browsers

Please confirm that you have searched existing issues in the repo.

Yes
seems not related to #6530

Please confirm that you have tested with all plugins deactivated

Yes
The issue occurs randomly (tested on several new instances with TT2 theme only), sometimes it is ok, sometimes it is still in english
It occurs also with other Themes, so it is not TT2 specific ;-)

@Marc-pi Marc-pi changed the title Cart Checkout Blocks > Random translation Cart "x left in stock" and Checkout GDPR Text Cart + Checkout Blocks > Random translation Cart "x left in stock" and Checkout GDPR Text Jul 6, 2022
@Marc-pi
Copy link
Author

Marc-pi commented Jul 8, 2022

seems translation issues are noticed on other part (in block settings) as well #6244, and #5866
and absolute/relative path #6186

@Aljullu Aljullu added block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. labels Jul 12, 2022
@Marc-pi
Copy link
Author

Marc-pi commented Jul 12, 2022

@Aljullu the red bug badge is missing. For some reason, it was not automaticaly added when i submited this issue
can you add it ?

@opr opr added type: bug The issue/PR concerns a confirmed bug. focus: i18n The issue/PR is related to internationalization. and removed type: bug The issue/PR concerns a confirmed bug. labels Jul 12, 2022
@opr
Copy link
Contributor

opr commented Jul 12, 2022

Hi there @Marc-pi! Thanks for taking the time to report this issue, while my site is set to French, I can also see that this string is not translated.

This is being caused by the string not being translated on https://translate.wordpress.org/ (This is the string in question) - we rely on volunteer contributors to help translate our plugin and it looks like nobody got round to this yet.

If you are interested in contributing translations, then the WordPress community as a whole would be super grateful for your help! You can read more about translating WordPress on this page.

I'll go ahead and close this issue now but if you need more help feel free to comment again, or open a new issue!

@opr opr closed this as completed Jul 12, 2022
@Marc-pi
Copy link
Author

Marc-pi commented Sep 9, 2022

@opr during those weeeks, i translated the whole extension plugin, thanks, it helped :-)
the point 4 is still present see the related linked issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. focus: i18n The issue/PR is related to internationalization.
Projects
None yet
Development

No branches or pull requests

3 participants