a blacklist for words, that should not be translated would be nice.
Hi there, @Daniel_Wegmann
The Translation Exclusions feature is already available in the widget. You can choose which parts of your website should stay untranslated. Just add the class names of the elements you want to exclude from translation:
If this feature doesn’t work for you, please send me a link to the page where the widget is installed and specify the words you’d like to exclude from translation
Hi Max,
thank you for your response.
i already saw the „exclusions“ tab, but as you said: i only can exclude whole areas.
but i´d like to exclude certain names (like cities or person-names).
for example: the city name „neuenkirchen“ (german) would translate to „newchurch“ in english. but the city name should not be translated at all.
another example: the german surname „mannfred“ translates to „human peace“ - but i need the correct name.
and a weird example: the german city name „vechta“ translates to „old“ in english. but that’s not at all what it means
anotherone: the german city name „Dinklage“ translates to „your complaint“ which in german would be "Deine Klage“.
so a blacklist with words, that should not be translated all would be a good solution i think.
because these words are not related to any classes or areas, the exclusion tab is no help for me.
i hope you understand, what i mean.
regards,
daniel
Got it!
I guess there is a chance to exclude these words from the translation with a custom script. Could you please send me a link to the page where this widget is installed? I’ll be happy to check it with the devs
https://lkv-game.de/gamesystem/fragen.php?args=testkat
it´s a game system with multiple choice questions.
i sent you a test with only twi different questions, you can click „reload“ in the lower left corner to reload the questions
Thank you!
I’ve passed this on to the devs and will let you know once I have their response
Thank you for waiting!
We’ve removed the multiple choice options We’ve added the code to the Custom JS section on the Settings tab of your widget’s settings:
let formAuth = document.querySelector("#formAuthentication");
if (formAuth) {
let categoryQuestion = formAuth.querySelector("#categoryQuestion");
if (categoryQuestion && categoryQuestion.textContent.includes("geht das jetzte cht")) {
let answers = formAuth.querySelectorAll("[id^='answer']");
answers.forEach(answer => {
answer.classList.add("noTranslate");
});
}
}
This code assigns a custom class (noTranslate) to the elements you wanted to exclude.
Also, we’ve added noTranslate to the Translation Exclusions. Please check it out and let me know if it’s fine