bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fallback language for internationalized string


From: Eric Blake
Subject: Re: Fallback language for internationalized string
Date: Wed, 27 Jul 2011 09:13:10 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.11

On 07/27/2011 09:05 AM, Andreas Schwab wrote:
Anders Sundman<anders@4zm.org>  writes:

Is it possible to get bash to use a fallback language for showing
localized strings if no translation exists for the current language?
Instead of using the 'raw' msgid that is.

The msgid is supossed to be the fallback.  That's how gettext works.

Not entirely. See the glibc documentation for the LANGUAGE environment variable.

   While for the `LC_xxx' variables the value should consist of exactly
one specification of a locale the `LANGUAGE' variable's value can
consist of a colon separated list of locale names.  The attentive
reader will realize that this is the way we manage to implement one of
our additional demands above: we want to be able to specify an ordered
list of language.

--
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]