From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: i18n/l10n summary Date: Thu, 1 Jun 2017 07:29:02 +0900 Message-ID: <62AAA6AE-1E20-4606-BE10-6BA26FE3E221@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1496269782 14807 195.159.176.226 (31 May 2017 22:29:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 May 2017 22:29:42 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 01 00:29:39 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGC7W-0003aE-Id for ged-emacs-devel@m.gmane.org; Thu, 01 Jun 2017 00:29:38 +0200 Original-Received: from localhost ([::1]:34184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGC7b-0005eR-Sx for ged-emacs-devel@m.gmane.org; Wed, 31 May 2017 18:29:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGC75-0005eL-OB for emacs-devel@gnu.org; Wed, 31 May 2017 18:29:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGC70-0002b3-R9 for emacs-devel@gnu.org; Wed, 31 May 2017 18:29:11 -0400 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:36712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGC70-0002ae-Jq for emacs-devel@gnu.org; Wed, 31 May 2017 18:29:06 -0400 Original-Received: by mail-pf0-x22d.google.com with SMTP id m17so19372484pfg.3 for ; Wed, 31 May 2017 15:29:06 -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=EIil8a6AiHN78GmlKLs/kuo7WHRRp2nIokIzHkQ0tWM=; b=mdcaqdGjwQcfRmbNNKiBbdeKKMMQB5fbl6pLsyPNzO27+h9WsEntU2JeYmmSvw+GYp Oe0vzixnDEet9EloFwhDdW9urBOkG1Un60OGItwfQKxhE8Re+y1pw0VOAN8ZpRPfG06V ltgd/tU/M9rvV781QFLEmZaNJNiC8brXbUlC2vW+cmSPCXhFn1jKyoQxXXmtq60Wuz15 v9UUziIVSk+bR1cFqYD5d+b1/izCc7wzG1Hkvu+0AGWmlexxPbuiYULrE2PCPb5/LiaP rZOZZkmH02kAVs+ZWoC0dNKTpysTgfn94em3pwE+czITH1hNOWwEWimSrkGGhqiysgxj H0aQ== 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=EIil8a6AiHN78GmlKLs/kuo7WHRRp2nIokIzHkQ0tWM=; b=oQzANnV2VtRWUfgSCmUXePvdRtqX9CCTbT+lz+4I3cZxYLXbjX2hu/KWuQgLBRyDlO R93hKMfpmmMT9uJ12NL7nJdnUYI3nK1hgX2uMIE5clTCsKK4BIVjcCgEmSTt6EOYfqt4 1C1WlaQUbtvLtMZAGQIZksbk+Pf4gzdPEGJ8xOCi/Hjqmm3NGuACi7rwaOjSv4lx472c sFOoAGwdkzmin+olUcuNg6GFHOcY92QdH8HxeY2nXx7bzULPgpqnECzXUmCEy+fnQ07t w2IwkTaZ0vnQ1YEOJotCQv8F6T7FG4K95cK+yYBvg2NZviYfw7LkkGYlM5U7X3zenAb9 P8+g== X-Gm-Message-State: AODbwcAoo0WBYUpT4Ko9yXqipYrBOJejces+xldw049Q6yvkDqGhzEU9 xIwR2DlNp7qYwDi1stA= X-Received: by 10.99.176.9 with SMTP id h9mr35674941pgf.160.1496269745576; Wed, 31 May 2017 15:29:05 -0700 (PDT) Original-Received: from [192.168.24.63] (pl25298.ag0304.nttpc.ne.jp. [133.232.153.210]) by smtp.gmail.com with ESMTPSA id 64sm29884053pfi.111.2017.05.31.15.29.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 May 2017 15:29:04 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22d 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:215378 Archived-At: > On Jun 1, 2017, at 7:18, Philipp Stephani = wrote: >=20 >=20 >> The discussion so far seems to point at modifying 'message' and the = likes so that developers don't have to bother with any l10n mechanism on = their part (besides for writing clean strings). >>=20 >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >> On May 27, 2017, at 10:52, Jean-Christophe Helary = wrote: >>=20 >>> My very uninformed idea is that we need an independent function that = handles the preferred language check and the catalog parsing based on a = key, and all the string displaying functions (message etc) would be = redefined to call that function when a non default preferred langage = (currently English) is detected. >>=20 >> On May 27, 2017, at 16:43, Eli Zaretskii wrote: >>=20 >>> Yes but from what I've seen in package/el, a lot of translatable = texts are not displayed with "message". Some >>> use "error", some use other mechanisms. >>=20 >> Internally, they all boil down to a small set of C functions, which = is >> where we should make these changes. >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>=20 >> Since it's C, I'm not going to be able to contribute to that before I = understand the language, and the function definitions. I guess it's time = I open that K&R that's been on my shelves forever... >=20 > One small aspect would be to implement field numbers for `format' so = that argument indices can be explicitly specified. That is probably = quite important because the word order is different between languages, = but it's also useful in other situations (e.g. when repeating an = argument). I've implemented this in the attached patch. That's really not a *small* aspect. Thank you for thinking about that. = I'm in no position to review your work but I suppose others will. Jean-Christophe=