Open PhungXuanAnh opened 4 years ago
I also have this problem. Have you fixed it?
same
I have the same problem, who can help me ORZ!!
I just solved this problem, and it seems work well with me. I found my answer from this thread: https://apple.stackexchange.com/questions/270540/translate-shell-script-not-working-within-automator
I'm not familiar with programming, so I just wrote down the solution.
I used macports to install translate-shell and gawk, and the script file is at the path of /opt/local/bin. I used the code of which gawk to find them.
Then I changed the file of trans by vim as the thread told.
change:
gawk -f <(echo -E "$TRANS_PROGRAM") - "$@"
###### this is the last line of the trans script.
To:
/opt/local/bin/gawk -f <(echo -E "$TRANS_PROGRAM") - "$@"
###### "/opt/local/bin" is just the case for me.
Finally, I used this code in the settings of Goldendict
/opt/local/bin/trans %GDWORD%
P.S. There is no problem to add any options you want after trans.
On Mac OS, when using this program on terminal it work well, but when add this program to goldendict, it show above error
Anyone know about this issue?