aboutsummaryrefslogtreecommitdiff
path: root/txt/translate.txt
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
committerPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
commit420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch)
tree3009f0564d75e3f7d1ca38507e7ebb92deaded07 /txt/translate.txt
update
Diffstat (limited to 'txt/translate.txt')
-rwxr-xr-xtxt/translate.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/txt/translate.txt b/txt/translate.txt
new file mode 100755
index 0000000..b19adcb
--- /dev/null
+++ b/txt/translate.txt
@@ -0,0 +1,14 @@
+#!/bin/bash
+# last-modified: 2021-03-20 20:38:27+01:00
+# requires https://github.com/soimort/translate-shell
+# Arch Linux: yay -S translate-shell
+
+clear
+
+INPUT="$1"
+cat $INPUT | sed -e '1,/^\r\{0,1\}$/d' | sed '/^>/d' > ~/Apps/Neomutt/tmp/tr.txt
+
+trans :en -no-browser file:///home/philip/Apps/Neomutt/tmp/tr.txt
+
+exit 0
+