Befehlszeilenversion von Google Translate: Translate Shell
Ich habe viel über CLI-Anwendungen geschrieben. Kürzlich habe ich einige der CLI-Tools von Google wie „Google Translator“, „Google Kalender“ und „Google Kontakte“ entdeckt. Hier möchte ich es mit Ihnen teilen.
Heute stellen wir das Tool „Google Translator“ vor. Da meine Muttersprache Tamil ist, habe ich mehrmals am Tag gebraucht, um die Bedeutung zu verstehen.
Google Translate wird häufig von Menschen anderer Sprachen verwendet.
Translate Shell[1] (ehemals Google Translate CLI) ist ein Befehlszeilenübersetzer, der zum Übersetzen Google Translate (Standard), Bing Translate, Yandex.Translate und Apertium verwendet. Sie erhalten Zugriff auf diese Übersetzungs-Engines in Ihrem Terminal. Translate Shell ist auf den meisten Linux-Distributionen verfügbar.
Es gibt drei Möglichkeiten, Translate Shell zu installieren.
- Laden Sie die eigenständige ausführbare Datei herunter
- Manuelle Installation
- Über den Paketmanager installieren
Laden Sie die eigenständige ausführbare Datei herunter und legen Sie sie im Verzeichnis /usr/bin ab.
$ wget git.io/trans $ chmod +x ./trans $ sudo mv trans /usr/bin/
Klonen Sie das GitHub-Repository von Translate Shell und kompilieren Sie es manuell.
$ git clone https://github.com/soimort/translate-shell && cd translate-shell $ make $ sudo make install
Einige Distributionen enthalten Translate Shell in ihren offiziellen Repositories und können über den Paketmanager installiert werden.
Für Debian/Ubuntu verwenden Sie zum Installieren den APT-GET-Befehl [2] oder den APT-Befehl [3].
$ sudo apt-get install translate-shell
Für Fedora verwenden Sie zum Installieren den DNF-Befehl[4].
$ sudo dnf install translate-shell
Für Arch Linux-basierte Systeme verwenden Sie den Yaourt-Befehl[5] oder Packer Mingkuai[6], um aus dem AUR-Repository zu installieren.
$ yaourt -S translate-shell or $ packer -S translate-shell
安装好后,打开终端闭关输入下面命令。 谷歌翻译会自动探测源文本是哪种语言,并且在默认情况下将之翻译成你的 locale 所对应的语言。
$ trans [Words]
下面我将泰米尔语中的单词 “நன்றி” (Nanri) 翻译成英语。 这个单词的意思是感谢别人。
$ trans நன்றி நன்றி (Naṉṟi) Thanks Definitions of நன்றி [ தமிழ் -> English ] noun gratitude நன்றி thanks நன்றி நன்றி Thanks
使用下面命令也能将英语翻译成泰米尔语。
$ trans :ta thanks thanks /THaNGks/ நன்றி (Naṉṟi) Definitions of thanks [ English -> தமிழ் ] noun நன்றி gratitude, thanks thanks நன்றி
要将一个单词翻译到多个语种可以使用下面命令(本例中,我将单词翻译成泰米尔语以及印地语)。
$ trans :ta+hi thanks thanks /THaNGks/ நன்றி (Naṉṟi) Definitions of thanks [ English -> தமிழ் ] noun நன்றி gratitude, thanks thanks நன்றி thanks /THaNGks/ धन्यवाद (dhanyavaad) Definitions of thanks [ English -> हिन्दी ] noun धन्यवाद thanks, thank, gratitude, thankfulness, felicitation thanks धन्यवाद, शुक्रिया
使用下面命令可以将多个单词当成一个参数(句子)来进行翻译。(只需要把句子应用起来作为一个参数就行了)。
$ trans :ta "what is going on your life?" what is going on your life? உங்கள் வாழ்க்கையில் என்ன நடக்கிறது? (Uṅkaḷ vāḻkkaiyil eṉṉa naṭakkiṟatu?) Translations of what is going on your life? [ English -> தமிழ் ] what is going on your life? உங்கள் வாழ்க்கையில் என்ன நடக்கிறது?
下面命令单独地翻译各个单词。
$ trans :ta curios happy curios ஆர்வம் (Ārvam) Translations of curios [ Română -> தமிழ் ] curios ஆர்வம், அறிவாளிகள், ஆர்வமுள்ள, அறிய, ஆர்வமாக happy /ˈhapē/ சந்தோஷமாக (Cantōṣamāka) Definitions of happy [ English -> தமிழ் ] மகிழ்ச்சியான happy, convivial, debonair, gay திருப்தி உடைய happy adjective இன்பமான happy happy சந்தோஷமாக, மகிழ்ச்சி, இனிய, சந்தோஷமா
简洁模式:默认情况下,Translate Shell 尽可能多的显示翻译信息。如果你希望只显示简要信息,只需要加上 -b选项。
$ trans -b :ta thanks நன்றி
字典模式:加上 -d 可以把 Translate Shell 当成字典来用。
$ trans -d :en thanks thanks /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 million Examples - 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 photos! See also Thanks!, thank, many thanks, thanks to, thanks to you, special thanks, give thanks, thousand thanks, Many thanks!, render thanks, heartfelt thanks, thanks to this
使用下面格式可以使用 Translate Shell 来翻译文件。
$ trans :ta file:///home/magi/gtrans.txt உங்கள் வாழ்க்கையில் என்ன நடக்கிறது?
下面命令可以让 Translate Shell 进入交互模式。 在进入交互模式之前你需要明确指定源语言和目标语言。本例中,我将英文单词翻译成泰米尔语。
$ trans -shell en:ta thanks Translate Shell (:q to quit) thanks /THaNGks/ நன்றி (Naṉṟi) Definitions of thanks [ English -> தமிழ் ] noun நன்றி gratitude, thanks thanks நன்றி
想知道语言代码,可以执行下面命令。
$ trans -R
或者
$ 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 │ Scots Gaelic - gd │ │ Basque - eu │ Indonesian - 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 - bg │ Javanese - jv │ Sindhi - sd │ │ Cantonese - yue │ Kannada - kn │ Sinhala - si │ │ Catalan - ca │ Kazakh - kk │ Slovak - sk │ │ Cebuano - ceb │ Khmer - km │ Slovenian - sl │ │ Chichewa - ny │ Klingon - tlh │ Somali - so │ │ Chinese Simp...- zh-CN│ 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 - lo │ Tahitian - ty │ │ Danish - da │ Latin - la │ Tajik - tg │ │ Dutch - nl │ Latvian - lv │ Tamil - ta │ │ English - en │ Lithuanian - lt │ Tatar - tt │ │ Esperanto - eo │ Luxembourgish - lb │ Telugu - te │ │ Estonian - et │ Macedonian - mk │ Thai - th │ │ Fijian - fj │ Malagasy - mg │ Tongan - to │ │ Filipino - tl │ Malay - ms │ Turkish - tr │ │ Finnish - fi │ Malayalam - ml │ Udmurt - udm │ │ French - fr │ Maltese - mt │ Ukrainian - uk │ │ Frisian - fy │ Maori - mi │ Urdu - ur │ │ Galician - gl │ Marathi - mr │ Uzbek - uz │ │ Georgian - ka │ Mongolian - mn │ Vietnamese - vi │ │ German - de │ Myanmar - my │ Welsh - cy │ │ Greek - el │ Nepali - ne │ Xhosa - xh │ │ Gujarati - gu │ Norwegian - no │ Yiddish - yi │ │ Haitian Creole - ht │ Pashto - ps │ Yoruba - yo │ │ Hausa - ha │ Persian - fa │ Yucatec Maya - yua │ │ Hawaiian - haw │ Polish - pl │ Zulu - zu │ │ Hebrew - he │ Portuguese - pt │ │ └───────────────────┴────────────────────┴────────────────────┘
想了解更多选项的内容,可以查看其 man 手册。
$ man trans
Das obige ist der detaillierte Inhalt vonBefehlszeilenversion von Google Translate: Translate Shell. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!

