unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: L10N & LC variables
Date: Sat, 27 May 2017 18:51:39 +0900	[thread overview]
Message-ID: <4CABB03B-D6D2-405B-B0AE-86632FF26C62@gmail.com> (raw)
In-Reply-To: <83lgpiivcc.fsf@gnu.org>


> On 27 mai 2017, at 16:59, Eli Zaretskii <eliz@gnu.org> wrote:
> 
> 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 


  reply	other threads:[~2017-05-27  9:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2F438BC0-4073-4D29-8504-1909EE1762DD@gmail.com>
2017-05-26 14:41 ` L10N & LC variables Jean-Christophe Helary
2017-05-26 14:53   ` Eli Zaretskii
2017-05-26 15:10     ` Jean-Christophe Helary
2017-05-26 15:20       ` Eli Zaretskii
2017-05-26 15:54         ` Jean-Christophe Helary
2017-05-26 17:39           ` Eli Zaretskii
2017-05-26 23:22             ` Jean-Christophe Helary
2017-05-26 18:42   ` Paul Eggert
2017-05-26 23:13     ` Jean-Christophe Helary
2017-05-27  0:38       ` Alan Third
2017-05-27  0:54         ` Jean-Christophe Helary
2017-05-27  7:33           ` Alan Third
2017-05-27  7:59             ` Eli Zaretskii
2017-05-27  9:51               ` Jean-Christophe Helary [this message]
2017-05-27  0:34     ` Jean-Christophe Helary
2017-05-27  5:25   ` Anders Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CABB03B-D6D2-405B-B0AE-86632FF26C62@gmail.com \
    --to=jean.christophe.helary@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).