-
Notifications
You must be signed in to change notification settings - Fork 219
Correct textdomain from 'woo-gutenberg-product-blocks' to 'woo-gutenberg-products-blocks' #5020
Conversation
Size Change: -20 B (0%) Total Size: 1.11 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nielslange looks like you've kept the s
on blocks
, however, it should read woo-gutenberg-products-block
.
Could you also add more robust testing instructions for this PR since the current ones don't actually show the issue being fixed. Something like:
- Add the terms and conditions block to your Checkout block.
- Change your site language to Spanish and go to the Checkout block.
- Verify the text in the terms and conditions block is translated.
I also recommend changing the changelog entry to something like Fix missing translations in the Checkout block that were using an incorrect textdomain. This provides more details and is user-friendly |
Good catch, @opr!
Absolutely. Due to my incorrect fix, I could not see the change initially. That's why I haven't pointed out the testing instructions that you mentioned. I'll correct the testing instructions directly. |
Great suggestion, @ralucaStan. I've updated the changelog message accordingly. You could now review this PR. |
@nielslange on the block in the editor I see the translated string, but not on the front-end.
Any ideas why not? |
@opr I didn't notice that initially. I just looked up this problem and saw that both the editor and the frontend are fetching the translation from the constants.js file. The translations for the editor and the frontend are coming from this part: When debugging these parts, I do see the translated version in the editor, but the untranslated version in the frontend. However, the i18n functionality is enqueued in the frontend. I'll investigate what is causing this problem. |
c924d1b
to
dae696c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does as advertises, which is fix all instances of wrong text domain.
Changelog and testing steps should be updated to reflect the new changes.
…erg-products-blocks' (woocommerce#5020) * Correct text domain
…erg-products-blocks' (woocommerce#5020) * Correct text domain
Related #5005
Note
Some strings were using the textdomain
woo-gutenberg-product-blocks
instead ofwoo-gutenberg-products-blocks
(note the missings
for products). Even though these strings have been translated, due to the incorrect textdomain they aren't visible in the plugin.Testing instructions
trunk
.'woo-gutenberg-product-blocks'
.'woo-gutenberg-product-blocks'
again.Additional notes
Issue #5005 is not entierly solved by this PR, but require a follow up PR to lazy load some missing translation files on the frontend.
Changelog