From fc396bbbdb7caa3a9b7dc174a6cc44832493cfbe Mon Sep 17 00:00:00 2001 From: Valters Jansons Date: Thu, 15 Apr 2021 14:42:13 +0300 Subject: [PATCH] po: Update translations POTFILES.in should not contain src/python/__init__.py file as it is not present in the committed tree. It has its respective .in file which is present instead. This commit further ensures po/POTFILES.in generator avoids such files that Git ignores (using git-check-ignore during find). Signed-off-by: Valters Jansons Signed-off-by: Michael Tremer --- Makefile.am | 5 +++-- debian/control | 1 + po/POTFILES.in | 3 +-- po/de.po | 5 ++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile.am b/Makefile.am index e8ee791..dbdfd8e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,8 +79,9 @@ update-po: po/POTFILES.in $(MAKE) -C po update-po po/POTFILES.in: Makefile - find $(abs_srcdir)/src | \ - grep -E "\.(in|py)$$" | sed -e "s@$(abs_srcdir)/@@g" | sort > $@ + find $(abs_srcdir)/src -type f \( -name '*.in' -o -name '*.py' \) \ + \! -exec git check-ignore -q {} \; -print | \ + sed -e "s@$(abs_srcdir)/@@g" | LC_ALL=C sort > $@ EXTRA_DIST += \ examples/private-key.pem \ diff --git a/debian/control b/debian/control index dc40927..118a111 100644 --- a/debian/control +++ b/debian/control @@ -16,6 +16,7 @@ Build-Depends: systemd, xsltproc , docbook-xsl , + git, Rules-Requires-Root: no Homepage: https://location.ipfire.org/ Vcs-Git: https://git.ipfire.org/pub/git/location/libloc.git diff --git a/po/POTFILES.in b/po/POTFILES.in index 9088986..5d2cc46 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,11 +1,10 @@ src/libloc.pc.in +src/python/__init__.py.in src/python/database.py src/python/downloader.py src/python/export.py src/python/i18n.py src/python/importer.py -src/python/__init__.py -src/python/__init__.py.in src/python/location-importer.in src/python/location.in src/python/logger.py diff --git a/po/de.po b/po/de.po index c35f348..3b073d6 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: libloc 0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-04 15:44+0000\n" +"POT-Creation-Date: 2021-04-15 11:29+0000\n" "PO-Revision-Date: 2018-02-01 14:05+0000\n" "Last-Translator: Michael Tremer \n" "Language-Team: German\n" @@ -217,8 +217,7 @@ msgstr "" msgid "AS%(asn)s belongs to %(name)s" msgstr "" -#, python-format -msgid "The datase has recently be updated recently (%s)" +msgid "The database has been updated recently" msgstr "" msgid "You must at least pass one flag" -- 2.39.5