[gnome-control-center/gnome-3-8] region: Normalize and casefold the untranslated language name
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] region: Normalize and casefold the untranslated language name
- Date: Thu, 14 Mar 2013 16:30:52 +0000 (UTC)
commit 575e307195d81c63cd8500a719733a96a8e5d1cf
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Mar 7 14:15:40 2013 +0100
region: Normalize and casefold the untranslated language name
So that it actually matches with the normalized and casefolded filter
words.
https://bugzilla.gnome.org/show_bug.cgi?id=695357
panels/region/cc-input-chooser.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index 33d3a45..7b83bca 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -952,6 +952,7 @@ get_locale_infos (GtkWidget *chooser)
{
gchar *lang_code, *country_code;
gchar *simple_locale;
+ gchar *tmp;
const gchar *type = NULL;
const gchar *id = NULL;
@@ -971,7 +972,9 @@ get_locale_infos (GtkWidget *chooser)
info->id = simple_locale; /* Take ownership */
info->name = gnome_get_language_from_locale (simple_locale, NULL);
info->unaccented_name = cc_util_normalize_casefold_and_unaccent (info->name);
- info->untranslated_name = gnome_get_language_from_locale (simple_locale, "C");
+ tmp = gnome_get_language_from_locale (simple_locale, "C");
+ info->untranslated_name = cc_util_normalize_casefold_and_unaccent (tmp);
+ g_free (tmp);
g_hash_table_replace (priv->locales, simple_locale, info);
add_locale_to_table (priv->locales_by_language, lang_code, info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]