unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Julien Lepiller <julien@lepiller.eu>, 65424@debbugs.gnu.org
Subject: bug#65424: Guix doesn't use positional arguments in translated formatted messages
Date: Mon, 21 Aug 2023 18:12:08 +0200	[thread overview]
Message-ID: <67ef34fa-bb2a-319f-59b8-8e98a5d1b390@telenet.be> (raw)
In-Reply-To: <407968ba-c633-7367-3fd3-52325dca88b4@telenet.be>


[-- Attachment #1.1.1: Type: text/plain, Size: 534 bytes --]


> Proposed new documentation:
> 
> * 22.5.5 Translatable messages
> 
> When constructing translatable messages with 'format' (<reference to 
> guile manual>), it is important to use positional arguments.  For 
> example, instead of writing
> 
>    (format #t (G_ "The package '~a' is newer than '~a'.~%")
>               '("foo" "bar")),
> 
> you should write
> 
>    (format #t (G_ "The package '~1@*~a' is newer than '~2@*~a'.~%")
>               '("foo" "bar"))

Off-by-one error here

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

      reply	other threads:[~2023-08-21 16:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-21 12:09 bug#65424: Guix doesn't use positional arguments in translated formatted messages Maxime Devos
2023-08-21 14:20 ` Julien Lepiller
2023-08-21 14:45   ` Maxime Devos
2023-08-21 16:12     ` Maxime Devos [this message]

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=67ef34fa-bb2a-319f-59b8-8e98a5d1b390@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=65424@debbugs.gnu.org \
    --cc=julien@lepiller.eu \
    /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).