summarylogtreecommitdiffstats
path: root/translateselection
diff options
context:
space:
mode:
authorGrigorii Horos2015-12-20 22:55:03 +0200
committerGrigorii Horos2015-12-20 22:55:03 +0200
commit60e2ee3bd524ef45b191b55fa4e6ad13c377fda8 (patch)
tree2855c99c01f538ef51cc647ecec71871872a2915 /translateselection
parentaab3ca34ddceb0c19bf229ec6e2279e1fff90778 (diff)
downloadaur-kde-select-and-translate.tar.gz
Add depends
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