From 8882e9a2103776ea0e706418911d14e07ea7bc60 Mon Sep 17 00:00:00 2001 From: "Johnny A. Solbu" Date: Sat, 14 Jan 2023 17:54:43 +0100 Subject: Automate updating the *.po files --- TRANSLATIONS.md | 6 ++++++ po/Makefile | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 TRANSLATIONS.md create mode 100644 po/Makefile 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 -- cgit v1.2.1