J.Gowri Sankar Reddy
J.Gowri Sankar Reddy

Reputation: 31

How to use notranslate in Google Translate text file

How to tell Google to not translate some text file in a text file? This is my sample text file:

"hp1": "Swipe to the right to reveal the left menu.", "hp2": "(On desktop click and drag from left to right)", "ht": "Welcome", "TITLE": "Welcome", "name":"Gowrisankar Reddy"

google converting above one like this

"hp1": "ఎడమ మెనుని బహిర్గతం చేయడానికి కుడివైపుకు స్వైప్ చేయండి.", "hp2": "(డెస్క్టాప్ క్లిక్ చేసి ఎడమ నుండి కుడికి లాగండి)", "ht": "స్వాగతం", "TITLE": "స్వాగతం", "పేరు": "గౌరీశంకర్ రెడ్డి"

I don't want to convert "name". How can I do that?

I am not using HTML, using text file only.

Thanks.

Upvotes: 1

Views: 350

Answers (1)

Attersson
Attersson

Reputation: 4866

I am using google translate not used any code

Google Translator can normally skip translations by HTML tags with class notranslate.

But since it has a built-in html parser, as a hack, you can pretend one or more words are a tag.

<name> will not get translated

Another hack is to capitalize NAME

Upvotes: 1

Related Questions