unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Sebastian Rasmussen <sebras@gmail.com>
To: guix-devel@gnu.org
Subject: Re: Format specification issue in the translations...
Date: Tue, 23 May 2023 13:01:23 +0200	[thread overview]
Message-ID: <CAAgDR1OxCB15pLFYxQP9WPu5c+MO1s3_sb39Rk49ZTmt-yAPWg@mail.gmail.com> (raw)
In-Reply-To: <87ilcj1g4x.fsf@pelzflorian.de>

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

Hi Florian!

> in German I have translated in this way and it got
> accepted.

Yes, my fellow Swedish translator pointed that out to me! :)
I will contribute a similar translation in Swedish, but I also
want the bug in the original code fixed.

I have attached my attempt at a patch to this mail.
Maybe someone can review it and help push it to git HEAD?

> Although, I have not actually tested if it displays
> correctly.  I assume Guile formatting is tolerant.

I have no means to easily test this either.

 / Sebastian

On Tue, May 23, 2023 at 12:44 PM pelzflorian (Florian Pelz)
<pelzflorian@pelzflorian.de> wrote:
>
>
> #: modules/shepherd/service.scm:1087
> #, scheme-format
> msgid "Cannot unregister service ~a, which is still running"
> msgid_plural "Cannot unregister services~{ ~a,~} which are still running"
> msgstr[0] "Der Dienst~{ ~a,~} bleibt registriert, weil er noch läuft"
> msgstr[1] "Die Dienste~{ ~a,~} bleiben registriert, weil sie noch laufen"
>
> Regards,
> Florian

[-- Attachment #2: 0001-service-Fix-localization-string-formatting.patch --]
[-- Type: text/x-patch, Size: 1227 bytes --]

From a7964514651c4f7852d930e6c0e38d06583fcd15 Mon Sep 17 00:00:00 2001
From: Sebastian Rasmussen <sebras@gmail.com>
Date: Tue, 23 May 2023 12:52:36 +0200
Subject: [PATCH] service: Fix localization string formatting.

 * modules/shepherd/service.scm: Change the singular/plural formatting
   to be the same in order to avoid translation tool warnings.
---
 modules/shepherd/service.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm
index e3ca910..c501a68 100644
--- a/modules/shepherd/service.scm
+++ b/modules/shepherd/service.scm
@@ -1104,8 +1104,8 @@ requests arriving on @var{channel}."
           (loop (unregister services)))
          (lst                                     ;
           (local-output
-           (l10n "Cannot unregister service ~a, which is still running"
-                 "Cannot unregister services~{ ~a,~} which are still running"
+           (l10n "Cannot unregister service ~{ ~a,~} which is still running"
+                 "Cannot unregister services ~{ ~a,~} which are still running"
                  (length lst))
            (map service-canonical-name lst))
           (loop registered))))
-- 
2.39.2


  reply	other threads:[~2023-05-23 18:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-22 23:57 Format specification issue in the translations Sebastian Rasmussen
2023-05-23 10:29 ` Julien Lepiller
2023-05-23 10:44 ` pelzflorian (Florian Pelz)
2023-05-23 11:01   ` Sebastian Rasmussen [this message]
2023-05-24  7:03     ` [shepherd bug] " pelzflorian (Florian Pelz)
2023-05-26 15:56 ` Ludovic Courtès

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=CAAgDR1OxCB15pLFYxQP9WPu5c+MO1s3_sb39Rk49ZTmt-yAPWg@mail.gmail.com \
    --to=sebras@gmail.com \
    --cc=guix-devel@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).