Timedate Daemon

Timedate daemon to control org.freedesktop.timedate1 D-Bus interface

18 Commits   0 Branches   3 Tags
author: kx <kx@radix.pro> 2023-12-21 21:15:15 +0300 committer: kx <kx@radix.pro> 2023-12-21 21:15:15 +0300 commit: 938dce1e03ee7b5f16c6955dd055916dd2d515d0 parent: fcf296f311f6cc515afb16b8c08e4ddd3da807cb
Commit Summary:
Version 1.0.0
Diffstat:
1 file changed, 21 insertions, 0 deletions
diff --git a/l10n/_generate-pot.sh b/l10n/_generate-pot.sh
new file mode 100644
index 0000000..f667c37
--- /dev/null
+++ b/l10n/_generate-pot.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+#
+# This script generates ../po/timedated.pot file
+# and clean ../po/*.po files. After running this
+# script we have to copy translated strings from
+# ../po/*.po.back files.
+#
+
+cd ..
+xgettext --keyword=N_ --keyword=_ --keyword=Q_:1,2  \
+         --language=C --add-comments --sort-output  \
+         --msgid-bugs-address="Andrey V.Kosteltsev <support@radix.pro>" \
+         --package-name=timedated \
+         --package-version=1.0.0 \
+         --copyright-holder="Andrey V.Kosteltsev <kx@radix.pro>" \
+         --default-domain=timedated --output=po/timedated.pot \
+         `find -type f -name "*.c"`
+
+( cd po ;
+  mv ru_RU.utf8.po ru_RU.utf8.po.back
+  msginit --no-translator --no-wrap --locale=ru_RU.utf8 --input=timedated.pot --output=ru_RU.utf8.po
+)
+
+cd l10n