Translate Shell: Bring the translations to your shell ...

Google Translate Logo

If you want to have a program to be able to carry out translations also in text-based environments, you can use the tool that we present to you today, since translate shell it is a program that can perform translations from your command interpreter. It is a small and simple to use tool that can be installed in any Linux distro in a simple way, but it has the power of Google Translate.

Certainly Google has a good API for translation that can be used in a multitude of projects like this or web projects, but perhaps it is not the best translator that exists. In fact, if you have used it, sometimes it often fails. But for simple or fast translations that do not require maximum precision, it is a very useful tool that fulfills its mission. I mean with this, that for professional documents or more serious things, it would be good if you review the translation so as not to get quite unpleasant surprises ...

That said, it is not a criticism of the tool, but I think it is important for users to know what they are facing if they plan to use it for documents for a more professional use, the alternative to other translators of the many that exist such as Crow Translate, etc., you can install it easily by executing the following commands:

git clone https://github.com/soimort/translate-shell

cd translate-shell/

make

sudo make install

This is the generic form that can be installed from the source code that is hosted on Github and that is valid for any GNU / Linux distribution. But I would like you to know that there are also specific packages for certain major distros, so it may be easier for you to use your distro's native package manager to install it ...

Once installed, you have a dictionary of words in different languages ​​if you use only specific words, as well as an «urban» dictionary of more colloquial vocabulary. In addition, you can translate sentences or complete texts in an easy way. It is an interactive tool, therefore, to access it when the new prompt appears:

trans -shell -brief

And once inside you can operate with herHow to exit using: q or enter the text or word you want to translate ... Although you can also use it directly on the word or phrase you want to translate:

trans -brief 'Hello, world!'

By the way, there are more options than you can consult your manual, like -R to check the supported languages, etc.


Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.