Subject: bug#45815: closed (Re: [bug#45815] [PATCH] Switching to Weblate)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 20 Jan 2021 19:34:02 +0000

Your bug report

#45815: [PATCH] Switching to Weblate

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
45815: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45815
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#45815] [PATCH] Switching to Weblate
From: Julien Lepiller <[email-masked]>
To: zimoun <[email-masked]>, "pelzflorian (Florian Pelz)" <[email-masked]>
Cc: [email-masked]
Date: Wed, 20 Jan 2021 14:33:21 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Ah forgot to close when I pushed the patches. Doing so now :)

From now on, we officially use weblate for our translations.

Le 20 janvier 2021 11:09:07 GMT-05:00, zimoun <[email-masked]> a écrit :
>Hi,
>
>Thank you for the Weblate switch.
>And thank you for the blog post.  Really cool to read. :-)
>
>Cheers,
>simon

Subject: [PATCH] Switching to Weblate
From: Julien Lepiller <[email-masked]>
To: [email-masked]
Date: Tue, 12 Jan 2021 15:52:49 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Guix!

It's finally time to switch to Weblate! We are now hosted at
https://translate.fedoraproject.org/projects/guix/. Here are two
patches to apply the changes. The first patch changes the Makefile rule
"download-po" to download from Weblate instead of the TP. The second
patch replaces every mention of the translation project in our
documentation with a new link to Weblate.

We have the website translation on the Weblate too, so the draft blog
post at https://issues.guix.gnu.org/26302#88 could be updated with that
information and published.

When we decide to apply these patches and switch to Weblate, I will
also contact the TP admins to ask if they can close/disable/remove the
guix domains, so we don't have conflicts between the two platforms.

Am I missing something?

Thanks!
>From 58dfcf6760d1957b95dfc55ccac4e73396755edd Mon Sep 17 00:00:00 2001
From: Julien Lepiller <[email-masked]>
Date: Tue, 12 Jan 2021 15:35:29 +0100
Subject: [PATCH 1/2] 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 99bdcfa346..384875d732 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -987,7 +987,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									\
@@ -999,11 +999,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
 
 ## -------------- ##
-- 
2.29.2

From ec987b970832ed9569b3dae5463ddbbd2beea292 Mon Sep 17 00:00:00 2001
From: Julien Lepiller <[email-masked]>
Date: Tue, 12 Jan 2021 15:46:03 +0100
Subject: [PATCH 2/2] doc: Replace TP with Weblate mentions.

* doc/contributing.texi: Replace link to TP with a link to Weblate.
* doc/guix.texi: Replace link to TP with a link to Weblate.
* doc/guix-cookbook.texi: Replace link to TP with a link to Weblate.
---
 doc/contributing.texi  | 4 ++--
 doc/guix-cookbook.texi | 5 +++--
 doc/guix.texi          | 4 ++--
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/doc/contributing.texi b/doc/contributing.texi
index d0ab08336a..d1619d3a65 100644
--- a/doc/contributing.texi
+++ b/doc/contributing.texi
@@ -593,8 +593,8 @@ such as @command{guix package --show} take care of rendering it
 appropriately.
 
 Synopses and descriptions are translated by volunteers
-@uref{https://translationproject.org/domain/guix-packages.html, at the
-Translation Project} so that as many users as possible can read them in
+@uref{https://translate.fedoraproject.org/projects/guix/packages, at
+Weblate} so that as many users as possible can read them in
 their native language.  User interfaces search them and display them in
 the language specified by the current locale.
 
diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi
index 54ab99558e..9c91ac5f9b 100644
--- a/doc/guix-cookbook.texi
+++ b/doc/guix-cookbook.texi
@@ -57,8 +57,9 @@ its API, and related concepts.
 @c how to join your own translation team and how to report issues with the
 @c translation.
 If you would like to translate this document in your native language, consider
-joining the @uref{https://translationproject.org/domain/guix-cookbook.html,
-Translation Project}.
+joining the
+@uref{https://translate.fedoraproject.org/projects/guix/documentation-cookbook,
+Weblate}.
 
 @menu
 * Scheme tutorials::            Meet your new favorite language!
diff --git a/doc/guix.texi b/doc/guix.texi
index 93c980c196..70c144a285 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -143,8 +143,8 @@ Guix}), German (@pxref{Top,,, guix.de, Referenzhandbuch zu GNU Guix}),
 Spanish (@pxref{Top,,, guix.es, Manual de referencia de GNU Guix}), and
 Russian (@pxref{Top,,, guix.ru, Руководство GNU Guix}).  If you
 would like to translate it in your native language, consider joining the
-@uref{https://translationproject.org/domain/guix-manual.html, Translation
-Project}.
+@uref{https://translate.fedoraproject.org/projects/guix/documentation-manual,
+Weblate}.
 
 @menu
 * Introduction::                What is Guix about?
-- 
2.29.2