Problem: The client was experiencing an issue where a specific string in the GDPR Cookie Consent banner was displaying in English on the Spanish version of the site and in Spanish on the English version, despite the URLs being correct.
Solution: 1. Check and Correct the Translation in GDPR Cookie Consent Settings: - Navigate to Cookie Consent → Languages in the WordPress dashboard. - For each language where the string is incorrect, click on Edit Content. - Review and correct the translations in both the Consent Banner and Preference Center sections. - If the string is part of the cookie categories, go to Cookie Consent → Manage cookies, use the Edit content in dropdown to select your languages, and correct the translation. - Save changes. 2. Clear Caches: Clear all caches (plugin, server, browser) to ensure changes appear immediately. 3. Verify WP Memory Limit: Check the WP Memory Limit in WPML → Support and increase it if necessary. 4. Delete and Retranslate the String in WPML String Translation: - Navigate to WPML → String Translation. - Search and delete the problematic string, then use the Utilities tab to re-register the string by visiting the page where the cookie banner appears. - Re-translate the string correctly for both languages.
If these steps do not resolve the issue, or if the solution seems outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance.
Problem: You are experiencing an issue where the category link in your breadcrumbs points to the wrong language. For example, despite the post and category being in English, the breadcrumbs link redirects to a Spanish category. This issue affects multiple categories across your site. Solution: We recommend installing the WPML SEO plugin, which should resolve the issue with the incorrect language links in your breadcrumbs. You can download the WPML SEO plugin from here. After installation, verify that you have the latest versions of all your themes and plugins to ensure compatibility and functionality.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues at https://wpml.org/known-issues/ and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket with us for further assistance.
Problem: You are trying to translate strings in your theme, but two strings are not translating as expected. The issues identified include using a hook to register strings with variables instead of direct strings, and using a templating language with double curly braces instead of the standard PHP syntax. Solution: First, ensure that you are directly passing the strings that need translation into the function, rather than using variables. This will help WPML recognize and translate them correctly. Second, switch to using standard PHP syntax as per WordPress Coding Standards for better compatibility with WPML. We also recommend testing your theme on a WPML test site to closely examine these issues.
If this solution does not resolve your issue or seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket for further assistance. You can do so here: WPML support forum.
Problem: The client was unable to translate a specific string on their website, even after deleting the string from the string translation list, rescanning the theme, and clearing the WPML cache. The string would appear translated only when the 'scan while browsing' option was activated, but would revert to being untranslated when this option was deactivated. Solution: We recommended ensuring that the text in the Pricing section was correctly implemented for translation support. Specifically, the text should be wrapped in the Gettext function with the appropriate text domain. We provided a guide to help with this process: Translating the Theme You Created. Further steps included: 1. Navigating to "WPML > Theme and Plugins Localization". 2. Ensuring that the Localization options were selected and the text domain of the theme was added. 3. Scanning the theme again for strings. 4. Checking the string translation section to see if the string appeared.
If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
Problem: The client is unable to translate certain strings on their website, specifically related to the Complianz cookie banner and other strings, despite them being translated in the WPML string section. Additionally, one string on the pricing page does not appear in the string list or admin texts after attempts to delete and rescan. Solution: We recommend the following steps to resolve the issue: 1. Navigate to WPML > Theme and Plugins Localization. 2. Ensure that the Localization options are correctly configured. Refer to this screenshot for guidance: https://prnt.sc/dI2Mpt4gjsbe 3. Select the Complianz plugin and scan it for strings. 4. After the scan, go to WPML > String Translation and verify that the strings from the banner are translated correctly. 5. Visit WPML > Support > Troubleshooting. 6. Click on the following buttons:
Clear the cache in WPML
Cleanup and optimize string tables
Show custom MO Files Pre-generation dialog box (click on the Generate MO files button in the popup)
After completing these steps, clear the caches on both your site and browser, then check the translated version of the site.
If these steps do not resolve the problem, or if the solution seems outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket at WPML support forum for further assistance.