Wednesday 24 June 2015

How to restrict Google Translator to translate words


Issue:
Various sites in web are using google translator and sometime developers don't want to translate some words. Explaining a common example where you mention Skype address to contact as below

live:oyeweb

Please see on http://www.oyeweb.com/oye/

Now you will notice if you change language from option (Right side at the Top)

live:oyeweb is not getting translated. This can be done on adding span with class notranslate

<span class="notranslate">

Your other tags go here

</snap>

This can also be checked while using google translator directly. Or click on below link which will land you on google translator with few text. 

Link to check


Now if you have clicked on above, you can see that [bold] is not getting translated via google translator as this is wrapped within span class='notranslate'   as below

Saying hello <span class='notranslate'>[bold]</span> to check


Hope this is clear. Please comment in case of queries.

No comments:

Post a Comment