[gnome-control-center] common: Look harder for some languages
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] common: Look harder for some languages
- Date: Thu, 8 Mar 2012 12:58:23 +0000 (UTC)
commit 94555eadc83c0dc75aa2af6f3b2ad1055b8a71b7
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 8 13:53:20 2012 +0100
common: Look harder for some languages
It's fairly common to have de rather than de_DE translations, ditto
for French and Spanish that share most of the vocabulary.
panels/common/cc-common-language.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/panels/common/cc-common-language.c b/panels/common/cc-common-language.c
index 0518f3a..17db281 100644
--- a/panels/common/cc-common-language.c
+++ b/panels/common/cc-common-language.c
@@ -513,11 +513,14 @@ cc_common_language_get_initial_languages (void)
g_hash_table_insert (ht, g_strdup ("en_US.utf8"), g_strdup (_("English")));
if (gdm_language_has_translations ("en_GB"))
g_hash_table_insert (ht, g_strdup ("en_GB.utf8"), g_strdup (_("British English")));
- if (gdm_language_has_translations ("de_DE"))
+ if (gdm_language_has_translations ("de") ||
+ gdm_language_has_translations ("de_DE"))
g_hash_table_insert (ht, g_strdup ("de_DE.utf8"), g_strdup (_("German")));
- if (gdm_language_has_translations ("fr_FR"))
+ if (gdm_language_has_translations ("fr") ||
+ gdm_language_has_translations ("fr_FR"))
g_hash_table_insert (ht, g_strdup ("fr_FR.utf8"), g_strdup (_("French")));
- if (gdm_language_has_translations ("es_ES"))
+ if (gdm_language_has_translations ("es") ||
+ gdm_language_has_translations ("es_ES"))
g_hash_table_insert (ht, g_strdup ("es_ES.utf8"), g_strdup (_("Spanish")));
if (gdm_language_has_translations ("zh_CN"))
g_hash_table_insert (ht, g_strdup ("zh_CN.utf8"), g_strdup (_("Chinese (simplified)")));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]