aboutsummaryrefslogtreecommitdiff
path: root/unused/translate
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-11-06 17:01:53 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2024-11-06 17:01:53 +0100
commit778574d025cf7a23b386d8cb110e265dd334dfc2 (patch)
treec6ec796d8afbb0a0f3eb1baafed6c01a0a8126de /unused/translate
parent31a433b6a68cf924b70039abc6464453c323acf2 (diff)
downloadscripts-778574d025cf7a23b386d8cb110e265dd334dfc2.tar.gz
scripts-778574d025cf7a23b386d8cb110e265dd334dfc2.zip
Moved unused stuff
Diffstat (limited to 'unused/translate')
-rwxr-xr-xunused/translate11
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
5translator="https://translate.google.com/"
6from=$1
7to=$2
8
9shift 2
10text=$(echo "$@" | sed 's/ /\%20/g')
11open-url "${translator}?sl=${from}&tl=${to}&text=${text}&op=translate"

Generated with cgit - Back to sebastiano.tronto.net