unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49184] [PATCH]: Strings in (guix diagnostics) are not translated
@ 2021-06-23 10:25 Maxime Devos
  2021-06-23 14:22 ` Leo Prikler
  2021-06-23 21:04 ` bug#49184: " Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Maxime Devos @ 2021-06-23 10:25 UTC (permalink / raw)
  To: 49184


[-- 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 --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#49184] [PATCH]: Strings in (guix diagnostics) are not translated
  2021-06-23 10:25 [bug#49184] [PATCH]: Strings in (guix diagnostics) are not translated Maxime Devos
@ 2021-06-23 14:22 ` Leo Prikler
  2021-06-23 21:04 ` bug#49184: " Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Leo Prikler @ 2021-06-23 14:22 UTC (permalink / raw)
  To: 49184; +Cc: maximedevos

Before adding guix/diagnostics.scm to the POTFILES, you should probably
drop the call (G_ "").  Last time I checked, that did not actually
return the empty string, but some metadata.

(I actually sent a similar reply through the web interface, but it was
apparently swallowed somewhere)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#49184: [PATCH]: Strings in (guix diagnostics) are not translated
  2021-06-23 10:25 [bug#49184] [PATCH]: Strings in (guix diagnostics) are not translated Maxime Devos
  2021-06-23 14:22 ` Leo Prikler
@ 2021-06-23 21:04 ` Ludovic Courtès
  2021-06-25 11:24   ` [bug#49184] " Maxime Devos
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2021-06-23 21:04 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 49184-done

Hi,

Maxime Devos <maximedevos@telenet.be> skribis:

> 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.

I did that not long ago (after the release, unfortunately) in
fed83e52fed3808b437361d84c29c2870cab5458.

The relevant strings are commented out in .po files though, so we’ll
need a PO update to get them.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#49184] [PATCH]: Strings in (guix diagnostics) are not translated
  2021-06-23 21:04 ` bug#49184: " Ludovic Courtès
@ 2021-06-25 11:24   ` Maxime Devos
  0 siblings, 0 replies; 4+ messages in thread
From: Maxime Devos @ 2021-06-25 11:24 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 49184-done

[-- Attachment #1: Type: text/plain, Size: 523 bytes --]

Ludovic Courtès schreef op wo 23-06-2021 om 23:04 [+0200]:
> Hi,
> 
> Maxime Devos <maximedevos@telenet.be> skribis:
> 
> > 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.
> 
> I did that not long ago (after the release, unfortunately) in
> fed83e52fed3808b437361d84c29c2870cab5458.

Seems like my local git worktree is in need of a "git rebase".
Thanks!

Greetigs,
Maxime.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-25 11:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23 10:25 [bug#49184] [PATCH]: Strings in (guix diagnostics) are not translated Maxime Devos
2021-06-23 14:22 ` Leo Prikler
2021-06-23 21:04 ` bug#49184: " Ludovic Courtès
2021-06-25 11:24   ` [bug#49184] " Maxime Devos

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).