aboutsummaryrefslogtreecommitdiffstats
path: root/mk-mo
diff options
context:
space:
mode:
authorBarry Jackson <barjac@users.noreply.github.com>2023-01-05 15:22:25 +0000
committerGitHub <noreply@github.com>2023-01-05 15:22:25 +0000
commit8d6bb61cf2c23bba979716d9cb0ee26789f594bd (patch)
treee228c4131be5bc255a7b2e6a679fdd7c505b2241 /mk-mo
parent7651d383f33ee245a082e657a9055f318f5d6886 (diff)
downloadremove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.tar
remove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.tar.gz
remove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.tar.bz2
remove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.tar.xz
remove-old-kernels-8d6bb61cf2c23bba979716d9cb0ee26789f594bd.zip
Add files via upload
initial import
Diffstat (limited to 'mk-mo')
-rw-r--r--mk-mo23
1 files changed, 23 insertions, 0 deletions
diff --git a/mk-mo b/mk-mo
new file mode 100644
index 0000000..70975ee
--- /dev/null
+++ b/mk-mo
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Recreates ALL .mo binaries from .po text files in po directory
+
+[[ -d locale ]] && rm -r locale
+
+mkdir locale
+
+cd po
+
+for po in *.po; do
+
+echo $po
+
+molang=$(echo $po|rev|cut -d. -f2-|rev)
+
+mkdir -p ../locale/$molang/LC_MESSAGES
+
+msgfmt -vco ../locale/$molang/LC_MESSAGES/remove-old-kernels.mo $po
+
+done
+
+cd ..