[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-locale-environement: strange default detection
From: |
Jan Djärv |
Subject: |
Re: set-locale-environement: strange default detection |
Date: |
Wed, 18 Jul 2007 13:04:42 +0200 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20070604) |
David Kastrup skrev:
> Sascha Wilde <address@hidden> writes:
>
>> David Kastrup <address@hidden> wrote:
>>> Sascha Wilde <address@hidden> writes:
>>>> a friend of mine (unfortunately a vim user, but a nice guy otherwise),
>>>> tried emacs on Gnu/Linux and was surprised that `C-h t' presented him
>>>> the German version of the tutorial.
>> [...]
>>> The problem is that we don't have finegrained support. For the
>>> purpose of talking to the user, LC_MESSAGES is relevant. But Emacs so
>>> rarely has the opportunity to talk anything but English to the user
>>> that we simply have no reasonable interface into this for now.
>> So maybe we should check for LANG, LC_ALL and maybe LC_MESSAGES in
>> tutorial.el itself.
>
> Possibly. I am not sure whether environment variables tell the whole
> story, and in a readable way (there are locale system calls, too), but
> they would probably cover 90% of the cases.
>
The locale man page says the order should be LC_ALL, LC_MESSAGES, LANG:
1. If there is a non-null environment variable LC_ALL, the value of
LC_ALL is used.
2. If an environment variable with the same name as one of the cat‐
egories above exists and is non-null, its value is used for that
category.
3. If there is a non-null environment variable LANG, the value of
LANG is used.
Jan D.
- set-locale-environement: strange default detection, Sascha Wilde, 2007/07/18
- Re: set-locale-environement: strange default detection, Reiner Steib, 2007/07/18
- Re: set-locale-environement: strange default detection, David Kastrup, 2007/07/18
- Re: set-locale-environement: strange default detection, Sascha Wilde, 2007/07/19
- Re: set-locale-environement: strange default detection, David Kastrup, 2007/07/19
- Better language detection for tutorial (was: set-locale-environement: strange default detection), Sascha Wilde, 2007/07/22
- Re: Better language detection for tutorial (was: set-locale-environement: strange default detection), Andreas Schwab, 2007/07/22
- Re: Better language detection for tutorial, David Kastrup, 2007/07/22
- Re: Better language detection for tutorial, Andreas Schwab, 2007/07/22
- Re: Better language detection for tutorial, Sascha Wilde, 2007/07/22