diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-11-06 17:01:53 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-11-06 17:01:53 +0100 |
| commit | 778574d025cf7a23b386d8cb110e265dd334dfc2 (patch) | |
| tree | c6ec796d8afbb0a0f3eb1baafed6c01a0a8126de /unused/translate | |
| parent | 31a433b6a68cf924b70039abc6464453c323acf2 (diff) | |
| download | scripts-778574d025cf7a23b386d8cb110e265dd334dfc2.tar.gz scripts-778574d025cf7a23b386d8cb110e265dd334dfc2.zip | |
Moved unused stuff
Diffstat (limited to 'unused/translate')
| -rwxr-xr-x | unused/translate | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/unused/translate b/unused/translate new file mode 100755 index 0000000..9442844 --- /dev/null +++ b/unused/translate | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Opens google translate | ||
| 4 | |||
| 5 | translator="https://translate.google.com/" | ||
| 6 | from=$1 | ||
| 7 | to=$2 | ||
| 8 | |||
| 9 | shift 2 | ||
| 10 | text=$(echo "$@" | sed 's/ /\%20/g') | ||
| 11 | open-url "${translator}?sl=${from}&tl=${to}&text=${text}&op=translate" | ||
