make update to update all translation files from source code

This commit is contained in:
Hans-Christoph Steiner 2017-10-17 17:41:20 +02:00
parent 85050ecb81
commit e5acdee21e
16 changed files with 19723 additions and 3930 deletions

View file

@ -6,7 +6,7 @@ FILES = ../fdroid $(wildcard ../fdroidserver/*.py) \
# these are the supported languages
ALL_LINGUAS = de es pt_BR pt_PT tr zh_Hans zh_Hant
POFILES = $(ALL_LINGUAS:=/LC_MESSAGES/fdroidserver.po)
POFILES = $(wildcard */LC_MESSAGES/fdroidserver.po)
MOFILES = $(ALL_LINGUAS:=/LC_MESSAGES/fdroidserver.mo)
TEMPLATE = fdroidserver.pot
@ -20,8 +20,8 @@ clean-local:
-rm -f -- $(MOFILES)
-rm -f -- $(POFILES:=~)
# refresh the template from the source code
template: $(TEMPLATE)
# refresh everything from the source code
update: $(POFILES)
$(TEMPLATE): $(FILES)
xgettext --join-existing --from-code=UTF-8 \
@ -33,6 +33,9 @@ $(TEMPLATE): $(FILES)
$(FILES)
sed -i 's,CHARSET,UTF-8,' $(TEMPLATE)
%.po: $(TEMPLATE)
msgmerge --sort-output --add-location=file --update $@ $(TEMPLATE)
%/LC_MESSAGES/fdroidserver.mo: %/LC_MESSAGES/fdroidserver.po
msgfmt --check -o $@ $(@:mo=po)