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

Bing engine not working #406

Open OrionRandD opened 3 years ago

OrionRandD commented 3 years ago

I get these engines errors

Engines errors

-> user@thunder 09:56:27 ~ $ trans -e yandex en:pt love -b [ERROR] Oops! Something went wrong and I can't translate it for you :( -> user@thunder 09:57:02 ~ $ trans -e bing en:pt love -b [ERROR] gives no output :( -> user@thunder 09:57:36 ~ $ trans -e spell en:pt love -b [ERROR] gives no translation - yields "love" itself :( -> user@thunder 09:57:45 ~ $ trans -e hunspell en:pt love -b [ERROR] No dictionary for language: en -> user@thunder 09:57:57 ~ $ trans -e apertium en:pt love -b -> user@thunder 09:58:08 ~ $ trans -e yandex en:pt love -b [ERROR] Oops! Something went wrong and I can't translate it for you :(

Is it only me?

soimort commented 3 years ago

Engine support for Yandex and Bing is known to be broken at the moment.

spell and aspell are for spell checking, not for translation. If it yields the word itself with no errors then it is correct. Try misspelling it as "lov" and see if it works.

As for hunspell, you need to install the supporting dictionary package. This should be done by your system package manager. (currently specifying the language code en explicitly does not work though, for some reason)

chrisisbd commented 3 years ago

I seem to be having this problem as well. I get no translated output whatever I do.

E.g.

chris$ trans -e google fr:en "Bonjour monsieur"

chris$

Silvio-C-Amaral commented 3 years ago

I installed the package hunspell and I used:

trans aborted -e hunspell :br aborted[abortes|aborte|abortei]