Heiße KI -Werkzeuge

Undresser.AI Undress
KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover
Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Undress AI Tool
Ausziehbilder kostenlos

Clothoff.io
KI-Kleiderentferner

AI Hentai Generator
Erstellen Sie kostenlos Ai Hentai.

Heißer Artikel

Heiße Werkzeuge

Notepad++7.3.1
Einfach zu bedienender und kostenloser Code-Editor

SublimeText3 chinesische Version
Chinesische Version, sehr einfach zu bedienen

Senden Sie Studio 13.0.1
Leistungsstarke integrierte PHP-Entwicklungsumgebung

Dreamweaver CS6
Visuelle Webentwicklungstools

SublimeText3 Mac-Version
Codebearbeitungssoftware auf Gottesniveau (SublimeText3)

Heiße Themen



Deepseek ist ein leistungsstarkes Intelligent -Such- und Analyse -Tool, das zwei Zugriffsmethoden bietet: Webversion und offizielle Website. Die Webversion ist bequem und effizient und kann ohne Installation verwendet werden. Unabhängig davon, ob Einzelpersonen oder Unternehmensnutzer, können sie massive Daten über Deepseek problemlos erhalten und analysieren, um die Arbeitseffizienz zu verbessern, die Entscheidungsfindung zu unterstützen und Innovationen zu fördern.

