soimort / translate-shell

:speech_balloon: Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.
https://www.soimort.org/translate-shell
The Unlicense
6.94k stars 391 forks source link

Is there a way not to translate some words and something inside special tags? #322

Closed mav1 closed 5 years ago

mav1 commented 5 years ago

Hello. I want to translate something like this (for example, to german language or another one):

This is some text. And some more text...and more and more... SOMESTRANGEWORD And a little bit of code:

<mycode>
echo "hello world";
</mycode>

And some more stupid text...

So, is there a way not to translate SOMESTRANGEWORD and also everything between <mycode> and </mycode> ? Where i can set these exceptions?

soimort commented 5 years ago

Duplicate of #214 and #75.