Rufus87
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Duplicated tag in FSEThanks. Here it is: https://github.com/Yoast/wordpress-seo/issues/17354
Forum: Plugins
In reply to: [Loco Translate] Blocks can’t be translatedThank you so much for amazing support.
Forum: Plugins
In reply to: [Loco Translate] Blocks can’t be translatedActually there is a possibility to regenerate .pot file for any plugin using wp-cli command, and it is designed to do what we need and can solve mentioned problem, but unfortunately it also has an issue and cannot handle generated (minified) js files.
So, right now the only way to solve this problem is to use “messages” as “textdomain” in bundle settings.
Thank you so much for your great support.
- This reply was modified 3 years, 7 months ago by Rufus87.
Forum: Plugins
In reply to: [Loco Translate] Blocks can’t be translated“I can’t explain how your JSON file could contain “woocommerce” as the text domain. Possibly you configured this.” – nothing is done specially. The problem is that for example “Your cart (%d item)” string can be only found under “woocommerce.pot”. But this string is written in the code with “woo-gutenberg-products-block” textdomain as shown in the following screenshot: https://prnt.sc/1dvoxtd
Do to fact that textdomains are different, Loco creates translation using “woocommerce” textdomain then places it in .json files. As a result, there is no translation in front. That’s why in my first message I mentioned that it works when we use “messages” as a textdomain for “Woocommerce” translation.
Presumably, this isn’t your plugin related issue, but as a fact it’s actual.
Thanks
Forum: Plugins
In reply to: [Loco Translate] Blocks can’t be translatedHere you are:
This screenshot explains a lot, since it tries to load data from textdomain “woo-gutenberg-products-block” but actually the translation json files do include “woocommerce” textdomain. And that is exactly why using “messages” as textdomain saves that confusing situation.
What do you think can be a suggestion to solve it?
- This reply was modified 3 years, 7 months ago by Rufus87.
Forum: Plugins
In reply to: [Loco Translate] Blocks can’t be translatedHere you are:
https://prnt.sc/1dg0oep – Textdomain configuration “woocommerce”
https://prnt.sc/1dg080w – Translation interface in admin panel
https://prnt.sc/1dg01yx – There is no translation in front
https://prnt.sc/1dg0yu4 – JSON file looks like thisBut
https://prnt.sc/1dg1fzl – Textdomain configuration “messages”
https://prnt.sc/1dg1rta – Translation interface in admin panel
https://prnt.sc/1dg1yjx – Correctly translated in front
https://prnt.sc/1dg2734 – JSON file looks like thisAs you can see from provided screenshots, the only difference is “woocommerce” / “messages” key in “locale_data”
Thanks
Forum: Plugins
In reply to: [Loco Translate] Blocks can’t be translatedHi Tim.
Many thanks for your quick response. You are completely right, but actually it is not possible to translate woocommerce.po related json files.
To be able to reproduce this issue you have to enable WooCommerce and WooCommerce Blocks plugin, then try to translate any JS string e.g. try to edit some string translation on new checkout block: (ex: Your cart (%d item))
You will see that your custom translation does not work. WC actually load translations only id “message” key presents.
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] WC template wrong callThanks a lot. This will work for sure. Feel free to close the topic.
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] WC template wrong callHey,
Thanks for the quick response.
That template is not overwritten in theme. So it should use the one from your plugin, as the requested template does not exists in native Woocommerce plugin as well.
Thank.
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] Prices are hiden in cartMany thanks for the update.
Feel free to close the topic.
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] Prices are hiden in cartMany thanks for the fix.
We also face undefined index “HTTP_HOST” issue while running WP_CLI commands.
Can you please ensure the variable existing via isset( $_SERVER[ ‘HTTP_HOST’ ] ) before using it?
Thanks a lot.
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] Prices are hiden in cartForum: Plugins
In reply to: [NP Quote Request for WooCommerce] Prices are hiden in cartWoocommerce v3.8.0
I don’t know why do you need my settings and how to provide them to you?
The settings does not take any effect, just check the code I highlighted in the screenshots.
BTW: the error presents on today’s v1.8.151 as well.
Forum: Plugins
In reply to: [Nav Menu Roles] Performance OptimizationThanks a lot
Got it.
Thank you very much.
You can close this.