I am trying to:
Show the translations of strings I have translated using the WPML String translation plugin.
Link to a page where the issue can be seen:
The orange button "Send" hidden link
I expected to see:
"Envoyer"
Instead, I got:
"Send"
It should be "Envoyer" in french as translated inside the strings translations plugin (see screenshot).
I was able to see the translation for a moment, while I was in the "Auto-register strings for translation", but when I disable it, the translations are not showing up in the front-end. It has the same effect if I am either in logged-in or not.
There is no cache on this env, the files permissions are fine. But I don't understand why my language files doesn't change when I add translations 🤔 Maybe this might be a lead.
There is only the "REST enabled" that is not ok on my side, but it might be a false positive since hidden link works.
The error_log has no issues since I made some changes, so there is no more meaningful information there.
I tried to login and it worked 🙁 . Can you try in Incognito mode ? If it doesn't work on the first try, try again when the page blinks after your attempt. If it still doesn't work, go in the address bar and hit Enter instead of refresh and try again.
For this very form, we are not using Formidable Forms for this, it's hardcoded in
and it did the trick on the French translation. While custom programming work is beyond the scope of our support, I thought this can be an exception as it was a quick thing to do.
I am a programmer myself and I know this could be a solution, but we have like 100 strings to translate and we might have 2 more languages in the future. Having to hardcode all of this for each strings we want to translate is far from an ideal solution. The String translation plugin is supposed to handle this to avoid this specific case.
If I code the strings like you told me, it's almost like I am bypassing the whole plugin to end up with more legacy code and make it harder to translate my website in the long run.
The issue is with the plugin or its configuration in the admin, not the way we wrote the code to translate the string.
The "Send" string was just an exemple, this is not the only string that I have a problem with. So the quick-fix using apply_filters() won't do.
Please read my original post for infos like:
"I was able to see the translation for a moment, while I was in the "Auto-register strings for translation", but when I disable it, the translations are not showing up in the front-end. It has the same effect if I am either in logged-in or not."
I totally understand your concerns here, but our hands are limited when the issues happen with custom-made themes.
With that said, you mentioned this is happening with other strings too. Could you please provide me with more examples? Maybe by checking many examples, I can find something related causing this issue.
Looking forward to hearing back from you.
The topic ‘[Closed] Translated strings won't display in frontend if I stop using autoregister string’ is closed to new replies.