Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and use Translate Shell in Linux

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install and use Translate Shell in Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Translate Shell is a command line translator that supports the Google Translate, Bing Translator, Yandex.Translate, and Apertium translation engines, and the Google Translate engine is used by default.

How to install Translate Shell

There are three ways to install Translate Shell.

Download self-contained executables manually install through package manager method 1: download self-contained executables

Download the self-contained executable and put it in the / usr/bin directory.

$wget git.io/trans$ chmod + x. / trans$ sudo mv trans / usr/bin/ method 2: manual installation

Clone Translate Shell's GitHub repository and compile it manually.

$git clone https://github.com/soimort/translate-shell & & cd translate-shell$ make$ sudo make install method 3: through the package manager

Translate Shell is included in the official repository of some distributions and can be installed through the package manager.

For Debian/Ubuntu, use the APT-GET command [2] or the APT command [3] to install.

$sudo apt-get install translate-shell

For Fedora, use the DNF command [4] to install.

$sudo dnf install translate-shell

For Arch Linux-based systems, use the Yaourt command [5] or Packer lively [6] to install from the AUR repository.

$yaourt-S translate-shellor$ packer-S translate-shell how to use Translate Shell

After installation, open the terminal and enter the following command. Google translator automatically detects the language of the source text and translates it into the language of your locale by default.

$trans [Words]

Now I will translate the word "Nanri" from Tamil into English. This word means to thank others.

$trans / s / s /

English can also be translated into Tamil using the following command.