Es gibt viele Möglichkeiten, Deepseek zu installieren, einschließlich: kompilieren Sie von Quelle (für erfahrene Entwickler) mit vorberechtigten Paketen (für Windows -Benutzer) mit Docker -Containern (für bequem am besten, um die Kompatibilität nicht zu sorgen), unabhängig von der Methode, die Sie auswählen, bitte lesen Die offiziellen Dokumente vorbereiten sie sorgfältig und bereiten sie voll und ganz vor, um unnötige Schwierigkeiten zu vermeiden.

Lösung für Erlaubnisprobleme beim Betrachten der Python -Version in Linux Terminal Wenn Sie versuchen, die Python -Version in Linux Terminal anzuzeigen, geben Sie Python ein ...

Bitget ist eine Kryptowährungsbörse, die eine Vielzahl von Handelsdienstleistungen anbietet, darunter Spot -Handel, Vertragshandel und Derivate. Der 2018 gegründete Austausch hat seinen Hauptsitz in Singapur und verpflichtet sich, den Benutzern eine sichere und zuverlässige Handelsplattform zu bieten. Bitget bietet eine Vielzahl von Handelspaaren, einschließlich BTC/USDT, ETH/USDT und XRP/USDT. Darüber hinaus hat der Austausch einen Ruf für Sicherheit und Liquidität und bietet eine Vielzahl von Funktionen wie Premium -Bestellarten, gehebelter Handel und Kundenunterstützung rund um die Uhr.

Gate.io ist ein beliebter Kryptowährungsaustausch, den Benutzer verwenden können, indem sie sein Installationspaket herunterladen und auf ihren Geräten installieren. Die Schritte zum Abholen des Installationspakets sind wie folgt: Besuchen Sie die offizielle Website von Gate.io, klicken Sie auf "Download", wählen Sie das entsprechende Betriebssystem (Windows, Mac oder Linux) und laden Sie das Installationspaket auf Ihren Computer herunter. Es wird empfohlen, die Antiviren -Software oder -Firewall während der Installation vorübergehend zu deaktivieren, um eine reibungslose Installation zu gewährleisten. Nach Abschluss muss der Benutzer ein Gate.io -Konto erstellen, um es zu verwenden.

Ouyi Okx, die weltweit führende digitale Asset Exchange, hat jetzt ein offizielles Installationspaket gestartet, um ein sicheres und bequemes Handelserlebnis zu bieten. Auf das OKX -Installationspaket von Ouyi muss nicht über einen Browser zugegriffen werden. Der Installationsprozess ist einfach und einfach zu verstehen.

So setzen Sie die Berechtigungen von Unixsocket automatisch nach dem Neustart des Systems. Jedes Mal, wenn das System neu startet, müssen wir den folgenden Befehl ausführen, um die Berechtigungen von Unixsocket: sudo ...

Ouyi, auch bekannt als OKX, ist eine weltweit führende Kryptowährungsplattform. Der Artikel enthält ein Download -Portal für das offizielle Installationspaket von Ouyi, mit dem Benutzer den Ouyi -Client auf verschiedenen Geräten installiert werden können. Dieses Installationspaket unterstützt Windows, Mac, Android und iOS -Systeme. Nach Abschluss der Installation können sich Benutzer registrieren oder sich beim Ouyi -Konto anmelden, Kryptowährungen mit dem Handel mit den von der Plattform erbrachten Diensten anmelden.
