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

Re: Bug#271212: @euro support missing for Ireland



Quoting Steve Langasek (vorlon@debian.org):

> Using medium priority means that there is a reasonable default for the
> question.  You still need some mechanism to *identify* what the
> reasonable default is for each locale, which is obviously not going to
> be ll_CC in all cases; and once you have such a mechanism, I think the
> use case for making this configurable becomes quite narrow.


We already have that mechanism..:-)

The current way of choosing the locale is quite OK currently : 

At the end of languagechooser, locale==languagelist 2nd field and
fallbacklocale==3rd field, country=5th field, modifier is the modifier
from fallbacklocale.

At this step, locale may be unsupported (it is the country code for
multicountry languages).

After completing the country choice, the following logic happens:

language_country@modifier and language_country are successively
tested.

If one is supported:
  We check a special case : is neither language nor country were
  changed during countrychooser AND language_country is different
  from the locale set by languagechooser AND the locale set by
  countrychooser is type xx_YY, then we DO NOT use language_country
  but we revert to what languagechooser did set

  This wacky case is meant to supprot the Norwegian Bokmal case, where
  language=nb, country=NO BUT the needed locale is no_NO because of
  the locale transition.

  This may help supporting other types of transition


  In all other cases, the supported value is used

If none is supported (most often because the user went to the long
country list), then the fallback locale is used.

So, currently after this somewhat complicated thing,
debian-installer/locale always should have a valid locale and most
often the best appropriate.


 



Reply to: