GNU bug report logs - #65424
Guix doesn't use positional arguments in translated formatted messages

Previous Next

Package: guix;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Mon, 21 Aug 2023 12:10:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: Julien Lepiller <julien <at> lepiller.eu>, 65424 <at> 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
[Message part 1 (text/plain, inline)]
> 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
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 1 year and 299 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.