Commit graph

9 commits

Author SHA1 Message Date
Bastien Nocera
e3c3380fea common: Fix crashes for incomplete locales
By ignoring locales without language codes, or territory.

https://bugzilla.gnome.org/show_bug.cgi?id=658551
2012-03-05 13:55:04 +00:00
Bastien Nocera
1a2845dfa4 common: Always collect locales from the directory
Even if those locales do not exist in the locale-archive file,
their definition could be in the locale directories. The glibc
will look in directories as well when the locale-archive doesn't
contain it, so both behaviours match.

See also:
http://repo.or.cz/w/glibc.git/blob/HEAD:/locale/findlocale.c#l62

https://bugzilla.gnome.org/show_bug.cgi?id=660725
2011-10-11 12:30:54 +01:00
Rodrigo Moya
3c34c0f029 region: Only show locales for languages that have translations 2011-10-11 13:24:25 +02:00
Matthias Clasen
3f122250e1 common: Add api for region names
Similar to how we format language names, add a variant that
emphasizes the region part of a locale. We show the language
in parentheses as discriminator only where needed.
2011-08-22 14:29:54 -04:00
Matthias Clasen
ce0ab7e2f4 common: Simplify language display
When there is only one locale for this language, omit the territory
and codeset from the descriptive name. This makes the parenthesized
part appear a bit more like a discriminator instead of a wierd
formatting convention.
2011-08-22 14:29:50 -04:00
Bastien Nocera
ea686a2355 common: Add some more debug when listing languages 2011-08-16 18:08:05 +01:00
Bastien Nocera
8ca85762de common: Add safeguards for empty language
NULL or empty languages aren't useful.
2011-07-07 16:34:08 +01:00
Bastien Nocera
40e2c9eed4 common: Load language names for locales with 3 letters
If software with "Chhattisgarhi" translations was loaded (such
as k3b), we would fail to load the language name for it, as we
were not parsing the ISO-639-3 database.

https://bugzilla.gnome.org/show_bug.cgi?id=641373
2011-02-03 19:11:02 +00:00
Bastien Nocera
930540ea28 user-accounts: Move gdm-languages to common/
Move gdm-languages and some of the helper functions to common/,
so that we can share it with the region panel.
2011-01-24 18:10:10 +00:00
Renamed from panels/user-accounts/gdm-languages.c (Browse further)