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.