Background of the issue:
I am trying to translate a button I added manually to the Divi Header on my site hidden link using WPML. The button text 'Book Demo' is repeated in another button on the main page, and there is a string translation of 'Book Demo' to 'Demo buchen'. The button is not contained in the menu because I created the website with the Divi Builder and couldn't add a button in the menu that is styled differently than the rest of its content.
Symptoms:
Translation issue with button in Divi header. The translation doesn't take effect in the header-button. I expected to see 'Book Demo' in the English header and 'Demo buchen' in the German header, but I got 'Book Demo' in both languages.
Questions:
Why is the translation not applied to the header button?
How can I ensure the header button text is translated correctly?...
Reference to our recent chat, looks like the "Global header" hasn't been translated. I checked further and since it was created in English (secondary) language, it can be translated automatically.
I also had to close my browser for some reason and since login information wasn't saved, I've lost the login information.
Please go to Users and set a password for my user and then provide me access to check further.
Your next answer will be private, to share this information safely.
IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.
I was able to fix the issue by following these steps:
- Since the global header was created in English, it was not possible to translate automatically. Because WPML, so far, only supports auto-translation from Primary language to the Secondary language. And English is the secondary language in your site, so can't be translated from English to German.
- So I turned off the automatic translation temporarily.
- Added myself as translator in the site (WPML -> Translation management -> Translators).
- In WPML -> Translation Management, searched for the content in "EN" (see attached).
- Selected the "Global Header Template" and added to translation basket (Translate myself).
- From Translations, clicked the "Translate" button and in ATE, translated the "Book Now".
- Completed the translation and it is now working fine (see attached or hidden link).
I've turned on the automatic translation after that.