From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35287: dired-do-copy English beef-up Date: Wed, 24 Apr 2019 23:15:13 +0300 Organization: LINKOV.NET Message-ID: <87ef5r6vta.fsf@mail.linkov.net> References: <874l6zh4ik.2.fsf@jidanni.org> <87y3491zbd.fsf@mail.linkov.net> <220330ef-516d-46b4-b8e8-c7209f7b7898@default> <87d0lktp84.fsf@mail.linkov.net> <87h8avhvx4.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="155099"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 35287@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 24 22:28:38 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1hJOVR-000eC3-Jw for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2019 22:28:38 +0200 Original-Received: from localhost ([127.0.0.1]:46863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJOVQ-0003T6-Jj for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2019 16:28:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJOUs-00035f-AE for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 16:28:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJOQ6-00061Z-6w for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 16:23:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43045) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJOQ2-0005xT-Ig for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 16:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hJOQ2-00089E-Ai for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2019 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Apr 2019 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35287 X-GNU-PR-Package: emacs Original-Received: via spool by 35287-submit@debbugs.gnu.org id=B35287.155613734031255 (code B ref 35287); Wed, 24 Apr 2019 20:23:02 +0000 Original-Received: (at 35287) by debbugs.gnu.org; 24 Apr 2019 20:22:20 +0000 Original-Received: from localhost ([127.0.0.1]:56589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJOPL-000883-Ls for submit@debbugs.gnu.org; Wed, 24 Apr 2019 16:22:19 -0400 Original-Received: from quail.birch.relay.mailchannels.net ([23.83.209.151]:14417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJOPJ-00087u-4T for 35287@debbugs.gnu.org; Wed, 24 Apr 2019 16:22:18 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id DAEAB8C1D1A; Wed, 24 Apr 2019 20:22:15 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a34.g.dreamhost.com (100-96-4-152.trex.outbound.svc.cluster.local [100.96.4.152]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 331F68C1DEB; Wed, 24 Apr 2019 20:22:15 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a34.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Wed, 24 Apr 2019 20:22:15 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Trouble-Coil: 7aaa3f95509c5c80_1556137335614_271554330 X-MC-Loop-Signature: 1556137335614:3506660049 X-MC-Ingress-Time: 1556137335613 Original-Received: from pdx1-sub0-mail-a34.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a34.g.dreamhost.com (Postfix) with ESMTP id B9BAD8192C; Wed, 24 Apr 2019 13:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=bdmXuQPiEsUBJSmbZYG72t2bJ6I=; b= ymAdHZqOGJ501e3DwVXn/wEq34Agk7fU+AZujOwbK47RhUQ5EyefYVANfAn3P0vU xM6ljJJXU8c/MsnGIbjvjK8bnbfrtm8zcgk57w41Gtga4pG+X8opaT6IIU1jyBS2 WY5pLss4TG/JBnMlvJ6hsPGpoYvb4ViNum1Wj1j4Lgk= Original-Received: from mail.jurta.org (m91-129-101-0.cust.tele2.ee [91.129.101.0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a34.g.dreamhost.com (Postfix) with ESMTPSA id B44F4818DB; Wed, 24 Apr 2019 13:22:08 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a34 In-Reply-To: (Drew Adams's message of "Thu, 18 Apr 2019 14:10:56 -0700 (PDT)") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddrhedvgdegfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehmtderredtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtuddrtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutddurddtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomhenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158202 Archived-At: --=-=-= Content-Type: text/plain >> Then a complete set of messages: >> >> Copy: 3 files done >> Copy: 2 of 3 files skipped >> Copy: 2 of 3 files failed >> Copy: 2 files in 3 requests failed > > What is the difference between the last two? The latter is used for recursive operations. > What about the current existing messages when > there are failures, telling you to use `?' to > see the details (the `dired-log' output)? This is now unified as well: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=dired-aux.i18n.patch diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index b81c0d1a4f..e967f94e06 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -1798,32 +1798,36 @@ dired-create-files (progn (push (dired-make-relative from) failures) - (dired-log "%s `%s' to `%s' failed:\n%s\n" + (dired-log "%s: `%s' to `%s' failed:\n%s\n" operation from to err)))))))) (cond (dired-create-files-failures (setq failures (nconc failures dired-create-files-failures)) (dired-log-summary - (format "%s failed for %d file%s in %d requests" - operation (length failures) - (dired-plural-s (length failures)) - total) + (format (ngettext "%s failed for %d file in %d requests" + "%s failed for %d files in %d requests" + (length failures)) + operation (length failures) total) failures)) (failures (dired-log-summary - (format "%s failed for %d of %d file%s" - operation (length failures) - total (dired-plural-s total)) + (format (ngettext "%s: %d of %d file failed" + "%s: %d of %d files failed" + total) + operation (length failures) total) failures)) (skipped (dired-log-summary - (format "%s: %d of %d file%s skipped" - operation (length skipped) total - (dired-plural-s total)) + (format (ngettext "%s: %d of %d file skipped" + "%s: %d of %d files skipped" + total) + operation (length skipped) total) skipped)) (t - (message "%s: %s file%s" - operation success-count (dired-plural-s success-count))))) + (message (ngettext "%s: %d file done" + "%s: %d files done" + success-count) + operation success-count)))) (dired-move-to-filename)) (defun dired-do-create-files (op-symbol file-creator operation arg --=-=-=--