[gnome-settings-daemon/wip/xsettings-manager] xsettings: i18nify the test-xsettings program
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/xsettings-manager] xsettings: i18nify the test-xsettings program
- Date: Fri, 9 Mar 2012 17:41:50 +0000 (UTC)
commit 1087310a6287b72340cc7133ffdbe211572eb2f3
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Mar 9 12:12:19 2012 -0500
xsettings: i18nify the test-xsettings program
plugins/xsettings/test-xsettings.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/xsettings/test-xsettings.c b/plugins/xsettings/test-xsettings.c
index a2b9893..691f028 100644
--- a/plugins/xsettings/test-xsettings.c
+++ b/plugins/xsettings/test-xsettings.c
@@ -1,4 +1,7 @@
+#include "config.h"
+
#include "gsd-xsettings-manager.h"
+#include <glib/gi18n.h>
#include <gtk/gtk.h>
int
@@ -7,6 +10,10 @@ main (void)
GnomeXSettingsManager *manager;
GError *error = NULL;
+ bindtextdomain (GETTEXT_PACKAGE, GNOME_SETTINGS_LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
gtk_init (NULL, NULL);
manager = gnome_xsettings_manager_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]