mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
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:
parent
d7af22b48e
commit
483b0289e9
19 changed files with 6042 additions and 1853 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue