string translation overrides the source of the string itself in Flatsome
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.
Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Background of the issue:
I have created a translation for 'HTML 5' custom string that you can use in the Flatsome builder. At first, it worked fine, and I saw the translation on the translated website and the original text in the original Hebrew language. Link to a page where the issue can be seen: hidden link
Symptoms:
The translated English text appears in both the original Hebrew version of the website as well as in the translated version. The original text was replaced with the translation, overriding it, and it is now lost.
Questions:
Why is the translated text appearing in both the original and translated versions?
How can I restore the original text that was replaced by the translation?
After I rewrote the original text and saved it all worked for a while, but then again, for the second time, suddenly the original text was overridden by the translation at its source, leaving both languages with the translated text.
So this is not a one time thing, this is constant.
1. **Backup Your Site**
Ensure you have a full site backup before proceeding to avoid any unintended changes.
2. **Edit the `wpml-admin-texts.class.php` File**
- Open the file located at `…/wp-content/plugins/wpml-string-translation/inc/admin-texts/wpml-admin-texts.class.php`.
- Locate line 214.