From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs i18n Date: Thu, 21 Mar 2019 16:33:21 -0400 Message-ID: <29a53a39-fa50-1e94-9420-a3ea1250aa44@gmail.com> References: <87o97aq6gz.fsf@jidanni.org> <87tvgoud56.fsf@mail.linkov.net> <83o96wk2mi.fsf@gnu.org> <87k1hjfvjd.fsf@mail.linkov.net> <871s3p0zdz.fsf@mail.linkov.net> <83h8ckezyt.fsf@gnu.org> <87h8cjspc0.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="48589"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 Cc: Eli Zaretskii , Richard Stallman , emacs-devel@gnu.org To: Jean-Christophe Helary , Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 21:34:52 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h74Oo-000CUp-RH for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2019 21:34:50 +0100 Original-Received: from localhost ([127.0.0.1]:46434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h74On-0006j2-QI for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2019 16:34:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h74NR-0006gC-9Z for emacs-devel@gnu.org; Thu, 21 Mar 2019 16:33:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h74NQ-0007nR-6b for emacs-devel@gnu.org; Thu, 21 Mar 2019 16:33:25 -0400 Original-Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]:40902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h74NP-0007mi-SR; Thu, 21 Mar 2019 16:33:24 -0400 Original-Received: by mail-qt1-x82f.google.com with SMTP id x12so129161qts.7; Thu, 21 Mar 2019 13:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DDxFX+ZK/of1f2lKcpJCPZu2xqFEoGQd18BxqyiAzNE=; b=YfNqaOdArz8GwnANFOKyMzXs87g5Airly//hW88zqFDyeAwlfk+Bm3QxX1r/HK+JU6 kfN2/2E2OZNDeASlXNsQ+ID5qWRWCtvl8zi6GYyAkqtQWK9vMru9v2EnTPwzAt+Y/z6g jYYY15AoGDkMsUArznkD/h0/aPCwPojRHe6Ph9/N3qiDWelueTl/glqK+jBaFWSwr8vb wJCJYTts2p+3ZdDAlxwskXu8/HnGh0xGFCH5zXHjlx86MaWfXRE8Cp5hzebbPnZhzsDo j/I/A01Z+iFDUWz/iN5YxY1ChS6WEKygkq2itfYcMg2Un6IVPBAVWSRzAISwuJCLNmI2 bXQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DDxFX+ZK/of1f2lKcpJCPZu2xqFEoGQd18BxqyiAzNE=; b=cqrblwNIvWV2Ll1vU1b0YPg68XL5wDZCD8n9EM8e70C5BC9vXvLxoT2asA6AufyhSQ qkeKHaiDln+JGqERE3HDLn/1b7QtUrvDeVQv4ZWWNbDPjynnsFqgStm1/DSNhko2NUC0 e9nS3a5lLZNdWU7l0yF96l3lQVmhTTj4RFs4hiJXLKSAPUdBIFKO6HgJeAriJrXznytJ CNBl68k+oOgEUqynVHyqeRtoFHR/KDODGjYU+aqnl8zvsFEkW9iud4GnMXABQlUWmLvi uwL0j8UMe1UqFb/3idjscKQD4bS4k3XPd6kwa1xOQc+1Z6C45uNrEHesWztJbUgujMle GR9A== X-Gm-Message-State: APjAAAUC0h3v9mFCLPdUUQIhoIUD/owDtztHYb/nnDsiSQWp7E3tOVjY W1iIYrelPvIYLHclDnwVs2z6TfPPQkU= X-Google-Smtp-Source: APXvYqxSNfXt6kcRsDGZvvFtYM6WotENyuOAegvpo+3ZVCo6WiMCGxAyi1P1bJ5p3MF69GJ5xXAdIg== X-Received: by 2002:aed:38a5:: with SMTP id k34mr5014299qte.60.1553200402971; Thu, 21 Mar 2019 13:33:22 -0700 (PDT) Original-Received: from [128.30.9.213] (30-9-213.wireless.csail.mit.edu. [128.30.9.213]) by smtp.googlemail.com with ESMTPSA id h24sm4540670qte.50.2019.03.21.13.33.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 13:33:22 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234482 Archived-At: On 2019-03-03 20:46, Jean-Christophe Helary wrote: >> On Mar 4, 2019, at 5:57, Juri Linkov > wrote: >> My intention was to fix the bug which manifests itself in >> grammatically incorrect sentences displayed by ‘message’ like >> >> Deleted 1 matching lines >> 1 matches found >> ... > > The best way to do that (I fixed the almost 100% of the package.el code with that) is to not use such syntax but rather things like: > > Number of matches found: %d I'm a bit late to the party, but I hope it's still OK to respond :) This is a valid way to work around the issue, but I'm not sure how much I like it (I just noticed the change after pulling the latest Emacs from git). The current package.el doesn't say 'Number of packages that are not available: %d'; instead, it says 'Packages that are not available: %d' (it used to say "%s packages are not available"). Other examples are 'Packages to hide: %d' (originally 'Hiding %s packages') and 'Packages that can be upgraded: %d; type `%s' to mark for upgrading.' (originally '%d package%s can be upgraded; type `%s' to mark %s for upgrading.'). I find this suboptimal for three reasons: First, after 'packages that are not available', I expect to see a list of packages, not a number. Second, the new way the message is phrased puts the important bit in a less obvious place (in the middle of the message, rather than at the beginning: "Packages that can be upgraded: 5; type `U' to mark for upgrading"). Third (but this is a bit more fuzzy), the way the message is now written makes errors sound like normal events ('Packages that are not available: 3' read like the response to the query 'how many packages are not available?'). I understand that there's hope to support plurals and internationalization in a more principled way soon, but is this workaround (61f73703c74756e6963cc622f03bcc6938ab71b2) needed in the meantime? Clément.