From: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: L10N & LC variables
Date: Fri, 26 May 2017 23:41:17 +0900 [thread overview]
Message-ID: <DF383ABC-BD9E-42F7-BF0C-47B320BE614B@gmail.com> (raw)
In-Reply-To: 2F438BC0-4073-4D29-8504-1909EE1762DD@gmail.com
The first think we need for l10n, is have emacs be aware of the linguistic environment in which it is running (or eventually the language environment that it uses internally, which is much easier). I am not using gnu/linux so I am not sure how to do that there (although it does look relatively straightforward).
On Mac, the locale variables don't seem to be defined the way they are on gnu/linux. Here I only have "LC_CTYPE=UTF-8" and no other LC variable. I've checked that yesterday and it looks like there is a system "AppleLocale" variable that supersedes the LC variables and that returns the language selected in the global system preferences. There is also an "AppleLanguages" that returns *all* the languages added by the user in that same global system preference.
Here is what I get for my system:
> env | grep LC_
LC_CTYPE=UTF-8
> defaults read -g AppleLocale
en_JP
> defaults read -g AppleLanguages
(
"en-JP",
"fr-JP",
"ja-JP"
)
I've checked whether that variable was used in Emacs and I found reference to it in Changelog.12.
> 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
>
> * international/mule-cmds.el (set-locale-environment): On Mac OS,
> use preferences AppleLocale and AppleLanguages, and variable
> mac-system-locale for default locale. On Mac OS Classic, use
> mac-system-coding-system for default coding systems.
But there is no further references to mac-system-locale in the other changelogs and it looks like mule-cmds.el does not define it and there does not seem to be any place in the Emacs code that refers to AppleLocale or AppleLanguages anymore.
So, is that something that's been removed?
Jean-Christophe
next parent reply other threads:[~2017-05-26 14:41 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 ` Jean-Christophe Helary [this message]
2017-05-26 14:53 ` L10N & LC variables 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
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=DF383ABC-BD9E-42F7-BF0C-47B320BE614B@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).