ref: 66f3f58a03578914ba97a7aa3862bacfa0bd00df
dir: /pub/files/9front/rc/trans/
#!/bin/rc if(! ~ $#* 2) exit 'usage' sourcelang=$1 targetlang=$2 text=`{cat} send=`{echo $"text | urlencode} hget 'https://translate.googleapis.com/translate_a/single?client=gtx&sl='^$sourcelang^'&tl='^$targetlang^'&dt=t&q='^$"send | sed 1q | sed 's/^\[\[\["//;s/\",\".*$//g'