From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs i18n Date: Wed, 27 Mar 2019 05:43:22 +0200 Message-ID: <83ftr9kmn9.fsf@gnu.org> 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> <87r2azq478.fsf@mail.linkov.net> <83o963s4gx.fsf@gnu.org> <87va09ckym.fsf@mail.linkov.net> <83sgvdndt0.fsf@gnu.org> <8736ncgcnm.fsf@mail.linkov.net> <5F95E50C-2A55-4ED2-A82B-86FAAFC526ED@gmail.com> <87ef6uod20.fsf@mail.linkov.net> <831s2tmx97.fsf@gnu.org> <2440fc3c-d6ff-7354-ffa1-16b6e4ca8f7a@cs.ucla.edu> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="110251"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org, brandelune@gmail.com, juri@linkov.net To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 27 04:43:29 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 1h8zTM-000SZ3-Lq for ged-emacs-devel@m.gmane.org; Wed, 27 Mar 2019 04:43:28 +0100 Original-Received: from localhost ([127.0.0.1]:41412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8zTL-0001vM-LC for ged-emacs-devel@m.gmane.org; Tue, 26 Mar 2019 23:43:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8zT9-0001th-26 for emacs-devel@gnu.org; Tue, 26 Mar 2019 23:43:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8zT8-0006W3-13; Tue, 26 Mar 2019 23:43:14 -0400 Original-Received: from [176.228.60.248] (port=2085 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h8zT7-0001u3-3A; Tue, 26 Mar 2019 23:43:13 -0400 In-reply-to: <2440fc3c-d6ff-7354-ffa1-16b6e4ca8f7a@cs.ucla.edu> (message from Paul Eggert on Tue, 26 Mar 2019 15:35:22 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:234760 Archived-At: > Cc: juri@linkov.net, brandelune@gmail.com, emacs-devel@gnu.org > From: Paul Eggert > Date: Tue, 26 Mar 2019 15:35:22 -0700 > > > Do we have any reasons not to follow the CLISP example of factoring > > these issues? > > That's the first I've heard that CLISP does gettext. I learned that from post by Bruno here up-thread. > I looked into it, and it's a reasonably simple binding, which means > that the language is part of the global state (Emacs would not > easily be multilingual) We could offer the language as another optional argument. I'm not sure we need to allow control of the CATEGORY (for choosing the LC_* category), so we could replace that with the language. Or we could keep CATEGORY for compatibility and just add LANGUAGE. > and that each package can have its own catalog and can specify that > catalog as a trailing argument to gettext (presumably the default > catalog would be for Emacs core). This should be good enough, though > it will be a bit of a hassle for non-core code to keep track of the > catalog. If we want some automatic way of changing the domain when a function from a package is called, we need to develop the infrastructure for that. But that could wait for later, I think.