This thread is resolved. Here is a description of the problem and solution.
Problem: The client was unable to translate the "the7 mini cart popup".
Solution: 1. We registered the option popup of the widget "The7 Menu Cart" for translation by adding custom XML configuration code to WPML > Settings > Custom XML Configuration:
2. We instructed the client to go to Templates and translate the header template "the7 header minimal".
3. We guided the client to navigate to WPML > String Translation and translate the popup ID with the translation ID, as shown in the attached screenshots.
Please follow the steps that my colleague suggested and see if it helps. If not, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
If you want to delete the template translation, please edit the template in English > Switch language to Chinese with the language switcher at the topbar > Move it to the Trash and delete it in the Trash.
The problem is the header template is not translated into Chinese and the option popup of the widget "The7 Menu Cart" is not registered for translation. I fixed the issue with the following steps:
1. Add the custom XML configuration code below to WPML > Settings > Custom XML Configuration to register the option popup of the widget "The7 Menu Cart" for translation:
Thanks for that, but since then my translated site has came up with a secondary header menu as shown in the image. This header does not appear in the original language. Hopefully you can reply to this asap as this is quite critical for the whole site to work, thanks
The issue occurs because the header template in Chinese is not set to display on the Entire site so both Elementor header and theme header are displayed. I fixed that issue on your site. Also, please don't move the translation of the popup template to the trash. I've restored it back to make it work properly.
I hope I was helpful. Don't hesitate to ask if you find any problem along the way, I'll gladly help you.
Thanks for fixing the issue. Can I please know how do you fix that please? I have got this issue earlier when I automatically translate the whole site and alot of these unused template just appear in the site out of no where.
Also with the translation template, may I know how do you find which one to translate? I am having trouble figuring out what to do when alot of these unused template all appeared in the translation. I would have thought my mini cart template is the one with small letter "the7" since that is what shown in the Edit in Elementor header. (See image). Can you please advise on this?
And also with the XML configuration on the mini cart, may I know this procedure doesn't need to be done when I am translation the pop up menu and pop up filter template? They are all also being provided by third party theme. I just translate them in the Translation Management and it was working alright.
You are right to find the template: visit the page in the frontend > hover over the Elementor button in the admin bar > edit the popup template. In the admin area, you can translate the template when editing it.
If you want to find the correct template in the list, you can see the post ID in the URL. I also suggest removing other templates with a similar name if not needed.
Regarding the header template, I just delete the translation template in Chinese > Re-translate it to sync the condition display of Elementor (Entire site).
Thanks for answering. I've went through the XML configuration documentation, but my godness that is crazily complicated...
The process of the video provided doesn't seems the same with what you've done for me on the menu cart earlier. With the code given in the documentation, there was a condition key where you'll need to replace it by doing a sequence of work, but your code seems a little different. How did you find the widget name to be "the7-woocommerce-menu-cart" when the name of it is "the7 mini cart popup"?
Can you help me to translate the mob menu as another example please? I've got a series of massive codes during Unserialise when I was trying to translate it... (as you can see in the image, I got different type of Widget type here)
According to your screenshot, there are 14 widget types and you should check all of them to find the widget needed. I just follow step-by-step in the documentation to find and translate the widget.
And here is the custom XML configuration code to translate the text of The7 Login widget in the mobile popup menu, the condition tag is not needed in this case so I removed it.
<widget name="the7-login-widget">
<fields>
<field type="Logged out text" editor_type="LINE">logged_out_text</field>
<field type="Logged out URL" editor_type="LINK">logged_out_link>url</field>
<field type="Logged in text" editor_type="LINE">logged_in_text</field>
<field type="Logged in URL" editor_type="LINK">account_link>url</field>
</fields>
</widget>
I also suggest you contact the theme author and ask them to add custom XML configuration code for their widgets to the file wpml-config.xml then you can translate all the widgets easier.