[gnome-control-center] common: Add more debug to list-languages
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] common: Add more debug to list-languages
- Date: Tue, 21 Aug 2012 16:44:30 +0000 (UTC)
commit 44f742659e5d039327009364e6b53071bcbe8212
Author: Bastien Nocera <hadess hadess net>
Date: Tue Aug 21 15:23:43 2012 +0100
common: Add more debug to list-languages
panels/common/list-languages.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/panels/common/list-languages.c b/panels/common/list-languages.c
index 29ebc46..241d359 100644
--- a/panels/common/list-languages.c
+++ b/panels/common/list-languages.c
@@ -12,9 +12,11 @@ int main (int argc, char **argv)
if (argc > 1) {
guint i;
for (i = 1; i < argc; i++) {
- char *lang;
- lang = gdm_get_language_from_name (argv[i], NULL);
- g_print ("%s == %s\n", argv[i], lang);
+ char *lang, *norm;
+ norm = gdm_normalize_language_name (argv[i]);
+ lang = gdm_get_language_from_name (norm, NULL);
+ g_print ("%s (norm: %s) == %s\n", argv[i], norm, lang);
+ g_free (norm);
g_free (lang);
}
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]