unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Alan Third <alan@idiocy.org>
Cc: jean.christophe.helary@gmail.com, emacs-devel@gnu.org
Subject: Re: L10N & LC variables
Date: Sat, 27 May 2017 10:59:15 +0300	[thread overview]
Message-ID: <83lgpiivcc.fsf@gnu.org> (raw)
In-Reply-To: <20170527073359.GA67815@breton.holly.idiocy.org> (message from Alan Third on Sat, 27 May 2017 08:33:59 +0100)

> Date: Sat, 27 May 2017 08:33:59 +0100
> From: Alan Third <alan@idiocy.org>
> Cc: emacs-devel <emacs-devel@gnu.org>
> 
> LANG is used in set-locale-environment in mule-cmds.el, but I don’t
> know what is set using it.

The doc string of set-locale-environment says quite a lot about that:

  This sets the language environment, the coding system priority,
  the default input method and sometimes other things.

> I know almost nothing about locales in emacs.

They are mainly used for setting up the defaults for encoding and
decoding incoming/outgoing text outside of Emacs.

> The main motivation for setting LANG on macOS was so that external
> commands would be given the correct locale, eg. spell checkers.

Spell-checking uses this to tell the speller what dictionary to use.

> Would it be worth creating a function available from lisp that returns
> system locale information?

What information would that function return?  Does "C-h L" do what you
want?  If not, what is missing?

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.  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.  Also, the notion of
"current language" has implications elsewhere in Emacs, like in case
conversions.

We should handle these two classes of issues separately.



  reply	other threads:[~2017-05-27  7:59 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 [this message]
2017-05-27  9:51               ` Jean-Christophe Helary
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=83lgpiivcc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    --cc=jean.christophe.helary@gmail.com \
    /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).