second locale language ?
havner
havner at smtp.kamp.pl
Thu Oct 7 03:49:35 CEST 2004
On Thu, Oct 07, 2004 at 03:36:42AM +0200, havner wrote:
> When developing the message translation functions it was felt that
> the functionality provided by the variables above is not sufficient.
> For example, it should be possible to specify more than one locale name.
> Take a Swedish user who better speaks German than English, and a program
> whose messages are output in English by default. It should be possible
> to specify that the first choice of language is Swedish, the second
> German, and if this also fails to use English. This is possible with
> the variable `LANGUAGE'. For further description of this GNU extension
> see *Note Using gettextized software::.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Everything is described there although after short try i couldn't make
> it work.
>
> f.e. mc has both, es and ca
> aumix has only es
>
> $ LANGUAGE=ca_ES LC_ALL=es_ES mc
> and i get ca, that's ok
>
> $ LANGUAGE=ca_ES LC_ALL=es_ES aumix
> i get english
>
> Probably I make some mistake, but as you can see (according to this
> description) it should be possible.
Got it:
LANG=ca_ES LANGUAGE="ca:es" mc
I get ca
LANG=ca_ES LANGUAGE="ca:es" aumix
I get es
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.
--
Regards Havner {jid,mail}:havner(at)pld-linux.org
PLD developer && PLD 2.0 release manager http://www.pld-linux.org
PLD LiveCD author http://livecd.pld-linux.org
"Quis custodiet ipsos custodes?"
More information about the pld-devel-en
mailing list