Comment 3 for bug 693337

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi David,

The idea is about _refraining_ from showing all the locales, both in GDM and in language-selector's "Language" tab. (The tab in language-selector for other locale settings is the place for showing all the locales.) At the same time, the variants should be added to the GDM options as per bug 408474.

Right now I have four installed languages: English, Swedish, German and Catalan. While 'locale -a | grep \.utf8' lists 29 locales, running the lang-list.pl script gives me:

ca Catalan
ca_ES@valencia Catalan (Spain - Valencia)
en English
en_AU English (Australia)
en_CA English (Canada)
en_NZ English (New Zealand)
en_GB English (United Kingdom)
en_US English (United States)
de German
sv Swedish

These are some of my questions for the time being:

* Would this be a suitable approach for determining available languages
  for message translation?

* Is listing the /usr/share/locale-langpack directory a safe way to
  find available translations, or is there more into it?

* As regards languages with more than one translation: When the country
  is not specified, does it matter which of the locales that is
  assigned to the LC_MESSAGES environment variable? If it does, how do
  we determine the main dialect of respective language?

/ Gunnar