mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
make update to update all translation files from source code
This commit is contained in:
parent
85050ecb81
commit
e5acdee21e
16 changed files with 19723 additions and 3930 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue