[gnome-control-center] wacom: Add i18n support to calibrator test prog
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Add i18n support to calibrator test prog
- Date: Wed, 11 Jan 2012 16:24:49 +0000 (UTC)
commit 0cd211cfdae483990dc24cd76c2083fc96905b85
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 11 16:22:24 2012 +0000
wacom: Add i18n support to calibrator test prog
panels/wacom/calibrator/main.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/calibrator/main.c b/panels/wacom/calibrator/main.c
index cae997a..4b752c7 100644
--- a/panels/wacom/calibrator/main.c
+++ b/panels/wacom/calibrator/main.c
@@ -21,10 +21,13 @@
* THE SOFTWARE.
*/
+#include "config.h"
+
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <dirent.h>
+#include <glib/gi18n.h>
#include <X11/extensions/XInput.h>
@@ -380,6 +383,10 @@ int main(int argc, char** argv)
struct Calib* calibrator = main_common(argc, argv);
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
/* GTK setup */
gtk_init(&argc, &argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]