1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh # Opens google translate translator="https://translate.google.com/" from=$1 to=$2 shift 2 text=$(echo $@ | sed 's/ /\%20/g') open-url "${translator}?sl=${from}&tl=${to}&text=${text}&op=translate"
Generated with cgit - Back to sebastiano.tronto.net