$trans: ta thanksthanks/THaNGks/ / Na / I / Definitions of thanks [English-> / English / noun / gratitude / thanksthanks / I / Definitions of thanks / English-> /

To translate a word into multiple languages, use the following command (in this case, I translated the word into Tamil and Hindi).

$trans: ta+hi thanksthanks/THaNGks/ / Na / I / Definitions of thanks / English / > / noun / gratitude / thanksthanks / thanks/THaNGks/ / dhanyavaad / Definitions of thanks / English / dhanyavaad / English / dhanyavaad / Definitions of thanks / English / English / dhanyavaad / Definitions of thanks / English / dhanyavaad / Definitions of thanks / English / English / dhanyavaad / Definitions of thanks / English / dhanyavaad / English / dhanyavaad / English / English / dhanyavaad / English / English / dhanyavaad / dhanyavaad / English / dhanyavaad / English / English / dhanyavaad / English / dhanyavaad / English / English / dhanyavaad / dhanyavaad / English / dhanyavaad / English / English / dhanyavaad / dhanyavaad

Use the following command to translate multiple words as one parameter (sentence). You just need to apply the sentence as a parameter.

Trans: ta "what is going on your life?" what is going on your life? / / what is going on your life / I don't know what's going on.

The following command translates each word individually.

$trans: ta curios happycurios / rvam / Translations of curios [Rom â n] / curios / curios / Definitions of happy / Definitions of happy / English / English / Definitions of happy / Definitions of happy / English / Definitions of happy / English / English / Definitions of happy / English / Definitions of happy / English / Definitions of happy Gay / she / she /

Concise mode: by default, Translate Shell displays as much translation information as possible. If you want to display only brief information, just add the-b option.

$trans-b: ta thanks please pay attention.

Dictionary mode: add-d to use Translate Shell as a dictionary.

Trans-d: en thanksthanks/THaNGks/Synonyms noun-gratitude, appreciation, acknowledgment, recognition, credit exclamation-thank you, many thanks, thanks very much, thanks a lot, thank you kindly, much obliged, much appreciated, bless you, thanks a millionExamples-In short, thanks for everything that makes this city great this Thanksgiving. -many thanks-There were no thanks in the letter from him, just complaints and accusations. -It is a joyful celebration in which Bolivians give thanks for their freedom as a nation. -festivals were held to give thanks for the harvest-The collection, as usual, received a great response and thanks is extended to all who subscribed. -It would be easy to dwell on the animals that Tasmania has lost, but I prefer to give thanks for what remains. -thanks for being so helpful-It came back on about half an hour earlier than predicted, so I suppose I can give thanks for that. -Many thanks for the reply but as much as I tried to follow your advice, it's been a bad week. -To them and to those who have supported the office I extend my grateful thanks. -We can give thanks and words of appreciation to others for their kind deeds done to us. -Adam, thanks for taking time out of your very busy schedule to be with us tonight. -a letter of thanks-Thank you very much for wanting to go on reading, and thanks for your understanding. -Gerry has received a letter of thanks from the charity for his part in helping to raise this much needed cash. -So thanks for your reply to that guy who seemed to have a chip on his shoulder about it. -Suzanne, thanks for being so supportive with your comments on my blog. -She has never once acknowledged my thanks, or existence for that matter. -My grateful thanks go to the funders who made it possible for me to travel. -festivals were held to give thanks for the harvest-All you secretaries who made it this far into the article... Thanks for your patience. -So, even though I don't think the photos are that good, thanks for the compliments!-And thanks for warning us that your secret service requires a motorcade of more than 35 cars. -Many thanks for your advice, which as you can see, I have passed on to our readers. -Tom Ryan was given a bottle of wine as a thanks for his active involvement in the twinning project. -Mr Hill insists he has received no recent complaints and has even been sent a letter of thanks from the forum. -Hundreds turned out to pay tribute to a beloved former headteacher at a memorial service to give thanks for her life. -Again, thanks for a well written and much deserved tribute to our good friend George. -I appreciate your doing so, and thanks also for the compliments about the photosensitive see also Thanksgiving, thank, many thanks, thanks to, thanks to you, special thanks, give thanks, thousand thanks, Many thanksgiving, render thanks, heartfelt thanks, thanks to this

You can use Translate Shell to translate files using the following format.

$trans: ta file:///home/magi/gtrans.txt / s /

The following command puts Translate Shell into interactive mode. You need to clearly specify the source and target languages before entering interactive mode. In this example, I translated English words into Tamil.

$trans-shell en:ta thanksTranslate Shell (: q to quit) thanks/THaNGks/ (/

To know the language code, execute the following command.

$trans-R

Or

$trans-T ┌─┬─┬─┐│ Afrikaans-af │ Hindi-hi │ Punjabi-pa ││ Albanian-sq │ Hmong-hmn │ Quer é taro Otomi- otq │ │ Amharic-am │ Hmong Daw-mww │ Romanian-ro ││ Arabic-ar │ Hungarian-hu │ Russian-ru ││ Armenian-hy │ Icelandic-is │ Samoan-sm ││ Azerbaijani-az │ Igbo-ig │ ig-Scots Gaelic ││ Scots Gaelic-gd │ Scots Gaelic- Id │ Serbian (Cyr...-sr-Cyrl │ Belarusian-be │ Irish-ga │ Serbian (Latin)-sr-Latn │ Bengali-bn │ Italian-it │ Sesotho-st ││ Bosnian-bs │ Japanese-ja │ Shona-sn ││ Bulgarian-Bulgarian │ Bulgarian-bg │-bg │ │ Cantonese-yue │ Kannada-kn │ Sinhala-si ││ Catalan-ca │ Kazakh-kk │ Slovak-sk ││ Cebuano-ceb │ Khmer-km │ Slovenian-sl ││ Chichewa-ny │ Klingon-tlh │ Somali-so ││ │ Klingon (pIqaD) tlh-Qaak Spanish-es ││ Chinese Trad...- zh-TW │ Korean-ko │ Sundanese-su ││ Corsican-co │ Kurdish-ku │ Swahili-sw ││ Croatian-hr │ Kyrgyz-ky │ Swedish-sv ││ Czech-cs │ Lao-Lao │ Tahitian-ty ││ Danish-da │ Latin-la │ Tajik-tg ││ Dutch-nl │ Latvian-lv │ Tamil-ta ││ English-en │ Lithuanian-lt │ Tatar-tt ││ Esperanto-eo │ eo-Luxembourgish │ Luxembourgish-lb │ │ Estonian-et │ Macedonian-mk │ Thai-th ││ Fijian-fj │ Malagasy-mg │ Tongan-to ││ Filipino-tl │ Malay-ms │ Turkish-tr ││ Finnish-fi │ Malayalam-ml │ ml-Udmurt ││ Udmurt-udm │ Udmurt -mt │ Ukrainian-uk ││ Frisian-fy │ Maori-mi │ Urdu-ur ││ Galician-gl │ Marathi-mr │ Uzbek-uz ││ Georgian-ka │ Mongolian-mn │ Vietnamese-vi ││ German-de │ de-Myanmar │ Myanmar -cy ││ Greek-el │ Nepali-ne │ Xhosa-xh ││ Gujarati-gu │ Norwegian-no │ Yiddish-yi ││ Haitian Creole-ht │ Pashto-ps │ Yoruba-yo ││ Hausa-ha │ Persian-fa │ fa-Yucatec Maya ││ Yucatec Maya- Haw │ Polish-pl │ Zulu-zu ││ Hebrew-he │ Portuguese-pt │ │└─┴─┴─┘

To learn more about the options, check out their man manual.

Man trans thank you for reading this article carefully. I hope the article "how to install and use Translate Shell in Linux" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report