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

Problem with ru:en translation #321

Closed kemazode closed 5 years ago

kemazode commented 5 years ago

When I try to translate russian into english, I get this:

$ trans ru:en "залупа конская"
gawk: /dev/fd/63:177: warning: regexp escape sequence `\"' is not a known regexp operator
залÑпа конÑкаÑ

REMARKS

Translations of залÑпа конÑкаÑ
[ Русский -> English ]

залÑпа конÑкаÑ
    REMARKS, Ð · Ð ° Ð »Ñ пР° ÐºÐ¾Ð½Ñ ÐºÐ ° Ñ

By the way, I don't have this problem with en:ru translation:

$ trans en:ru "your majesty"
gawk: /dev/fd/63:177: warning: regexp escape sequence `\"' is not a known regexp operator
your majesty

ваше Величество
(vashe Velichestvo)

Translations of your majesty
[ English -> Русский ]

your majesty
    ваше Величество
$ trans -V 
gawk: /dev/fd/63:177: warning: regexp escape sequence `\"' is not a known regexp operator
Translate Shell       0.9.6.9

platform              Linux
gawk (GNU Awk)        5.0.1
fribidi (GNU FriBidi) 1.0.5
audio player          mpg123
terminal pager        less
terminal type         xterm-256color
user locale           en_US.UTF-8 (English)
home language         en
source language       auto
target language       en
translation engine    google
proxy                 [NONE]
user-agent            Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Epiphany/3.18.2
theme                 default
init file             [NONE]

Report bugs to:       https://github.com/soimort/translate-shell/issues

Do not worry about gawk bug, I assume it has been fixed in 0.9.6.10. Archlinux community repo still contains 0.9.6.9 version.

soimort commented 5 years ago

See #310.

Please ask the Arch maintainer to update it to 0.9.6.11