unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: 49184@debbugs.gnu.org
Subject: [bug#49184] [PATCH]: Strings in (guix diagnostics) are not translated
Date: Wed, 23 Jun 2021 12:25:27 +0200	[thread overview]
Message-ID: <476731ec1dba1e224a5e872283d949b331d8e628.camel@telenet.be> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 524 bytes --]

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.

[-- Attachment #1.2: 0001-po-Add-guix-diagnostics-to-the-list-of-files-with-I1.patch --]
[-- Type: text/x-patch, Size: 703 bytes --]

From 2b3c51645e811ddd615fca5355618e4b0d82c4ec Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
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


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

             reply	other threads:[~2021-06-23 10:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-23 10:25 Maxime Devos [this message]
2021-06-23 14:22 ` [bug#49184] [PATCH]: Strings in (guix diagnostics) are not translated Leo Prikler
2021-06-23 21:04 ` bug#49184: " Ludovic Courtès
2021-06-25 11:24   ` [bug#49184] " Maxime Devos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=476731ec1dba1e224a5e872283d949b331d8e628.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=49184@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).