mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
Makefile.am: Download po files from weblate.
* Makefile.am (download-po): Download from weblate.
This commit is contained in:
parent
b50a14422f
commit
ddfcc2141e
1 changed files with 5 additions and 4 deletions
|
@ -988,7 +988,7 @@ download-po.$(1):
|
||||||
fi ; \
|
fi ; \
|
||||||
for lang in $$$$LINGUAS; do \
|
for lang in $$$$LINGUAS; do \
|
||||||
if wget -nv -O "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" \
|
if wget -nv -O "$(top_srcdir)/$(2)/$(3)$$$$lang.po.tmp" \
|
||||||
"https://translationproject.org/latest/$(1)/$$$$lang.po" ; \
|
"https://translate.fedoraproject.org/api/translations/guix/$(1)/$$$$lang/file/" ; \
|
||||||
then \
|
then \
|
||||||
mv "$(top_srcdir)/$(2)/$(3)$$$$lang.po"{.tmp,} ; \
|
mv "$(top_srcdir)/$(2)/$(3)$$$$lang.po"{.tmp,} ; \
|
||||||
else \
|
else \
|
||||||
|
@ -1000,11 +1000,12 @@ download-po.$(1):
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
$(eval $(call make-download-po-rule,documentation-cookbook,po/doc,guix-cookbook.))
|
||||||
|
$(eval $(call make-download-po-rule,documentation-manual,po/doc,guix-manual.))
|
||||||
$(eval $(call make-download-po-rule,guix,po/guix))
|
$(eval $(call make-download-po-rule,guix,po/guix))
|
||||||
$(eval $(call make-download-po-rule,guix-packages,po/packages))
|
$(eval $(call make-download-po-rule,packages,po/packages))
|
||||||
$(eval $(call make-download-po-rule,guix-manual,po/doc,guix-manual.))
|
|
||||||
|
|
||||||
download-po: $(foreach domain,guix guix-packages guix-manual,download-po.$(domain))
|
download-po: $(foreach domain,guix packages documentation-manual documentation-cookbook,download-po.$(domain))
|
||||||
.PHONY: download-po
|
.PHONY: download-po
|
||||||
|
|
||||||
## -------------- ##
|
## -------------- ##
|
||||||
|
|
Loading…
Reference in a new issue