Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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.

share|improve this question
    
How about removing the respective text from the translation? Or replacing it with something generic? –  Alex Dec 2 '13 at 12:18
    
@Alex great idea. Thanks –  Avi Dec 3 '13 at 9:58

2 Answers 2

up vote 0 down vote accepted

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 :)

share|improve this answer
    
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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.