From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics Date: Thu, 20 Aug 2015 13:23:36 -0700 Organization: UCLA Computer Science Department Message-ID: <55D63748.3010207@cs.ucla.edu> References: <55D1043C.3030909@yandex.ru> <55D15899.2070105@cs.ucla.edu> <20150817121513.GA2634@acm.fritz.box> <55D21191.8070202@cs.ucla.edu> <20150817173551.GB2634@acm.fritz.box> <55D29EA6.2020009@cs.ucla.edu> <20150818103921.GA2262@acm.fritz.box> <55D36132.1020900@cs.ucla.edu> <20150818171715.GD2262@acm.fritz.box> <55D3869E.30302@cs.ucla.edu> <20150818204211.GF2262@acm.fritz.box> <55D3A641.7040409@cs.ucla.edu> <87bne4fc7s.fsf@wanadoo.es> <55D3C28D.3000006@cs.ucla.edu> <85k2sqw04a.fsf@iznogoud.viz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440117387 3297 80.91.229.3 (21 Aug 2015 00:36:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2015 00:36:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 21 02:36:22 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZSaJh-0001Ms-Ca for ged-emacs-devel@m.gmane.org; Fri, 21 Aug 2015 02:36:21 +0200 Original-Received: from localhost ([::1]:36785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSWNo-000675-7b for ged-emacs-devel@m.gmane.org; Thu, 20 Aug 2015 16:24:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSWND-000622-TJ for emacs-devel@gnu.org; Thu, 20 Aug 2015 16:23:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSWNA-00078o-AF for emacs-devel@gnu.org; Thu, 20 Aug 2015 16:23:43 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSWNA-00078M-5c for emacs-devel@gnu.org; Thu, 20 Aug 2015 16:23:40 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 607DE160E9E for ; Thu, 20 Aug 2015 13:23:38 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Nzb9tKQeKNpD for ; Thu, 20 Aug 2015 13:23:37 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DCD23160E9F for ; Thu, 20 Aug 2015 13:23:36 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sVHiY-EK6nyC for ; Thu, 20 Aug 2015 13:23:36 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 99D93160E9E for ; Thu, 20 Aug 2015 13:23:36 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: <85k2sqw04a.fsf@iznogoud.viz> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188996 Archived-At: Wolfgang Jenkner wrote: > I'd think that "common modern practice" for GNU projects is described i= n > (info "(gettext) po/LINGUAS"). > > IIUC, the description there recommends that the usual "ugly" quotes > should be used in source files and translated at run time according to > the locale. gettext caters to C and that part of its manual makes sense for languages= like=20 C, because portable C programs can't easily put non-ASCII characters into= string=20 literals and C programmers don't have a practical alternative to putting = "ugly"=20 quotes of some sort into their string literals. This sort of uglificatio= n isn't=20 necessary for Emacs Lisp, though. If Emacs were to use gettext, presumably it would wrap every English-lang= uage=20 diagnostic in a call to gettext, even diagnostics that don't involve quot= es.=20 For example: (format (gettext "Buffer %S has a running process; kill it? ") (buffer-name (current-buffer))) (format (gettext "=E2=80=98add-to-list=E2=80=99 can't use var =E2=80=98= %s=E2=80=99") sym) ... We'd also need ask the Translation Project to maintain a set of translati= ons for=20 all the Emacs diagnostics. This would work regardless of the quoting sty= le used=20 in the source code, and would be a good project to do, if someone wanted = to do=20 it. It'd be a much bigger project than fixing quoting, though, as the se= t of=20 changes involved to Emacs would be more complicated than the above simple= =20 examples suggest.