Closed gusbemacbe closed 2 years ago
I solved with the #463, but I will comment on #432.
└─$ trans --version
Translate Shell 0.9.6.12
platform Linux
terminal type linux
bi-di emulator [N/A]
gawk (GNU Awk) 5.1.0
fribidi (GNU FriBidi) 1.0.8
audio player [NOT INSTALLED]
terminal pager less
web browser xdg-open
user locale pt_PT.UTF-8 (Portuguese)
home language pt
source language auto
target language pt
translation engine google
proxy [NONE]
user-agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
ip version [DEFAULT]
theme default
init file [NONE]
┌──(pi㉿raspberrypi)-[~]
└─$ trans -b :pt-BR "File and folder"
Arquivo e pasta
From what I know, Google Translate ONLY has one Portuguese and that only outputs Portuguese spoken in Brazil. I never seen it outputing Portuguese spoken in Portugal. I already nagging the Google Translate team if I need to wait 200 years for them to add support to Portuguese-Portugal and correct the language list. Bing does have both languages separated but the Portuguese-Portugal has leftovers from Portuguese-Brazil. No idea why they flavour a derived language instead of the NATIVE language.
This obviously will never work because Google Translate does not have support for pt-PT:
┌──(pi㉿raspberrypi)-[~]
└─$ trans -b :pt-PT "File and folder"
Arquivo e pasta
------> If it worked, it would output "Ficheiro e pasta".
This also does not work:
┌──(pi㉿raspberrypi)-[~]
└─$ trans -engine bing en:pt-PT "File and folder"
File and folder
[ English -> Português ]
┌──(pi㉿raspberrypi)-[~]
└─$ trans -engine bing en:pt-BR "File and folder"
File and folder
[ English -> Português ]
Hello!
If you add only one language, it will work:
But if you use
pt-PT
, it will fail with agawk
bug:With a set translation engine, any language will fail with
gawk
bug:References
432
453
Details