Comment 11 for bug 550222

Revision history for this message
In , David Planella (dpm) wrote :

(In reply to comment #7)
> I've tested a minimalistic approach to support LANGUAGE.

That's great, thanks for working on that!

> The biggest issue with that is that multiple definitions are not
> really supported.

Are you referring here to the behaviour of supporting multiple language fallbacks (LANGUAGE=de:es)?

It would be nice to implement this, but having support for the main locale but be a good start already.

> The other thing is that I reuse/override LC_MESSAGES internally but I
> understand that this is actually the result anyway.

If I understand correctly that you are referring to LANGUAGE overriding not only LANG, but also the LC_xxx categories, that's fine. According to the gettext documentation, the order of preference (unless LC_ALL or LANG is specified as "C") is:

1. LANGUAGE
2. LC_ALL
3. LC_xxx, according to selected locale category: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES, ...
4. LANG