[gnome-control-center] common: Add i18n support to language test app
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] common: Add i18n support to language test app
- Date: Sun, 30 Sep 2012 03:43:22 +0000 (UTC)
commit fbddd14a454cebfff6c2203abb0715b31d8ad2d1
Author: Bastien Nocera <hadess hadess net>
Date: Sun Sep 30 05:39:08 2012 +0200
common: Add i18n support to language test app
panels/common/list-languages.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/common/list-languages.c b/panels/common/list-languages.c
index 241d359..6562327 100644
--- a/panels/common/list-languages.c
+++ b/panels/common/list-languages.c
@@ -1,4 +1,7 @@
+#include "config.h"
+
#include <glib.h>
+#include <glib/gi18n.h>
#include <glib-object.h>
#include "gdm-languages.h"
@@ -7,6 +10,9 @@ int main (int argc, char **argv)
char **langs;
guint i;
+ setlocale (LC_ALL, NULL);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
g_type_init ();
if (argc > 1) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]