nahnufitness
Forum Replies Created
-
Hello,
Very strange. I will just keep using my JS workaround for now, then.
Normally plugins without WPML support still will work with the string translation.
Thanks for looking into this for me!
Hello,
This isn’t my first WPML website. Here is a link: https://snipboard.io/i68AQ5.jpg
Hello,
I feel you did not understand what I wrote.I have already used WPML to translate the string for the line “Yes, I want to receive your newsletter.” The problem is that the transaction does not show when the site is in Arabic. I don’t need to use Loco Translate to achieve the same thing. Also, it is bad advice to even offer someone to use two translation plugins at once.
I am not asking for full WPML support but to be able to make sure this one part of the plugin works properly.
There seems to be an error with how the string is loading in the opt-in checkbox text. The translated text string does not load. Only the original text from within the opt-in checkbox settings will show.
- This reply was modified 1 month, 3 weeks ago by nahnufitness.
Try now I am using this snippet to load some JS to make the Arabic show:
function custom_text_replacement_script() {
if (is_page(557)) { // Check if the current page is the one with ID 557
echo '<script>
document.addEventListener("DOMContentLoaded", function() {
document.body.innerHTML = document.body.innerHTML.replace(/Yes, I want to receive your newsletter\./g, "???? ???? ?????? ?????? ????????? ?????? ??.");
});
</script>';
}
}
add_action("wp_footer", "custom_text_replacement_script");and it is not fair to mark this as “Resolved” when you did not Resolve the issue
- This reply was modified 2 months, 4 weeks ago by nahnufitness.
Hello,
I already wrote support, and they just said they would think about it. But this is a very important multi-language site feature that needs to be added