mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +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
|
# 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…
Add table
Add a link
Reference in a new issue