aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny A. Solbu <johnny@solbu.net>2023-01-14 17:54:43 +0100
committerJohnny A. Solbu <johnny@solbu.net>2023-01-14 17:54:43 +0100
commit8882e9a2103776ea0e706418911d14e07ea7bc60 (patch)
tree4eb8d5832f9d87a90c969b6d17f3814033b68d83
parent7babeead0417e8266411fcb01724c47dd01747ac (diff)
downloadremove-old-kernels-8882e9a2103776ea0e706418911d14e07ea7bc60.tar
remove-old-kernels-8882e9a2103776ea0e706418911d14e07ea7bc60.tar.gz
remove-old-kernels-8882e9a2103776ea0e706418911d14e07ea7bc60.tar.bz2
remove-old-kernels-8882e9a2103776ea0e706418911d14e07ea7bc60.tar.xz
remove-old-kernels-8882e9a2103776ea0e706418911d14e07ea7bc60.zip
Automate updating the *.po files
-rw-r--r--TRANSLATIONS.md6
-rw-r--r--po/Makefile10
2 files changed, 16 insertions, 0 deletions
diff --git a/TRANSLATIONS.md b/TRANSLATIONS.md
new file mode 100644
index 0000000..2e5e83b
--- /dev/null
+++ b/TRANSLATIONS.md
@@ -0,0 +1,6 @@
+# How to translate
+
+In order to translate this program, you need the gettext package installed.
+Go into the po folder and run «msginit».
+This should produce a «LL.po» file, where «LL» is the configured language your system is running.
+Use a po file editor, such as Poedit or Lokalize, and translate the strings.
diff --git a/po/Makefile b/po/Makefile
new file mode 100644
index 0000000..9e74803
--- /dev/null
+++ b/po/Makefile
@@ -0,0 +1,10 @@
+# Update translations when the english master changes
+
+NAME=remove-old-kernels
+
+all:
+
+update-po:
+ for i in *.po; do \
+ msgmerge -v --no-wrap --previous --backup=none --update $$i $(NAME).pot; \
+ done