guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: Makefile.am: Download po files from weblate.


From: guix-commits
Subject: 01/02: Makefile.am: Download po files from weblate.
Date: Wed, 20 Jan 2021 10:17:19 -0500 (EST)

roptat pushed a commit to branch master
in repository guix.

commit ddfcc2141ed62307b0d8aeed7456254bb48d4dd9
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Tue Jan 12 15:35:29 2021 +0100

    Makefile.am: Download po files from weblate.
    
    * Makefile.am (download-po): Download from weblate.
---
 Makefile.am | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 5dcd3c6..8a8133d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -988,7 +988,7 @@ download-po.$(1):
        fi ;                                                                    
\
        for lang in $$$$LINGUAS; do                                             
\
          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                                                                  
\
            mv "$(top_srcdir)/$(2)/$(3)$$$$lang.po"{.tmp,} ;                    
\
          else                                                                  
\
@@ -1000,11 +1000,12 @@ download-po.$(1):
 
 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-packages,po/packages))
-$(eval $(call make-download-po-rule,guix-manual,po/doc,guix-manual.))
+$(eval $(call make-download-po-rule,packages,po/packages))
 
-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
 
 ## -------------- ##



reply via email to

[Prev in Thread] Current Thread [Next in Thread]