From unknown Tue Aug 19 23:13:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13665: Question about the translation of double_to_human Resent-From: =?UTF-8?Q?G=C3=B6ran?= Uddeborg Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 09 Feb 2013 18:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13665 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 13665@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136043538220446 (code B ref -1); Sat, 09 Feb 2013 18:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Feb 2013 18:43:02 +0000 Received: from localhost ([127.0.0.1]:46989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4FOA-0005Jj-20 for submit@debbugs.gnu.org; Sat, 09 Feb 2013 13:43:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50903) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4FO7-0005JL-JM for submit@debbugs.gnu.org; Sat, 09 Feb 2013 13:43:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4FNw-0005iH-Aw for submit@debbugs.gnu.org; Sat, 09 Feb 2013 13:42:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4FNw-0005iD-7u for submit@debbugs.gnu.org; Sat, 09 Feb 2013 13:42:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4FNu-00069U-Hc for bug-coreutils@gnu.org; Sat, 09 Feb 2013 13:42:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4FNt-0005gD-0l for bug-coreutils@gnu.org; Sat, 09 Feb 2013 13:42:46 -0500 Received: from smtprelay-h31.telenor.se ([213.150.131.4]:58030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4FNs-0005fQ-Q6 for bug-coreutils@gnu.org; Sat, 09 Feb 2013 13:42:44 -0500 Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id BEF06EA073 for ; Sat, 9 Feb 2013 19:42:40 +0100 (CET) X-SENDER-IP: [83.227.168.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuZSAISXFlFT46hkPGdsb2JhbABFhgezJ4d3FwMBAQEBODSCYBwYgRkMCohCCJ4foGGOYIMqA5YkgR2IOYoE X-IronPort-AV: E=Sophos;i="4.84,635,1355094000"; d="scan'208";a="201000196" Received: from ua-83-227-168-100.cust.bredbandsbolaget.se (HELO mimmi.uddeborg.se) ([83.227.168.100]) by ipb4.telenor.se with ESMTP; 09 Feb 2013 19:42:40 +0100 Received: from freddi.uddeborg (freddi.uddeborg [172.17.0.3]) by mimmi.uddeborg.se (8.14.5/8.14.5) with ESMTP id r19Igbgr019964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 9 Feb 2013 19:42:38 +0100 Received: from freddi.uddeborg (localhost [127.0.0.1]) by freddi.uddeborg (8.14.5/8.14.5) with ESMTP id r19IgbdB011157 for ; Sat, 9 Feb 2013 19:42:37 +0100 Received: (from goeran@localhost) by freddi.uddeborg (8.14.5/8.14.5/Submit) id r19IgaW2011156; Sat, 9 Feb 2013 19:42:36 +0100 From: =?UTF-8?Q?G=C3=B6ran?= Uddeborg MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20758.39068.809383.866253@freddi.uddeborg> Date: Sat, 9 Feb 2013 19:42:36 +0100 X-Mailer: VM 8.1.2 under 24.1.1 (x86_64-redhat-linux-gnu) X-Face: "m&!q8; elk)j/GjdH0A1-5euH[VSc"z|=FSJFsZMltGCVh^{K :^Y;hs=IW^!,^]<.Do*c6+Eg2{+(^IjaW<2X,!<6=S\`8s3$0p'*sQ"tm\<(tRW?,CmQ3 X-URL: http://www.uddeborg.se/g%C3%B6ran/ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) I started the translation of coreutils 8.20-pre2 which just arrived via the Translation Project. I got a bit uncertain about messages like: msgid "" "simple_strtod_human:\n" " input string: '%s'\n" " locale decimal-point: '%s'\n" and msgid "double_to_human:\n" Is "simple_strtod_human" a name, or is it a string to be translated? The announcement via the mailing list includede a reference to http://meyering.net/cu/coreutils-8.19.166-3131c.tar.xz but unfortunately, it does not seem to match perfectly. In particular, these strings are not included. Nor is the file they were supposed to come from, src/numfmt.c. From unknown Tue Aug 19 23:13:48 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?G=C3=B6ran?= Uddeborg Subject: bug#13665: closed (Re: bug#13665: Question about the translation of double_to_human) Message-ID: References: <5116A2F3.2060503@draigBrady.com> <20758.39068.809383.866253@freddi.uddeborg> X-Gnu-PR-Message: they-closed 13665 X-Gnu-PR-Package: coreutils Reply-To: 13665@debbugs.gnu.org Date: Sat, 09 Feb 2013 19:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1360438082-24626-1" This is a multi-part message in MIME format... ------------=_1360438082-24626-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13665: Question about the translation of double_to_human which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13665@debbugs.gnu.org. --=20 13665: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13665 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1360438082-24626-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13665-done) by debbugs.gnu.org; 9 Feb 2013 19:27:02 +0000 Received: from localhost ([127.0.0.1]:47074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4G4j-0006Nb-Rx for submit@debbugs.gnu.org; Sat, 09 Feb 2013 14:27:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5739) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4G4h-0006N8-1J for 13665-done@debbugs.gnu.org; Sat, 09 Feb 2013 14:27:00 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r19JQlVq017344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 9 Feb 2013 14:26:47 -0500 Received: from [10.36.116.28] (ovpn-116-28.ams2.redhat.com [10.36.116.28]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r19JQixE018906 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Feb 2013 14:26:46 -0500 Message-ID: <5116A2F3.2060503@draigBrady.com> Date: Sat, 09 Feb 2013 19:26:43 +0000 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: =?ISO-8859-1?Q?G=F6ran_Uddeborg?= Subject: Re: bug#13665: Question about the translation of double_to_human References: <20758.39068.809383.866253@freddi.uddeborg> In-Reply-To: <20758.39068.809383.866253@freddi.uddeborg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id r19JQlVq017344 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 13665-done Cc: Assaf Gordon , 13665-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On 02/09/2013 06:42 PM, G=F6ran Uddeborg wrote: > I started the translation of coreutils 8.20-pre2 which just arrived > via the Translation Project. I got a bit uncertain about messages > like: > > msgid "" > "simple_strtod_human:\n" > " input string: '%s'\n" > " locale decimal-point: '%s'\n" > > and > > msgid "double_to_human:\n" > > Is "simple_strtod_human" a name, or is it a string to be translated? These are function names and not to be translated. These are "developer debug" strings, which I'm tempted to remove entirely. What do you think Assaf? > The announcement via the mailing list includede a reference to > > http://meyering.net/cu/coreutils-8.19.166-3131c.tar.xz The correct source for the latest translation is: http://pixelbeat.org/cu/coreutils-8.20.113-1f1f4.tar.xz That was included as part of: http://lists.gnu.org/archive/html/coreutils/2013-02/msg00020.html which was also sent to coordinator@translationproject.org thanks, P=E1draig. ------------=_1360438082-24626-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Feb 2013 18:43:02 +0000 Received: from localhost ([127.0.0.1]:46989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4FOA-0005Jj-20 for submit@debbugs.gnu.org; Sat, 09 Feb 2013 13:43:02 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50903) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4FO7-0005JL-JM for submit@debbugs.gnu.org; Sat, 09 Feb 2013 13:43:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4FNw-0005iH-Aw for submit@debbugs.gnu.org; Sat, 09 Feb 2013 13:42:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:38401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4FNw-0005iD-7u for submit@debbugs.gnu.org; Sat, 09 Feb 2013 13:42:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4FNu-00069U-Hc for bug-coreutils@gnu.org; Sat, 09 Feb 2013 13:42:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4FNt-0005gD-0l for bug-coreutils@gnu.org; Sat, 09 Feb 2013 13:42:46 -0500 Received: from smtprelay-h31.telenor.se ([213.150.131.4]:58030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4FNs-0005fQ-Q6 for bug-coreutils@gnu.org; Sat, 09 Feb 2013 13:42:44 -0500 Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id BEF06EA073 for ; Sat, 9 Feb 2013 19:42:40 +0100 (CET) X-SENDER-IP: [83.227.168.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuZSAISXFlFT46hkPGdsb2JhbABFhgezJ4d3FwMBAQEBODSCYBwYgRkMCohCCJ4foGGOYIMqA5YkgR2IOYoE X-IronPort-AV: E=Sophos;i="4.84,635,1355094000"; d="scan'208";a="201000196" Received: from ua-83-227-168-100.cust.bredbandsbolaget.se (HELO mimmi.uddeborg.se) ([83.227.168.100]) by ipb4.telenor.se with ESMTP; 09 Feb 2013 19:42:40 +0100 Received: from freddi.uddeborg (freddi.uddeborg [172.17.0.3]) by mimmi.uddeborg.se (8.14.5/8.14.5) with ESMTP id r19Igbgr019964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 9 Feb 2013 19:42:38 +0100 Received: from freddi.uddeborg (localhost [127.0.0.1]) by freddi.uddeborg (8.14.5/8.14.5) with ESMTP id r19IgbdB011157 for ; Sat, 9 Feb 2013 19:42:37 +0100 Received: (from goeran@localhost) by freddi.uddeborg (8.14.5/8.14.5/Submit) id r19IgaW2011156; Sat, 9 Feb 2013 19:42:36 +0100 From: =?utf-8?Q?G=C3=B6ran_Uddeborg?= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20758.39068.809383.866253@freddi.uddeborg> Date: Sat, 9 Feb 2013 19:42:36 +0100 To: bug-coreutils@gnu.org Subject: Question about the translation of double_to_human X-Mailer: VM 8.1.2 under 24.1.1 (x86_64-redhat-linux-gnu) X-Face: "m&!q8; elk)j/GjdH0A1-5euH[VSc"z|=FSJFsZMltGCVh^{K :^Y;hs=IW^!,^]<.Do*c6+Eg2{+(^IjaW<2X,!<6=S\`8s3$0p'*sQ"tm\<(tRW?,CmQ3 X-URL: http://www.uddeborg.se/g%C3%B6ran/ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) I started the translation of coreutils 8.20-pre2 which just arrived via the Translation Project. I got a bit uncertain about messages like: msgid "" "simple_strtod_human:\n" " input string: '%s'\n" " locale decimal-point: '%s'\n" and msgid "double_to_human:\n" Is "simple_strtod_human" a name, or is it a string to be translated? The announcement via the mailing list includede a reference to http://meyering.net/cu/coreutils-8.19.166-3131c.tar.xz but unfortunately, it does not seem to match perfectly. In particular, these strings are not included. Nor is the file they were supposed to come from, src/numfmt.c. ------------=_1360438082-24626-1-- From unknown Tue Aug 19 23:13:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13665: closed (Re: bug#13665: Question about the translation of double_to_human) Resent-From: =?UTF-8?Q?G=C3=B6ran?= Uddeborg Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 09 Feb 2013 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13665 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 13665@debbugs.gnu.org Received: via spool by 13665-submit@debbugs.gnu.org id=B13665.136043887126010 (code B ref 13665); Sat, 09 Feb 2013 19:42:02 +0000 Received: (at 13665) by debbugs.gnu.org; 9 Feb 2013 19:41:11 +0000 Received: from localhost ([127.0.0.1]:47107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4GIQ-0006lR-Oe for submit@debbugs.gnu.org; Sat, 09 Feb 2013 14:41:11 -0500 Received: from smtprelay-b31.telenor.se ([213.150.131.20]:43261) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4GIO-0006l2-OF for 13665@debbugs.gnu.org; Sat, 09 Feb 2013 14:41:10 -0500 Received: from ipb5.telenor.se (ipb5.telenor.se [195.54.127.168]) by smtprelay-b31.telenor.se (Postfix) with ESMTP id 37FF8EAF38 for <13665@debbugs.gnu.org>; Sat, 9 Feb 2013 20:40:57 +0100 (CET) X-SENDER-IP: [83.227.168.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlxeAHilFlFT46hkPGdsb2JhbABFiwW1DwQEgQkXAwEBAQE4NIIgAQU6HDNRLQwKFIguvw2OYIMqA5YkiVaKBA X-IronPort-AV: E=Sophos;i="4.84,635,1355094000"; d="scan'208";a="274648219" Received: from ua-83-227-168-100.cust.bredbandsbolaget.se (HELO mimmi.uddeborg.se) ([83.227.168.100]) by ipb5.telenor.se with ESMTP; 09 Feb 2013 20:40:56 +0100 Received: from freddi.uddeborg (freddi.uddeborg [172.17.0.3]) by mimmi.uddeborg.se (8.14.5/8.14.5) with ESMTP id r19JesnE021182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <13665@debbugs.gnu.org>; Sat, 9 Feb 2013 20:40:55 +0100 Received: from freddi.uddeborg (localhost [127.0.0.1]) by freddi.uddeborg (8.14.5/8.14.5) with ESMTP id r19Jesja013886 for <13665@debbugs.gnu.org>; Sat, 9 Feb 2013 20:40:54 +0100 Received: (from goeran@localhost) by freddi.uddeborg (8.14.5/8.14.5/Submit) id r19Jer1F013885; Sat, 9 Feb 2013 20:40:53 +0100 From: =?UTF-8?Q?G=C3=B6ran?= Uddeborg MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <20758.42565.572281.983944@freddi.uddeborg> Date: Sat, 9 Feb 2013 20:40:53 +0100 In-Reply-To: References: <5116A2F3.2060503@draigBrady.com> <20758.39068.809383.866253@freddi.uddeborg> X-Mailer: VM 8.1.2 under 24.1.1 (x86_64-redhat-linux-gnu) X-Face: "m&!q8; elk)j/GjdH0A1-5euH[VSc"z|=FSJFsZMltGCVh^{K :^Y;hs=IW^!,^]<.Do*c6+Eg2{+(^IjaW<2X,!<6=S\`8s3$0p'*sQ"tm\<(tRW?,CmQ3 X-URL: http://www.uddeborg.se/g%C3%B6ran/ X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.0 (/) Thanks! From unknown Tue Aug 19 23:13:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13665: Question about the translation of double_to_human Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 09 Feb 2013 20:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13665 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 13665@debbugs.gnu.org, P@draigBrady.com, goeran@uddeborg.se Received: via spool by 13665-submit@debbugs.gnu.org id=B13665.136044277131982 (code B ref 13665); Sat, 09 Feb 2013 20:47:02 +0000 Received: (at 13665) by debbugs.gnu.org; 9 Feb 2013 20:46:11 +0000 Received: from localhost ([127.0.0.1]:47198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4HJK-0008Jm-PG for submit@debbugs.gnu.org; Sat, 09 Feb 2013 15:46:11 -0500 Received: from smtp.cs.ucla.edu ([131.179.128.62]:50762) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4HJI-0008Je-EI for 13665@debbugs.gnu.org; Sat, 09 Feb 2013 15:46:09 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 1D59839E8105; Sat, 9 Feb 2013 12:45:57 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y6QwVfPMbwD5; Sat, 9 Feb 2013 12:45:56 -0800 (PST) Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net [71.189.154.249]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id A055B39E8008; Sat, 9 Feb 2013 12:45:56 -0800 (PST) Message-ID: <5116B584.9020201@cs.ucla.edu> Date: Sat, 09 Feb 2013 12:45:56 -0800 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 References: <20758.39068.809383.866253@freddi.uddeborg> <5116A2F3.2060503@draigBrady.com> In-Reply-To: <5116A2F3.2060503@draigBrady.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) On 02/09/2013 11:26 AM, P=C3=A1draig Brady wrote: > These are function names and not to be translated. > These are "developer debug" strings, which I'm tempted to remove entire= ly. Certainly "simple_strtod_human:\n" should not be translated, as it's referring to the identifier. Since the source code is written in English, we can safely assume developers read English, so there's no point to translating messages intended only for developers. From unknown Tue Aug 19 23:13:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13665: Question about the translation of double_to_human Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 10 Feb 2013 16:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13665 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert Cc: goeran@uddeborg.se, 13665@debbugs.gnu.org Received: via spool by 13665-submit@debbugs.gnu.org id=B13665.136051372525428 (code B ref 13665); Sun, 10 Feb 2013 16:29:01 +0000 Received: (at 13665) by debbugs.gnu.org; 10 Feb 2013 16:28:45 +0000 Received: from localhost ([127.0.0.1]:49219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4Zlk-0006c3-Cm for submit@debbugs.gnu.org; Sun, 10 Feb 2013 11:28:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57918) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4Zle-0006br-Kv for 13665@debbugs.gnu.org; Sun, 10 Feb 2013 11:28:41 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1AGSCE8030999 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 10 Feb 2013 11:28:13 -0500 Received: from [10.36.116.29] (ovpn-116-29.ams2.redhat.com [10.36.116.29]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r1AGS85E014392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Feb 2013 11:28:10 -0500 Message-ID: <5117CA98.6030304@draigBrady.com> Date: Sun, 10 Feb 2013 16:28:08 +0000 From: =?UTF-8?Q?P=C3=A1draig?= Brady User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 References: <20758.39068.809383.866253@freddi.uddeborg> <5116A2F3.2060503@draigBrady.com> <5116B584.9020201@cs.ucla.edu> In-Reply-To: <5116B584.9020201@cs.ucla.edu> Content-Type: multipart/mixed; boundary="------------050101050001040503060707" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is a multi-part message in MIME format. --------------050101050001040503060707 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id r1AGSCE8030999 On 02/09/2013 08:45 PM, Paul Eggert wrote: > On 02/09/2013 11:26 AM, P=C3=A1draig Brady wrote: >> These are function names and not to be translated. >> These are "developer debug" strings, which I'm tempted to remove entir= ely. > > Certainly "simple_strtod_human:\n" should not be translated, > as it's referring to the identifier. > > Since the source code is written in English, we can safely > assume developers read English, so there's no point to translating > messages intended only for developers. Both factor and numfmt recently introduced devel debug messages, enabled by --verbose and ---devdebug respectively. I've cleaned this up in the attached so that both use the same method to output the messages, and both now enable these messages with the the same ---debug option. Also translations are removed from these messages, and a syntax check added to stop future translations sneaking in in futur= e. thanks, P=C3=A1draig. --------------050101050001040503060707 Content-Type: text/x-patch; name="devmsg.patch" Content-Disposition: attachment; filename="devmsg.patch" Content-Transfer-Encoding: 7bit >From d64515e1c198fb58ff40116b58912e76f3a177e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Sun, 10 Feb 2013 12:47:23 +0000 Subject: [PATCH] maint: consolidate developer debug messages Both factor and numfmt recently introduced debug messages for developers enabled by --verbose and ---devdebug respectively. There were a few issues though: 1. They used different mechanisms to enable these messages. 2. factor used --verbose which might be needed for something else 3. They used different methods to output the messages, and numfmt used error() which added an unwanted newline 4. numfmt marked all these messages for translation and factor marked a couple. We really don't need these translated. So we fix the above issues here while renaming the enabling option for both commands to ---debug (still undocumented). * src/factor.c (verbose): Rename to dev_debug and change from int to bool as it's just a toggle flag. (long_options): Rename --verbose to ---debug. * src/system.h (devmsg): A new inline function to output a message if enabled by a global dev_debug variable in the compilation unit. * src/numfmt.c: Use devmsg() rather than error(). Also remove the translation tags from these messages. Also change debug flag to bool from int. * tests/misc/numfmt.pl: Adjust for the ---devdebug to ---debug change. * cfg.mk (sc_marked_devdiagnostics): Add a syntax check to ensure translations are not added to devmsg calls. --- cfg.mk | 7 +++ src/factor.c | 37 ++++++----------- src/numfmt.c | 104 ++++++++++++++++++-------------------------------- src/system.h | 15 +++++++ tests/misc/numfmt.pl | 22 +++++----- 5 files changed, 83 insertions(+), 102 deletions(-) diff --git a/cfg.mk b/cfg.mk index fbc64b4..09858a1 100644 --- a/cfg.mk +++ b/cfg.mk @@ -521,6 +521,13 @@ sc_THANKS_in_duplicates: && { echo '$(ME): remove the above names from THANKS.in' \ 1>&2; exit 1; } || : +# Look for developer diagnostics that are marked for translation. +# This won't find any for which devmsg's format string is on a separate line. +sc_marked_devdiagnostics: + @prohibit='\> 1) == t1) { - debug ("[%s]", _("using single-precision arithmetic")); + devmsg ("[using single-precision arithmetic] "); print_factors_single (t1, t0); return true; } @@ -2416,7 +2405,7 @@ print_factors (const char *input) } #if HAVE_GMP - debug ("[%s]", _("using arbitrary-precision arithmetic")); + devmsg ("[using arbitrary-precision arithmetic] "); mpz_t t; struct mp_factors factors; @@ -2502,8 +2491,8 @@ main (int argc, char **argv) { switch (c) { - case VERBOSE_OPTION: - verbose = 1; + case DEV_DEBUG_OPTION: + dev_debug = true; break; case 's': diff --git a/src/numfmt.c b/src/numfmt.c index e42cbf8..f7c8e5e 100644 --- a/src/numfmt.c +++ b/src/numfmt.c @@ -136,7 +136,7 @@ static struct option const longopts[] = {"delimiter", required_argument, NULL, 'd'}, {"field", required_argument, NULL, FIELD_OPTION}, {"debug", no_argument, NULL, DEBUG_OPTION}, - {"-devdebug", no_argument, NULL, DEV_DEBUG_OPTION}, + {"-debug", no_argument, NULL, DEV_DEBUG_OPTION}, {"header", optional_argument, NULL, HEADER_OPTION}, {"format", required_argument, NULL, FORMAT_OPTION}, {"invalid", required_argument, NULL, INVALID_OPTION}, @@ -188,10 +188,10 @@ static uintmax_t header = 0; /* Debug for users: print warnings to STDERR about possible error (similar to sort's debug). */ -static int debug = 0; +static bool debug; -/* debugging for developers - to be removed in final version? */ -static int dev_debug = 0; +/* debugging for developers. Enables devmsg(). */ +bool dev_debug = false; /* will be set according to the current locale. */ static const char *decimal_point; @@ -583,18 +583,16 @@ simple_strtod_human (const char *input_str, /* 'scale_auto' is checked below. */ int scale_base = default_scale_base (allowed_scaling); - if (dev_debug) - error (0, 0, _("simple_strtod_human:\n input string: '%s'\n " - "locale decimal-point: '%s'\n"), input_str, decimal_point); + devmsg ("simple_strtod_human:\n input string: '%s'\n " + "locale decimal-point: '%s'\n", input_str, decimal_point); enum simple_strtod_error e = simple_strtod_float (input_str, endptr, value, precision); if (e != SSE_OK && e != SSE_OK_PRECISION_LOSS) return e; - if (dev_debug) - error (0, 0, _(" parsed numeric value: %Lf\n" - " input precision = %d\n"), *value, (int)*precision); + devmsg (" parsed numeric value: %Lf\n" + " input precision = %d\n", *value, (int)*precision); if (**endptr != '\0') { @@ -619,9 +617,8 @@ simple_strtod_human (const char *input_str, is followed by an 'i' (e.g. Ki, Mi, Gi). */ scale_base = 1024; (*endptr)++; /* skip second ('i') suffix character. */ - if (dev_debug) - error (0, 0, _(" Auto-scaling, found 'i', switching to base %d\n"), - scale_base); + devmsg (" Auto-scaling, found 'i', switching to base %d\n", + scale_base); } *precision = 0; /* Reset, to select precision based on scale. */ @@ -637,15 +634,12 @@ simple_strtod_human (const char *input_str, long double multiplier = powerld (scale_base, power); - if (dev_debug) - error (0, 0, _(" suffix power=%d^%d = %Lf\n"), - scale_base, power, multiplier); + devmsg (" suffix power=%d^%d = %Lf\n", scale_base, power, multiplier); /* TODO: detect loss of precision and overflows. */ (*value) = (*value) * multiplier; - if (dev_debug) - error (0, 0, _(" returning value: %Lf (%LG)\n"), *value, *value); + devmsg (" returning value: %Lf (%LG)\n", *value, *value); return e; } @@ -695,8 +689,7 @@ double_to_human (long double val, int precision, char *buf, size_t buf_size, enum scale_type scale, int group, enum round_type round) { - if (dev_debug) - error (0, 0, _("double_to_human:\n")); + devmsg ("double_to_human:\n"); if (scale == scale_none) { @@ -704,11 +697,9 @@ double_to_human (long double val, int precision, val = simple_round (val, round); val /= powerld (10, precision); - if (dev_debug) - error (0, 0, - (group) ? - _(" no scaling, returning (grouped) value: %'.*Lf\n") : - _(" no scaling, returning value: %.*Lf\n"), precision, val); + devmsg ((group) ? + " no scaling, returning (grouped) value: %'.*Lf\n" : + " no scaling, returning value: %.*Lf\n", precision, val); int i = snprintf (buf, buf_size, (group) ? "%'.*Lf" : "%.*Lf", precision, val); @@ -724,9 +715,7 @@ double_to_human (long double val, int precision, /* Normalize val to scale. */ unsigned int power = 0; val = expld (val, scale_base, &power); - if (dev_debug) - error (0, 0, _(" scaled value to %Lf * %0.f ^ %d\n"), - val, scale_base, power); + devmsg (" scaled value to %Lf * %0.f ^ %d\n", val, scale_base, power); /* Perform rounding. */ int ten_or_less = 0; @@ -754,9 +743,7 @@ double_to_human (long double val, int precision, int show_decimal_point = (val != 0) && (absld (val) < 10) && (power > 0); /* && (absld (val) > simple_round_floor (val))) */ - if (dev_debug) - error (0, 0, _(" after rounding, value=%Lf * %0.f ^ %d\n"), - val, scale_base, power); + devmsg (" after rounding, value=%Lf * %0.f ^ %d\n", val, scale_base, power); snprintf (buf, buf_size, (show_decimal_point) ? "%.1Lf%s" : "%.0Lf%s", val, suffix_power_character (power)); @@ -764,8 +751,7 @@ double_to_human (long double val, int precision, if (scale == scale_IEC_I && power > 0) strncat (buf, "i", buf_size - strlen (buf) - 1); - if (dev_debug) - error (0, 0, _(" returning value: '%s'\n"), buf); + devmsg (" returning value: '%s'\n", buf); return; } @@ -1012,14 +998,13 @@ parse_format_string (char const *fmt) strlen (fmt + suffix_pos)); } - if (dev_debug) - error (0, 0, _("format String:\n input: %s\n grouping: %s\n" + devmsg ("format String:\n input: %s\n grouping: %s\n" " padding width: %ld\n alignment: %s\n" - " prefix: '%s'\n suffix: '%s'\n"), - quote (fmt), (grouping) ? "yes" : "no", - padding_width, - (padding_alignment == MBS_ALIGN_LEFT) ? "Left" : "Right", - format_str_prefix, format_str_suffix); + " prefix: '%s'\n suffix: '%s'\n", + quote (fmt), (grouping) ? "yes" : "no", + padding_width, + (padding_alignment == MBS_ALIGN_LEFT) ? "Left" : "Right", + format_str_prefix, format_str_suffix); } /* Parse a numeric value (with optional suffix) from a string. @@ -1087,10 +1072,7 @@ prepare_padded_number (const long double val, size_t precision) if (suffix) strncat (buf, suffix, sizeof (buf) - strlen (buf) -1); - if (dev_debug) - error (0, 0, _("formatting output:\n value: %Lf\n humanized: '%s'\n"), - val, buf); - + devmsg ("formatting output:\n value: %Lf\n humanized: '%s'\n", val, buf); if (padding_width && strlen (buf) < padding_width) { @@ -1098,9 +1080,7 @@ prepare_padded_number (const long double val, size_t precision) mbsalign (buf, padding_buffer, padding_buffer_size, &w, padding_alignment, MBA_UNIBYTE_ONLY); - if (dev_debug) - error (0, 0, _(" After padding: '%s'\n"), padding_buffer); - + devmsg (" After padding: '%s'\n", padding_buffer); } else { @@ -1136,14 +1116,10 @@ process_suffixed_number (char *text, long double *result, size_t *precision) { /* trim suffix, ONLY if it's at the end of the text. */ *possible_suffix = '\0'; - if (dev_debug) - error (0, 0, _("trimming suffix '%s'\n"), suffix); + devmsg ("trimming suffix '%s'\n", suffix); } else - { - if (dev_debug) - error (0, 0, _("no valid suffix found\n")); - } + devmsg ("no valid suffix found\n"); } /* Skip white space - always. */ @@ -1164,9 +1140,7 @@ process_suffixed_number (char *text, long double *result, size_t *precision) { padding_width = 0; } - if (dev_debug) - error (0, 0, _("setting Auto-Padding to %ld characters\n"), - padding_width); + devmsg ("setting Auto-Padding to %ld characters\n", padding_width); } long double val = 0; @@ -1233,9 +1207,7 @@ extract_fields (char *line, int _field, *_data = NULL; *_suffix = NULL; - if (dev_debug) - error (0, 0, _("extracting Fields:\n input: '%s'\n field: %d\n"), - line, _field); + devmsg ("extracting Fields:\n input: '%s'\n field: %d\n", line, _field); if (field > 1) { @@ -1245,8 +1217,7 @@ extract_fields (char *line, int _field, if (*ptr == '\0') { /* not enough fields in the input - print warning? */ - if (dev_debug) - error (0, 0, _(" TOO FEW FIELDS!\n prefix: '%s'\n"), *_prefix); + devmsg (" TOO FEW FIELDS!\n prefix: '%s'\n", *_prefix); return; } @@ -1266,9 +1237,8 @@ extract_fields (char *line, int _field, else *_suffix = NULL; - if (dev_debug) - error (0, 0, _(" prefix: '%s'\n number: '%s'\n suffix: '%s'\n"), - *_prefix, *_data, *_suffix); + devmsg (" prefix: '%s'\n number: '%s'\n suffix: '%s'\n", + *_prefix, *_data, *_suffix); } @@ -1409,12 +1379,12 @@ main (int argc, char **argv) break; case DEBUG_OPTION: - debug = 1; + debug = true; break; case DEV_DEBUG_OPTION: - dev_debug = 1; - debug = 1; + dev_debug = true; + debug = true; break; case HEADER_OPTION: diff --git a/src/system.h b/src/system.h index 1677999..6c310ad 100644 --- a/src/system.h +++ b/src/system.h @@ -649,6 +649,21 @@ stzncpy (char *restrict dest, char const *restrict src, size_t len) return dest; } +/* Like error(0, 0, ...), but without an implicit newline. + Also a noop unless the global DEV_DEBUG is set. */ +extern bool dev_debug; +static inline void +devmsg (char const *fmt, ...) +{ + if (dev_debug) + { + va_list ap; + va_start (ap, fmt); + vfprintf (stderr, fmt, ap); + va_end (ap); + } +} + #ifndef ARRAY_CARDINALITY # define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array)) #endif diff --git a/tests/misc/numfmt.pl b/tests/misc/numfmt.pl index b46e4d5..61917fb 100644 --- a/tests/misc/numfmt.pl +++ b/tests/misc/numfmt.pl @@ -643,37 +643,37 @@ my @Tests = # dev-debug messages - the actual messages don't matter # just ensure the program works, and for code coverage testing. - ['devdebug-1', '---devdebug --from=si 4.9K', {OUT=>"4900"}, + ['devdebug-1', '---debug --from=si 4.9K', {OUT=>"4900"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-2', '---devdebug 4900', {OUT=>"4900"}, + ['devdebug-2', '---debug 4900', {OUT=>"4900"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-3', '---devdebug --from=auto 4Mi', {OUT=>"4194304"}, + ['devdebug-3', '---debug --from=auto 4Mi', {OUT=>"4194304"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-4', '---devdebug --to=si 4000000', {OUT=>"4.0M"}, + ['devdebug-4', '---debug --to=si 4000000', {OUT=>"4.0M"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-5', '---devdebug --to=si --padding=5 4000000', {OUT=>" 4.0M"}, + ['devdebug-5', '---debug --to=si --padding=5 4000000', {OUT=>" 4.0M"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-6', '---devdebug --suffix=Foo 1234Foo', {OUT=>"1234Foo"}, + ['devdebug-6', '---debug --suffix=Foo 1234Foo', {OUT=>"1234Foo"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-7', '---devdebug --suffix=Foo 1234', {OUT=>"1234Foo"}, + ['devdebug-7', '---debug --suffix=Foo 1234', {OUT=>"1234Foo"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-9', '---devdebug --grouping 10000', {OUT=>"10000"}, + ['devdebug-9', '---debug --grouping 10000', {OUT=>"10000"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-10', '---devdebug --format %f 10000', {OUT=>"10000"}, + ['devdebug-10', '---debug --format %f 10000', {OUT=>"10000"}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-11', '---devdebug --format "%\'-10f" 10000',{OUT=>"10000 "}, + ['devdebug-11', '---debug --format "%\'-10f" 10000',{OUT=>"10000 "}, {ERR=>""}, {ERR_SUBST=>"s/.*//msg"}], - ['devdebug-12', '---devdebug --field 2 A',{OUT=>""}, + ['devdebug-12', '---debug --field 2 A',{OUT=>""}, {ERR=>""}, {EXIT=>2}, {ERR_SUBST=>"s/.*//msg"}], -- 1.7.7.6 --------------050101050001040503060707-- From unknown Tue Aug 19 23:13:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13665: Question about the translation of double_to_human Resent-From: Bernhard Voelker Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 10 Feb 2013 17:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13665 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: Paul Eggert , goeran@uddeborg.se, 13665@debbugs.gnu.org Received: via spool by 13665-submit@debbugs.gnu.org id=B13665.136051656029749 (code B ref 13665); Sun, 10 Feb 2013 17:16:01 +0000 Received: (at 13665) by debbugs.gnu.org; 10 Feb 2013 17:16:00 +0000 Received: from localhost ([127.0.0.1]:49257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4aVU-0007jl-Ee for submit@debbugs.gnu.org; Sun, 10 Feb 2013 12:16:00 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:49846) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4aVS-0007je-Sm for 13665@debbugs.gnu.org; Sun, 10 Feb 2013 12:16:00 -0500 Received: from [192.168.1.11] (p5083F782.dip.t-dialin.net [80.131.247.130]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0LySz0-1UxwUn0dxG-0166Xn; Sun, 10 Feb 2013 18:15:31 +0100 Message-ID: <5117D5B2.8000703@bernhard-voelker.de> Date: Sun, 10 Feb 2013 18:15:30 +0100 From: Bernhard Voelker User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 MIME-Version: 1.0 References: <20758.39068.809383.866253@freddi.uddeborg> <5116A2F3.2060503@draigBrady.com> <5116B584.9020201@cs.ucla.edu> <5117CA98.6030304@draigBrady.com> In-Reply-To: <5117CA98.6030304@draigBrady.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:A8nBIW0CAXAC60ciPPcr0F5B0I+K5sEUCiFKrAzyBve gDUuOJy1quagxCHeNGEm29wbCnCHdXoUyyk00W4sP3yavv603G JjnErjM9V1ZsDv0eMxk5u/P4FK+iXXY/v9V42VfnTDd/+6Z0i8 894YNe9eCRR+fDhp+jgSz8cq/faI6PRIW6di+jLbWrfqZFlNND vmkccmERDj/EYfg9iJo0K4LR/8mZHynlDMop1EAyJGy72lGgox lR63AMkWwmE9Kom5X0L31aA/d5RdoFWa0GCOO59LkA1qHoeHsw kqhLeZ7tVpKH9uYmRhWveqz0v/EBx7ZC3iD1LXvrtfRexavg8P SHMaD9SuLawLstKW70n03IYBszDAwVZ+au4bI8pOt X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 02/10/2013 05:28 PM, Pádraig Brady wrote: > I've cleaned this up in the attached so that both use the same > method to output the messages, and both now enable these messages > with the the same ---debug option. > Also translations are removed from these messages, > and a syntax check added to stop future translations sneaking in in future. Great work, thanks. Minor nit: > diff --git a/cfg.mk b/cfg.mk > index fbc64b4..09858a1 100644 > --- a/cfg.mk > +++ b/cfg.mk > @@ -521,6 +521,13 @@ sc_THANKS_in_duplicates: > && { echo '$(ME): remove the above names from THANKS.in' \ > 1>&2; exit 1; } || : > > +# Look for developer diagnostics that are marked for translation. > +# This won't find any for which devmsg's format string is on a separate line. > +sc_marked_devdiagnostics: > + @prohibit='\ + halt='found marked developer diagnostic(s)' \ > + $(_sc_search_regexp) > + Shouldn't it be this pattern instead? - @prohibit='\ Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 10 Feb 2013 20:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13665 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Bernhard Voelker Cc: Paul Eggert , goeran@uddeborg.se, 13665@debbugs.gnu.org Received: via spool by 13665-submit@debbugs.gnu.org id=B13665.136052712013296 (code B ref 13665); Sun, 10 Feb 2013 20:12:01 +0000 Received: (at 13665) by debbugs.gnu.org; 10 Feb 2013 20:12:00 +0000 Received: from localhost ([127.0.0.1]:49339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4dFn-0003SO-Pu for submit@debbugs.gnu.org; Sun, 10 Feb 2013 15:12:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62165) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4dFk-0003SE-EC for 13665@debbugs.gnu.org; Sun, 10 Feb 2013 15:11:57 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1AKBTaZ024115 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 10 Feb 2013 15:11:29 -0500 Received: from [10.36.116.29] (ovpn-116-29.ams2.redhat.com [10.36.116.29]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r1AKBOZf012375 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 10 Feb 2013 15:11:27 -0500 Message-ID: <5117FEEC.3020207@draigBrady.com> Date: Sun, 10 Feb 2013 20:11:24 +0000 From: =?UTF-8?Q?P=C3=A1draig?= Brady User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 References: <20758.39068.809383.866253@freddi.uddeborg> <5116A2F3.2060503@draigBrady.com> <5116B584.9020201@cs.ucla.edu> <5117CA98.6030304@draigBrady.com> <5117D5B2.8000703@bernhard-voelker.de> In-Reply-To: <5117D5B2.8000703@bernhard-voelker.de> Content-Type: text/plain; charset=UTF-8; format=flowed X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id r1AKBTaZ024115 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) On 02/10/2013 05:15 PM, Bernhard Voelker wrote: > On 02/10/2013 05:28 PM, P=C3=A1draig Brady wrote: >> I've cleaned this up in the attached so that both use the same >> method to output the messages, and both now enable these messages >> with the the same ---debug option. >> Also translations are removed from these messages, >> and a syntax check added to stop future translations sneaking in in fu= ture. > > Great work, thanks. > > Minor nit: >> diff --git a/cfg.mk b/cfg.mk >> index fbc64b4..09858a1 100644 >> --- a/cfg.mk >> +++ b/cfg.mk >> @@ -521,6 +521,13 @@ sc_THANKS_in_duplicates: >> && { echo '$(ME): remove the above names from THANKS.in' \ >> 1>&2; exit 1; } || : >> >> +# Look for developer diagnostics that are marked for translation. >> +# This won't find any for which devmsg's format string is on a separa= te line. >> +sc_marked_devdiagnostics: >> + @prohibit=3D'\> + halt=3D'found marked developer diagnostic(s)' \ >> + $(_sc_search_regexp) >> + > > Shouldn't it be this pattern instead? > - @prohibit=3D'\ + @prohibit=3D'\ And: do we need to reference Goeran's message to the ML? Already amended locally :) thanks, P=C3=A1draig. From unknown Tue Aug 19 23:13:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13665: Question about the translation of double_to_human Resent-From: Assaf Gordon Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 11 Feb 2013 15:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13665 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: =?UTF-8?Q?G=C3=B6ran?= Uddeborg , 13665-done@debbugs.gnu.org Received: via spool by 13665-done@debbugs.gnu.org id=D13665.136059546411090 (code D ref 13665); Mon, 11 Feb 2013 15:12:01 +0000 Received: (at 13665-done) by debbugs.gnu.org; 11 Feb 2013 15:11:04 +0000 Received: from localhost ([127.0.0.1]:51038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4v27-0002so-IM for submit@debbugs.gnu.org; Mon, 11 Feb 2013 10:11:04 -0500 Received: from mail-vb0-f41.google.com ([209.85.212.41]:48768) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U4v25-0002sQ-Bf for 13665-done@debbugs.gnu.org; Mon, 11 Feb 2013 10:11:02 -0500 Received: by mail-vb0-f41.google.com with SMTP id l22so3815303vbn.14 for <13665-done@debbugs.gnu.org>; Mon, 11 Feb 2013 07:10:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ayAtlIxaNRH8/Mp7DZCPO/7HpYp1xh5kRexo3gHXh4k=; b=eeWqDmpJyO12Gipuchf+2/YDFESpZEJ0K1/LcYLOAIdKehq/T5cDhKXH1wj5t7r02D jwrx70PgrL0glhUw3HqLaN2bkfcSI2GFRnWiMdHY3no5xLJTouLBW1YpdBk8KqPsyj+t NZsBXfLQ8uRISE2/5crCwsObQFO0WBIqVRepK8f7qPtNApGsg60wEo2KqOfOXqSU0U+n kbH9l1Bjq0FmNtkybCCJjIQwwkvD/tqy9NTaFclTEtPsKfBefI1jy/1oqN7XCVIH5bK8 9BFx/maIUFbEfBrOQIrzy9T00jZEKSg3ZlKPLo1KUsUybZYVN6jecAaW0rq+OYPpe95p EArQ== X-Received: by 10.52.16.40 with SMTP id c8mr16363776vdd.99.1360595440316; Mon, 11 Feb 2013 07:10:40 -0800 (PST) Received: from [143.48.11.9] (tango.cshl.edu. [143.48.11.9]) by mx.google.com with ESMTPS id d13sm59757424vdj.8.2013.02.11.07.10.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Feb 2013 07:10:39 -0800 (PST) Message-ID: <511909EE.5090807@gmail.com> Date: Mon, 11 Feb 2013 10:10:38 -0500 From: Assaf Gordon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 References: <20758.39068.809383.866253@freddi.uddeborg> <5116A2F3.2060503@draigBrady.com> In-Reply-To: <5116A2F3.2060503@draigBrady.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) P=E1draig Brady wrote, On 02/09/2013 02:26 PM: > On 02/09/2013 06:42 PM, G=F6ran Uddeborg wrote: >> I started the translation of coreutils 8.20-pre2 which just arrived >> via the Translation Project. I got a bit uncertain about messages >> like: >> >> msgid "" >> "simple_strtod_human:\n" >> " input string: '%s'\n" >> " locale decimal-point: '%s'\n" >> >> and >> >> msgid "double_to_human:\n" >> >> Is "simple_strtod_human" a name, or is it a string to be translated? >=20 > These are function names and not to be translated. > These are "developer debug" strings, which I'm tempted to remove entire= ly. > What do you think Assaf? >=20 Agreed, if 'numfmt' is behavior is correct, we can remove all the "dev_de= bug" related message.