[gnome-control-center] 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] region: Normalize and casefold the untranslated language name
- Date: Thu, 14 Mar 2013 16:32:34 +0000 (UTC)
commit b405db00687beb32c4409ee34d94bf4118ce105e
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 327659e..ef35c1e 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]