Permalink
Browse files

* translate.google.com: update

  • Loading branch information...
l29ah committed Jul 3, 2017
1 parent 0c7ef13 commit e1da9cfe4c45e6c1f6f078970e7c485d85485ab7
Showing with 1 addition and 1 deletion.
  1. +1 −1 translate.google.com/gtr
@@ -4,6 +4,6 @@ to="$2"
shift 2
text="$*"
wget -o /dev/null -O /dev/stdout "http://translate.google.com/translate_t?hl=en&oe=UTF-8&ie=UTF-8&sl=$from&tl=$to&q=`echo -n $text | urlencode`" --user-agent=Firefox|
sed -n 's/.*this.style.backgroundColor='\''#fff'\''">\(.*\)<\/span><\/span><\/div>.*/\1/p' |
sed -n "s/.*TRANSLATED_TEXT='\\([^']*\\)'.*/\\1/p" |
htmldecode
echo

0 comments on commit e1da9cf

Please sign in to comment.