summarylogtreecommitdiffstats
path: root/translateselection
diff options
context:
space:
mode:
Diffstat (limited to 'translateselection')
-rwxr-xr-xtranslateselection2
1 files changed, 1 insertions, 1 deletions
diff --git a/translateselection b/translateselection
index ccc03d576193..36b5f1321056 100755
--- a/translateselection
+++ b/translateselection
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-notify-send -i "applications-education-language" -u critical "$(xsel -o)" "$(curl -s -X POST -A "Mozilla/5.0" -H "Content-Type: application/x-www-form-urlencoded" -d "client=t" -d "sl=auto" -d "tl=$LANGUAGE" -d "text=$(xsel -o | sed "s/[\"'<>]//g")" 'http://www.google.com/translate_a/t' | sed 's/\[\[\[\"//' | cut -d \" -f 1)" \ No newline at end of file
+notify-send -i "applications-education-language" -u critical "$(xsel -o)" "$(trans -b "$(xsel -o | sed "s/[\"'<>]//g")")" \ No newline at end of file