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: L10N & LC variables Date: Sat, 27 May 2017 18:51:39 +0900 Message-ID: <4CABB03B-D6D2-405B-B0AE-86632FF26C62@gmail.com> References: <2F438BC0-4073-4D29-8504-1909EE1762DD@gmail.com> <58516957-5971-7a1f-a4e2-d276f2881046@cs.ucla.edu> <20170527003808.GA67653@breton.holly.idiocy.org> <20170527073359.GA67815@breton.holly.idiocy.org> <83lgpiivcc.fsf@gnu.org> 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 1495878715 3629 195.159.176.226 (27 May 2017 09:51:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 May 2017 09:51:55 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 27 11:51:52 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 1dEYNy-0000m9-SJ for ged-emacs-devel@m.gmane.org; Sat, 27 May 2017 11:51:50 +0200 Original-Received: from localhost ([::1]:40075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEYO2-0003pK-QD for ged-emacs-devel@m.gmane.org; Sat, 27 May 2017 05:51:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEYNw-0003p3-TC for emacs-devel@gnu.org; Sat, 27 May 2017 05:51:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEYNs-0003kx-25 for emacs-devel@gnu.org; Sat, 27 May 2017 05:51:48 -0400 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:35624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEYNr-0003kr-SG for emacs-devel@gnu.org; Sat, 27 May 2017 05:51:44 -0400 Original-Received: by mail-pf0-x235.google.com with SMTP id n23so27710814pfb.2 for ; Sat, 27 May 2017 02:51:43 -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=8YVXRrkjkEx00nK3iRXYu7x5Tse6b387fvurmLrGW/c=; b=O1fbMSRwzlLF1VIgpoxQsV0vxLCE6mOEqj1lFD9tHanSS+wl6n8WhIiqTc2XI8XWbw jAxmSPoD6ZUrKn59c94d2eZZ9GS+ukoEIRA9+lfTNYr1yRYr9++pziMxnJI58hzXFlSm dGOSHNwqiCOtT+gD9v7Rv3IfdiBTiwdQ1/PIRGHd95I4MDlrvDkDKFxvnOY6S/6JrLOS 4YiD2Q9gH268tqCNw5xGiCYyK5pWm/BE+pS258ms/nsy9QNxE9Qvq9M0CuRRGDkz2Pel JTBtAmEZpUHcGqr2QXlN+kkKv96ig0W8rFvocQk9vLRAkwvXnlBOh2eTx5w+8zaOVRw1 S9Iw== 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=8YVXRrkjkEx00nK3iRXYu7x5Tse6b387fvurmLrGW/c=; b=MvZj/X4k0oLk3CBql6+4DLg7dqjA6aGi+yI0qM7DMc0poURwSy252wwM0VLIHiNkbf CuVAoWwh5E/hYagOPVeggxQfuzNOkOs2Ux6aBmkZ2iEOUtXl4YuPl/jC44fM/P2qXN5w AGq8l1P4v4hz9Myzf012hn0pbP5ra7C7hD+slEnx8Fq4yAScEVGFDQ4oEai3MW0sli5c aQwXOXGK4dW1xqZTBv5TsWE85JUUSvIe7Qx/JamRB+P4OD8ddNK73lsgVMUfWTXoIsVB DE6d1HKA+eEgEe1zIIDBFCDP3L19HskSp4xiM00BoJxWEhRPLGnLbLPiEVd2uhIZWD2J TJ6A== X-Gm-Message-State: AODbwcBoSLuqh/pFbi3PgSn7bfNBa6yNnVHICoPheseM0jn8mT1xipKd /477iSApTrWyVS/fU1Q= X-Received: by 10.99.127.78 with SMTP id p14mr7556804pgn.124.1495878702328; Sat, 27 May 2017 02:51:42 -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 j191sm6074735pgc.53.2017.05.27.02.51.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 May 2017 02:51:41 -0700 (PDT) In-Reply-To: <83lgpiivcc.fsf@gnu.org> 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::235 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:215259 Archived-At: > On 27 mai 2017, at 16:59, Eli Zaretskii wrote: >=20 > What information would that function return? Its definition looks like if returns the user set locale. I don't know = how to check what it returns. > Does "C-h L" do what you want? No. C-h L returns what is set within Emacs (English in my case), which = as I mentioned earlier is disconnected from what the OS provides = (currently French as I test this call). > If not, what is missing? And Emacs lisp function that returns the value of what ns_init_locale = returns. > Anyway, I think we should separate the issues related to translation > infrastructure from issues related to setting the language for > fetching strings translated into that language. Absolutely. I started the thread because I wanted to set language = strings based on the user set language preferences but noticed that they = were not accessed by Emacs on a Mac. Once I find a solution for that, I = think we can move on since I guess it is trivial to access such data on = gnu/linux (and I have no way to check that on Windows). > They are two > orthogonal problems; in particular, I can easily envision an Emacs > user wishing to set a language that has nothing to do with the user's > locale, for example to test some translations. That's also a possibility I consider. We need to make sure that the = Emacs hard coded default value is overridden by the OS provided value at = first install, and that the user can easily set a language of her = choice. But as you say it is not directly related to l10n. Jean-Christophe=20=