How do I Google Translate such that all desired texts are left untranslated?

For example, when translating “Have you tried the Clipboard History window” to Hindi, the “Clipboard History Window” is translated to Hindi instead of being left as it is, as it is a technical term.

I have tried <span class=notranslate> but as it should be, it is valid only in HTML.

  • How about removing the respective text from the translation? Or replacing it with something generic? – Alex Dec 2 '13 at 12:18

I don't think there's any special tag or character to insert to keep the text untranslated in Google's Translate form.

But since you are willing to manually add tags to keep your text untranslated, a trick is to prefix each word that you want to keep untranslated with a random string, for example "KEEP".

So Have you tried the KEEPClipboard KEEPHistory KEEPwindow will be translated to आप KEEPClipboard KEEPHistory KEEPwindow की कोशिश की and then with a text editor replace all "KEEP" with an empty string.

Definitely not the best work around, but there you go :)

  • That will do. I needed this in the program and so managing prefixed words and replacing them back wont be trouble. – Avi Dec 3 '13 at 9:59

I found the answer, for anyone else who might be looking. You just add the class "notranslate" to your element and Google Translate will leave it untranslated.

Ref: support.google.com/translate/?hl=en#2641276

  • 2
    The page you reference doesn't seem to have that information. Do you have an updated source? – ale Oct 1 '15 at 0:09
  • Just tried it on my website and adding class="notranslate" is working. Thanks! – Chris Sep 19 '18 at 6:30

Your Answer

