When trying to translate the description of an add-on (from https://woocommerce.com/products/product-add-ons/) that has bold text using in it, WPML is not detecting the bold tags so I can't apply them with the standard Alt+1.
Also, as soon as I get to that field, I see the "]]>" characters at the end, which is weird.
The real problem is that this field won't save, no matter what the content on the translation I input.
To clarify, when I add anything on the translation field and I click on the green checkmark or do Ctrl+Enter, nothing happens and the field never saves, so I can't translate this content.
Note:
I've always had the tags in there and they used to work as expected. But now that I needed to modify the description content, it's no longer working. I'm suspecting an update broke this (can't know if WPML or WC or WC Add-on).
Thank you for contacting WPML support, I'd be happy to help you with this issue.
I do not see that issue on my demo site, here are some screenshots hidden link hidden link
According to your screenshots, I also see the strong HTML tag is applied to the content on the Original language side which is not correct. Can you please follow some steps below to troubleshoot the issue and let me know if it helps?
1. Enable minimal environment:
- Deactivate all plugins except WPML, WooCommerce, WooCommerce Product Addons plugins
- Switch to a standard theme of WordPress (2022)
❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
2. Make sure all necessary plugins are up to date.
I also need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article https://wpml.org/faq/provide-debug-information-faster-support/
Your next reply is enabled to share the debug info.
I've done as you said and disabled almost all plugins and the result was the same. I did have an interesting finding:
When I add only 1 strong tag, it works as expected (see attached image)
When I add the second strong tag:
- The field won't show up in the advanced translator editor, I need to find it using the search function
- Related to the above, it now has the "plugin settings" yellow tag
- It doesn't break the paragraph by sentences
- The text is bold on the left column
- The translation won't save
Can you try adding a second strong tag on your end and see if you get the same results?
I've tried to add 2 strong tags to the addon field description and still see it works correctly, please check screenshots below hidden link hidden link
and try to use this one
In publishing and graphic design, Lorem ipsum <strong>is a placeholder text</strong> commonly used to demonstrate the visual form of <strong>a document or a typeface</strong> without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available.
or try to remove your paragraph and add this again to check the issue. If it still does not work, please share your paragraph in the next reply, I will test to translate it on my demo site.
Hi Long, I tried what you suggested and no luck. Even when using just one tag from your text, I'm getting the issue of not applying with alt+1 but I can save the translation. If there are two tags, it simply won't work.
I even tested two different tags, and <u>, and again the same result.
I can replicate the issue on my end. It looks like the issue happens when you search for a keyword, I see the context is different when using the search form. Please check this screenshot hidden link
Can you please translate the product without using the search and let me know if it works?
The issue is that the field is not showing it. I can only find it with search. Please see the attached images. On your image, when you search, you see the field twice, when I search I only get the plugin-settings one.
I also tested switching back to only one tag and it is still only showing up on search, so it seems there might be two separate issues:
1. The plugin-settings field reading the internal tags incorrectly
2. The non plugin-settings field not showing up for translation
I can not know the settings in the respective plugins you have on your site. Therefore, to check if it is a compatibility issue, please install the WooCommerce Product Addons plugin on the test site I'm providing here. hidden link
With this link, you'll be directly logged in.
Please install the WooCommerce Product Addons plugin and see if the issue is replicable on a clean WordPress installation. Please configures WPML, WooCommerce, and WooCommerce Product Addons as they are configured on your site (just the basic configurations needed to replicate the issue are enough). Please also make sure that you are installing the latest version of the plugin. When everything is finished, and you can replicate the problem, please let me know.
Look forward to your reply.
Thanks
The topic ‘[Closed] Bold text not detected by WPML so I can't save translation’ is closed to new replies.