This thread is resolved. Here is a description of the problem and solution.
Problem:
WP Bakery page builder's Title & Text widget (cz_title shortcode) wasn't being translated in ATE.
Solution:
Looks like after some updates to the theme or perhaps the plugin, it needed to be registered in WPML -> Settings -> Custom XML Configuration like below:
<wpml-config> <shortcodes> <shortcode> <tag>cz_title</tag> </shortcode> </shortcodes> </wpml-config>
After that made a little change in content, saved and updated the translation.
Relevant Documentation:
https://wpml.org/documentation/support/language-configuration-files/
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Documentation request
This topic contains 6 replies, has 2 voices.
Last updated by Waqas Bin Hasan 1 year, 6 months ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
July 31, 2023 at 1:18 pm #14127685 | |
faresA-3 |
Hi, I'm having trouble getting all the components that need translating to appear in the WPML Translator page. Please see hidden link and click on the Arabic language button in the menu, you'll notice some of the strings (e.g. "2. Soft Landing") is not translated. This is because it never appeared in the translator. I tried going to WPML > Themes and plugins localization and scanned the theme and a few plugins, to no avail unfortunately. I've tried suggestion to edit the page in the primary language, specifically the component that was not appearing in the translation page, to force trigger a translation update. No luck either. Upon checking the translation page, no new strings or components appeared, and the translation status appeared as 100% complete. Please help. |
July 31, 2023 at 1:19 pm #14127687 | |
faresA-3 |
I can provide login and FTP information if needed. |
August 1, 2023 at 8:55 am #14131563 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. First of all I'll advise to fix the followings: IMPORTANT: Take full backup of your website and database beforehand. 1) Increase “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code: define( 'WP_MEMORY_LIMIT', '128M' ); define( 'WP_MAX_MEMORY_LIMIT', '256M' ); Remember to add these lines before the line where it says: 2) Update WPML plugins to the latest versions. 3) Retry the suggestions you've already mentioned in your first message. If issue is still there, then I am afraid you need to register that page builder widget (responsible for these strings) into WPML's XML configuration. Please see https://wpml.org/documentation/support/language-configuration-files/ for details. Once registered, go to edit an existing page containing this widget, make a little change in there, save and update the translation. Please let me know if it works. Regards. |
August 1, 2023 at 5:19 pm #14136365 | |
faresA-3 |
I followed every single step. 1) Edited wp-config.php and added the two lines shared exactly where advised. 2) Updated every plugin and the theme. 3) Retried scanning the theme and plugins, and retried to edit the English language. No luck 🙁 |
August 2, 2023 at 8:52 am #14140075 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for trying the suggestions. May I ask for admin access to your website to check the issue in detail? You can create a separate admin user for this purpose, which can be deleted afterwards. Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend. Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site (including plugins & themes deactivation), which may cause conflicts with the live site otherwise. Please confirm it in your next reply or let me know if you do not agree with the mentioned. I've set your next reply as private to share this information safely. IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. |
August 3, 2023 at 7:51 am #14146473 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the access. I am working on it and 'll get back to you accordingly. |
August 3, 2023 at 8:34 am #14147055 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for waiting. I was able to fix the problem by adding following XML config (as I referred to the XML config previously): <wpml-config> <shortcodes> <shortcode> <tag>cz_title</tag> </shortcode> </shortcodes> </wpml-config> See attached. WP Bakery page builder uses short codes to build the design. The "cz_title" widget is one of them and perhaps with later changes to the page builder, it has new definitions, which needed to be registered accordingly. This is a common case, that's why WPML offers to redefine these in WPML -> Settings -> Custom XML Configuration (https://wpml.org/documentation/support/language-configuration-files/). For any other widget where you run into similar problem, I'll advise to follow the guide. All you need to add the widget to your page, then switch to "Classic Mode" and then to "Text" mode of editor. So you can see the relevant short code and its attributes, to use for widget registration in WPML's XML config. I hope the problem is resolved now. |
August 3, 2023 at 10:12 am #14148015 | |
faresA-3 |
Waqas, you're a boss. Thank you so much!!! |