switch gettext translation files to po-unwrapped format

Weblate, gettext, and Python-Babel all seem to have slightly different
wrapping rules.  This leads to lots of annoying diffs and git merge
conflicts.  So just don't wrap at all! :-D
This commit is contained in:
Hans-Christoph Steiner 2018-02-13 09:17:28 +01:00
parent d7af22b48e
commit 483b0289e9
19 changed files with 6042 additions and 1853 deletions

View file

@ -26,7 +26,7 @@ clean:
$(TEMPLATE): $(FILES)
xgettext --join-existing --from-code=UTF-8 \
--language=Python --keyword=_ \
--sort-output --add-location=file --output=$(TEMPLATE) \
--no-wrap --sort-output --add-location=file --output=$(TEMPLATE) \
--package-name="fdroidserver" --package-version=$(VERSION) \
--foreign-user \
--msgid-bugs-address=https://gitlab.com/fdroid/fdroidserver/issues \
@ -34,7 +34,7 @@ $(TEMPLATE): $(FILES)
sed -i 's,CHARSET,UTF-8,' $(TEMPLATE)
%.po: $(TEMPLATE)
msgmerge --sort-output --add-location=file --update $@ $(TEMPLATE)
msgmerge --no-wrap --sort-output --add-location=file --update $@ $(TEMPLATE)
%/LC_MESSAGES/fdroidserver.mo: %/LC_MESSAGES/fdroidserver.po
msgfmt --check -o $@ $(@:mo=po)