From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: Emacs i18n Date: Fri, 22 Mar 2019 06:17:01 +0900 Message-ID: <41BBD5F2-DBE5-4DB4-923E-D29EA32C353C@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> <29a53a39-fa50-1e94-9420-a3ea1250aa44@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="237002"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 22:18:08 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 1h754e-000zUw-Aq for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2019 22:18:04 +0100 Original-Received: from localhost ([127.0.0.1]:46964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h754d-00087K-5o for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2019 17:18:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h753s-000870-7n for emacs-devel@gnu.org; Thu, 21 Mar 2019 17:17:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h753q-0007eu-7L for emacs-devel@gnu.org; Thu, 21 Mar 2019 17:17:16 -0400 Original-Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:37562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h753m-0007Xn-D9 for emacs-devel@gnu.org; Thu, 21 Mar 2019 17:17:12 -0400 Original-Received: by mail-pf1-x433.google.com with SMTP id 8so5124556pfr.4 for ; Thu, 21 Mar 2019 14:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=cr3hB6zigQ/1/yaimcWbnL0ToTVRnQG9BZ9GvMYPNKk=; b=ro+FftepY2ngcxSDBz7C84ZapIKR5HRbkk5p09cPf5Gavpbp4TZeHTasGzAromlm/0 4mvKraV9nHiB7jHvv8NH9wsxQOZkRpcNEr1A6y2T4Yr9ejt56KyDiGh3uclcSQRTliWA IPKxnXN9u6IGsbLRXFI4o61QUmP5jcOK/5qM0efsdC1W3F7BiWvIBpV8ovSlTrX54HnD /2OrXWJQgQOoCXp5CSB+koARgIuJ4K68TIAeCAYL4myuIjqNGEKAQuOuuGg/5klk9Mh2 CKmqul4s2mRtfT4zHjdKI/MJOoKOFj6B3NYDK8Sly+5RLdGtc0XLzpOm9xbaJp3de6+p dT8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=cr3hB6zigQ/1/yaimcWbnL0ToTVRnQG9BZ9GvMYPNKk=; b=td/hwe1r0QIv9kuynYV+kV8WWm3DJ4YVxiBr9Y5spRMz2b3jVvfo57R4IHrbPJpV6I RcmCQZXsbn2YOlM9rXh3HaHWKW5Xf6heSjmp2TbI8UtXekDm3zyU7vbgS5tkpb61XFWR XHE9WDiVoIWvivBrrHwyQF3OMR23PEBhZXvqZ6+glYek4W4k0f9sdxTtW/ikxod7OjEq 171N28fMKnM8hkykt57IR4tJOknm8OXJGUUY+lazWWaQldXxe+HPjMDCyugHpe9U9cuB 9XlIBVXIjdik6Byipij61EMt8eOmASB/kV1FqtGFgxSbFruMcOqHeuqCVMhS8RuaqRud nTnw== X-Gm-Message-State: APjAAAWt/q7mADfqLAkCVTu1K3NM0RqwJgMdn4xM5BSv/Yhd+614nkUf t3snQW6pZrSnWdXnihgTLkqWMxup X-Google-Smtp-Source: APXvYqwKP+UvTvQaJnO0sl8GQK6O0QDEbzJHjiNIqcyUIqo2gTcdu8ZFjujOkPqx9cBsxNp9DlCLhg== X-Received: by 2002:a17:902:8303:: with SMTP id bd3mr5829977plb.10.1553203026243; Thu, 21 Mar 2019 14:17:06 -0700 (PDT) Original-Received: from [192.168.1.3] (pl32040.ag0304.nttpc.ne.jp. [111.89.228.40]) by smtp.gmail.com with ESMTPSA id q207sm7728123pgq.88.2019.03.21.14.17.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 14:17:04 -0700 (PDT) In-Reply-To: <29a53a39-fa50-1e94-9420-a3ea1250aa44@gmail.com> X-Mailer: Apple Mail (2.3445.102.3) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::433 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:234492 Archived-At: Thank you Clement for the remarks. I wrote all at first because there = were issues with the original code that did not take into account some = singular cases. When I checked the code, I found a terrible amount of = strings mixed with code and so I went a bit further and "fixed" that = too. I don't remember forgetting about that "Number" issue you mention = though. Sorry for that. Jean-Christophe=20 > On Mar 22, 2019, at 5:33, Cl=C3=A9ment Pit-Claudel = wrote: >=20 > 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 =E2=80=98message=E2=80=99= like >>>=20 >>> Deleted 1 matching lines >>> 1 matches found >>> ... >>=20 >> 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: >>=20 >> Number of matches found: %d >=20 > 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). >=20 > 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.'). >=20 > 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?'). >=20 > 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? >=20 > Cl=C3=A9ment. >=20 Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune