[gnome-desktop/wip/locale-info: 2/10] gnome-xkb-info: Use the correct methods to get language/country
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop/wip/locale-info: 2/10] gnome-xkb-info: Use the correct methods to get language/country
- Date: Tue, 5 Feb 2013 00:54:37 +0000 (UTC)
commit 6d7acf2da89b63df037a87fbbbe768a6eaf14cb4
Author: Rui Matos <tiagomatos gmail com>
Date: Sat Jan 26 17:43:57 2013 +0100
gnome-xkb-info: Use the correct methods to get language/country
gnome_get_[language|region]_from_name() wants a locale string, not the
ISO codes in isolation. Since that's what we have when parsing the XML
data we must instead use these new methods that accept the ISO codes
directly.
https://bugzilla.gnome.org/show_bug.cgi?id=692700
libgnome-desktop/gnome-xkb-info.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgnome-desktop/gnome-xkb-info.c b/libgnome-desktop/gnome-xkb-info.c
index aa3105e..9e6e377 100644
--- a/libgnome-desktop/gnome-xkb-info.c
+++ b/libgnome-desktop/gnome-xkb-info.c
@@ -442,7 +442,7 @@ parse_end_element (GMarkupParseContext *context,
return;
}
- language = gnome_get_language_from_name (priv->current_parser_iso639Id, NULL);
+ language = gnome_get_language_from_code (priv->current_parser_iso639Id, NULL);
if (language)
{
if (priv->current_parser_variant)
@@ -466,7 +466,7 @@ parse_end_element (GMarkupParseContext *context,
return;
}
- country = gnome_get_region_from_name (priv->current_parser_iso3166Id, NULL);
+ country = gnome_get_country_from_code (priv->current_parser_iso3166Id, NULL);
if (country)
{
if (priv->current_parser_variant)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]