mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
make update
to update all translation files from source code
This commit is contained in:
parent
85050ecb81
commit
e5acdee21e
@ -6,7 +6,7 @@ FILES = ../fdroid $(wildcard ../fdroidserver/*.py) \
|
|||||||
|
|
||||||
# these are the supported languages
|
# these are the supported languages
|
||||||
ALL_LINGUAS = de es pt_BR pt_PT tr zh_Hans zh_Hant
|
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)
|
MOFILES = $(ALL_LINGUAS:=/LC_MESSAGES/fdroidserver.mo)
|
||||||
|
|
||||||
TEMPLATE = fdroidserver.pot
|
TEMPLATE = fdroidserver.pot
|
||||||
@ -20,8 +20,8 @@ clean-local:
|
|||||||
-rm -f -- $(MOFILES)
|
-rm -f -- $(MOFILES)
|
||||||
-rm -f -- $(POFILES:=~)
|
-rm -f -- $(POFILES:=~)
|
||||||
|
|
||||||
# refresh the template from the source code
|
# refresh everything from the source code
|
||||||
template: $(TEMPLATE)
|
update: $(POFILES)
|
||||||
|
|
||||||
$(TEMPLATE): $(FILES)
|
$(TEMPLATE): $(FILES)
|
||||||
xgettext --join-existing --from-code=UTF-8 \
|
xgettext --join-existing --from-code=UTF-8 \
|
||||||
@ -33,6 +33,9 @@ $(TEMPLATE): $(FILES)
|
|||||||
$(FILES)
|
$(FILES)
|
||||||
sed -i 's,CHARSET,UTF-8,' $(TEMPLATE)
|
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
|
%/LC_MESSAGES/fdroidserver.mo: %/LC_MESSAGES/fdroidserver.po
|
||||||
msgfmt --check -o $@ $(@:mo=po)
|
msgfmt --check -o $@ $(@:mo=po)
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user