Re: Translations and locale woes in general
- From: Ulrich Drepper <drepper cygnus com>
- To: Anders Wegge Jakobsen <wegge wegge dk>
- Cc: gnome-list gnome org
- Subject: Re: Translations and locale woes in general
- Date: 21 Apr 1998 18:29:10 -0700
Anders Wegge Jakobsen <wegge@wegge.dk> writes:
> 1) Try each part of $LANGUAGE, ie in my case ('da:en'):
>
> /usr/share/gnome/help/generic-gnome-app/da/topic.dat
> /usr/share/gnome/help/generic-gnome-app/en/topic.dat
>
> 2) If that doesn't work, try $LANG, ie in my case ('da'):
>
> /usr/share/gnome/help/generic-gnome-app/da/topic.dat
This is generally no good idea. I've not implemented this in gettext
since all standards say that exactly one envvar is used. I.e., LANG
will only be used if LANGUAGE is not available.
Plus, you haven't mentioned LCALL and LC_MESSAGES. The complete list
of envvars gettext examines is:
LANGUAGE
LC_ALL
LC_MESSAGE
LANG
in this order. LANGUAGE is a GNU extension but the rest is standard.
> I'll probably go ahead and implement this myself, unless somebody
> else is working on it, but I'm not entirely sure where to
> start. gnome-libs/libgnome/gnome-help.c seem to be a likely place, but
> before I start hacking away, I'd better ask if anything else than
> on-line help is dependant on gnome_help_file_path()?
Take a look at the gettext code which also implements the cascading
lookup.
-- Uli
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]