From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AJoUKeNy42TZlQAASxT56A (envelope-from ) for ; Mon, 21 Aug 2023 16:21:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kD3hKONy42S1agAA9RJhRA (envelope-from ) for ; Mon, 21 Aug 2023 16:21:23 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5FACD4B0AF for ; Mon, 21 Aug 2023 16:21:23 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=gwf6tQ8u; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692627683; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=w8f1RC8sKTZP5tf5/1VLG3G6f3HyUhtEg5udOdNbpho=; b=Uy8ChRemMmV+Hi7SeEBFMsrHMoWg7MByX2sKmFgJs7KISd7yeRsim1JHWNC9t0U15cKYa7 jb2j5JYLj9mgvMmBoCPfiURnc3EXYXE0cTO8RGsduqBqvnuOP5p6OAb1Fvyo6P435QvEnU e17eCDLW8hK6hGtALqdzMIB+XrrYHdLhVspkh9C2W2UASKOfUdLHYds6r0nvclqz+yE5t4 4lDG6x1YAMwX4yY0253Wfwq+w3KxRWa3h0AJUjvYYCv4q4kJKq0vrH+jBlLWqY0c9qirVa aYS+FpINumvock5vO7Lx/BwT72QqdkdYpV+ILBSEdtUjrHmy4O2VyRW0kpRAQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692627683; a=rsa-sha256; cv=none; b=Y8S4E7Ga5hmLzaf+k2A51aNEg7n4eFQI00j3ibLN56+Iq/UmdzhFWbWyQM4sW7fGGRhQix kOW7IhcSWSlhRghDprpLRSWmQheIMEe+oi5CmKrg+dlREmnQ7BFH5qFF9BUH7lUVFTBWhW CruHfer2g7SFGWlfFM2D1khKxJmGIXfCAuDo7yETmj6XAqfyu8+kkt+4B5ngC2ULJoQIdC 0qqHpSZNhyMcfXEprYhW3J1e1GsGblmbnm113Q1cNG78rNT5RAu+0gKBD9SK5uCNUwFgry Ls0zsKs27K/feAgD+SS5EXbY4Qg26JnwpUAuuebc/i1l7kHe9b21bBIZY4o2QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=gwf6tQ8u; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qY5mA-00008x-Bd; Mon, 21 Aug 2023 10:21:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qY5m8-00008U-2x for bug-guix@gnu.org; Mon, 21 Aug 2023 10:21:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qY5m7-0000lj-RL for bug-guix@gnu.org; Mon, 21 Aug 2023 10:20:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qY5mA-0000Wr-1r for bug-guix@gnu.org; Mon, 21 Aug 2023 10:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65424: Guix doesn't use positional arguments in translated formatted messages Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 21 Aug 2023 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65424 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos , 65424@debbugs.gnu.org Received: via spool by 65424-submit@debbugs.gnu.org id=B65424.16926276602019 (code B ref 65424); Mon, 21 Aug 2023 14:21:02 +0000 Received: (at 65424) by debbugs.gnu.org; 21 Aug 2023 14:21:00 +0000 Received: from localhost ([127.0.0.1]:57419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qY5m8-0000WU-4w for submit@debbugs.gnu.org; Mon, 21 Aug 2023 10:21:00 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:60212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qY5m5-0000WH-1G for 65424@debbugs.gnu.org; Mon, 21 Aug 2023 10:20:58 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e9bff2c0; Mon, 21 Aug 2023 14:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=ZXM5pFOgVPZe +3J/7oMaf/uy86SoK5x9Ry3NQ4VtzLg=; b=gwf6tQ8un/ID6huiUv46jVkq4LHH TzMMKmBu5iNS3bcf3zuSfjfBjJcWAlZ00YiXKUT0TqR5iyZ5w+dT6a5xW1eA7PON 0NyC6TWsEYHWGYcCS4likEX91FRL1OTBETISPir3NP6uwOmzDS4X6Ruqj1taebaz pYQg+L0ioCXMTApyYET4yZMzy8lyA567uC469NBDvL02cAWVW42/fNmMxpc/WMQ9 pmUJ9CduXNYXrj1NNM05PDxFt63ibMKKpv9LEV793Lfy350QrbtkDXxBJefqZuaJ gYEJ7VzQAj9RLt7xmM9YZUI6ngt9g9r7ryRH0M89rZv0e7MjQApxQjBAUQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 813f653d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 21 Aug 2023 14:20:48 +0000 (UTC) Date: Mon, 21 Aug 2023 16:20:32 +0200 From: Julien Lepiller User-Agent: K-9 Mail for Android In-Reply-To: <70fba97b-6b2d-8bfc-1938-977f5d5ed2d5@telenet.be> References: <70fba97b-6b2d-8bfc-1938-977f5d5ed2d5@telenet.be> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.06 X-Spam-Score: -5.06 X-Migadu-Queue-Id: 5FACD4B0AF X-Migadu-Scanner: mx1.migadu.com X-TUID: vmyYOrI5lKk5 Le 21 ao=C3=BBt 2023 14:09:14 GMT+02:00, Maxime Devos a =C3=A9crit=C2=A0: >Consider, e=2Eg=2E, > >(format #t (G_ "~0@*~a should be set to ~1@*~a instead of ~2@*~a~%") "CC"= "(cc-for-target)" "gcc") >-> >CC should be set to (cc-for-target) instead of gcc > >By using positional arguments like this, translators can reorder the sent= ence to: > >(format #t (G_ "It's not ~2@*~a that ~0@*~a should be set to, but ~1@*~a~= %") "CC" (cc-for-target) "gcc")) > >~0@*~a should be set to ~1@*~a instead of ~2@*~a~%") "CC" "(cc-for-target= )" "gcc") >-> >It's not gcc that CC should be set to, but (cc-for-target)=2E > >CC should be set to (cc-for-target) instead of gcc > >Such reorderings are occasionally useful, yet AFAIK nowhere (except po/gu= ix/ta=2Epo, the mcron service and de=2Epo) is this used=2E > >Sure, you could as translator add these ~N@* afterwards, but you need to = know that's possible in the first place (and if you know it's possible, you= still need to remember or rediscover what exactly to write), and it would = be much simpler and more discoverable if they were included from the start= =2E Also, IIRC, Weblate complains if you add these=2E > >p=2Es=2E: I'm writing a new linter, this particular example doesn't occur= yet in Guix=2E That sounds reasonnabe=2E The very least we could do is document this synt= ax in the manual=2E Weblate would complain indeed, sirce it won't find the = same formats in the source and target strings=2E It might complain about th= e order too, but that's something we could contribute upstseam if it happen= s=2E