Subject: [PATCH]: Strings in (guix diagnostics) are not translated
From: Maxime Devos <[email-masked]>
To: [email-masked]
Date: Wed, 23 Jun 2021 12:25:27 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Guix,

(guix diagnostics) has some translatable strings.
See e.g. the following code:

(define-diagnostic warning (G_ "warning: ") %warning-color) ;emit a warning
(define-diagnostic info (G_ "") %info-color)
(define-diagnostic report-error (G_ "error: ") %error-color)

These are currently not translated and don't appear on translate.fedoraproject.org.
The issue appears to be that guix/diagnostics.scm does not appear in
guix/POTFILES.in.

A patch that should fix this is attached.

Greetings,
Maxime.
From 2b3c51645e811ddd615fca5355618e4b0d82c4ec Mon Sep 17 00:00:00 2001
From: Maxime Devos <[email-masked]>
Date: Fri, 18 Jun 2021 13:47:04 +0200
Subject: [PATCH] po: Add (guix diagnostics) to the list of files with I18N
 strings.

* po/guix/POTFILES.in: Add guix/diagnostics.scm.
---
 po/guix/POTFILES.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/po/guix/POTFILES.in b/po/guix/POTFILES.in
index cbbfe1e76b..34c77c74cd 100644
--- a/po/guix/POTFILES.in
+++ b/po/guix/POTFILES.in
@@ -93,6 +93,7 @@ guix/profiles.scm
 guix/git.scm
 guix/deprecation.scm
 guix/derivations.scm
+guix/diagnostics.scm
 guix/scripts/archive.scm
 guix/scripts/build.scm
 guix/scripts/environment.scm
-- 
2.32.0