From unknown Wed Jun 18 23:18:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40393 <40393@debbugs.gnu.org> To: bug#40393 <40393@debbugs.gnu.org> Subject: Status: Use ngettext to internationalize plural in guix/lint.scm Reply-To: bug#40393 <40393@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:18:12 +0000 retitle 40393 Use ngettext to internationalize plural in guix/lint.scm reassign 40393 guix submitter 40393 Arun Isaac severity 40393 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 02 17:38:49 2020 Received: (at submit) by debbugs.gnu.org; 2 Apr 2020 21:38:49 +0000 Received: from localhost ([127.0.0.1]:40864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jK7Y1-0007A5-6I for submit@debbugs.gnu.org; Thu, 02 Apr 2020 17:38:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:34304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jK7Xz-00079t-3U for submit@debbugs.gnu.org; Thu, 02 Apr 2020 17:38:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57455) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK7Xy-0007YU-1B for bug-guix@gnu.org; Thu, 02 Apr 2020 17:38:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jK7Xv-0007do-Q0 for bug-guix@gnu.org; Thu, 02 Apr 2020 17:38:45 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:51826) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jK7Xt-0007Oj-Dc for bug-guix@gnu.org; Thu, 02 Apr 2020 17:38:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=A1/Lo8coZmpbeltI8IevW2BCtI6dWAuomgQwLitX9do=; b=lLCLm7Xx93xZPR5gKbDBoYaTxw ecooMCLeXEQedxqQERHVedNyDO5iBX600I4oYtzuCqQtE7tEc6tLQCpmwMqRpiv5wnl3/D2Uay4kx GyJv88+Pu6cC3OCo+7YsDzvbl+Feu1m01Gvxypqse87a1zklp216cb3nenI+ta9/BLuo=; Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jK7Xn-004RyR-9D for bug-guix@gnu.org; Fri, 03 Apr 2020 03:08:35 +0530 From: Arun Isaac To: bug-guix@gnu.org Subject: Use ngettext to internationalize plural in guix/lint.scm Date: Fri, 03 Apr 2020 03:08:13 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 139.59.75.54 X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) --=-=-= Content-Type: text/plain In the check-description-style function in guix/lint.scm, the string "sentences in description should be followed ..." should be pluralized using ngettext, not ~p as it is now. ~p only adds an 's' if the corresponding argument is greater than 1. Needless to say, there are many languages that don't follow this pattern. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAl6GW0UACgkQLiXui2GA K7OPEggAjvM/tVOE25sSudD+LsB4J+dwM/IRJTASnpjzeTqZOEDBti+TX6k7ai7M N7V5Vto57YtU5cbwGS6iPossfm/LSryl7tim//L+zccVa1pDHs1WwEcQJrCLRVbZ 1bLQu+syjGcr586tXOYv+I0CBYt43mqj18yLEgkj+WnR01V0SRjAzRLg740nwDyz 5iW1q1v25V4fkQR3NfzBWjTMksGbbAmC8WAnCjiIdlflaWhQlFCbDSAGZBXicGcG 17Gg4ctDAQt0/M9zIQ43tbTbB64fJ0nEuggrXGdKJo0PPgabvl3x+s/YH1eAE3fH 8XwIFCbr4fW3eaXu8RjilE5+vSLF6Q== =q52v -----END PGP SIGNATURE----- --=-=-=--