[gnome-disk-utility] Initialize gettext support so i18n actually works
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Initialize gettext support so i18n actually works
- Date: Tue, 6 Mar 2012 16:05:43 +0000 (UTC)
commit a6ba6833065608f93c6cd63399915181a47412b9
Author: David Zeuthen <davidz redhat com>
Date: Tue Mar 6 11:05:26 2012 -0500
Initialize gettext support so i18n actually works
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gducreatefilesystemwidget.c | 2 +-
src/palimpsest/gduestimator.c | 2 +-
src/palimpsest/gdupasswordstrengthwidget.c | 2 +-
src/palimpsest/gduvolumegrid.c | 2 +-
src/palimpsest/main.c | 5 +++++
5 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/palimpsest/gducreatefilesystemwidget.c b/src/palimpsest/gducreatefilesystemwidget.c
index 9d160b2..523a70e 100644
--- a/src/palimpsest/gducreatefilesystemwidget.c
+++ b/src/palimpsest/gducreatefilesystemwidget.c
@@ -21,7 +21,7 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
+#include <glib/gi18n.h>
#include <math.h>
#include <gdk/gdkkeysyms.h>
diff --git a/src/palimpsest/gduestimator.c b/src/palimpsest/gduestimator.c
index 824bf75..f1e7c01 100644
--- a/src/palimpsest/gduestimator.c
+++ b/src/palimpsest/gduestimator.c
@@ -21,7 +21,7 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
+#include <glib/gi18n.h>
#include <math.h>
#include <gdk/gdkkeysyms.h>
diff --git a/src/palimpsest/gdupasswordstrengthwidget.c b/src/palimpsest/gdupasswordstrengthwidget.c
index a452e3c..f56a593 100644
--- a/src/palimpsest/gdupasswordstrengthwidget.c
+++ b/src/palimpsest/gdupasswordstrengthwidget.c
@@ -21,7 +21,7 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
+#include <glib/gi18n.h>
#include <math.h>
#include <gdk/gdkkeysyms.h>
diff --git a/src/palimpsest/gduvolumegrid.c b/src/palimpsest/gduvolumegrid.c
index 4c266ef..d31381c 100644
--- a/src/palimpsest/gduvolumegrid.c
+++ b/src/palimpsest/gduvolumegrid.c
@@ -21,7 +21,7 @@
*/
#include "config.h"
-#include <glib/gi18n-lib.h>
+#include <glib/gi18n.h>
#include <math.h>
#include <gdk/gdkkeysyms.h>
diff --git a/src/palimpsest/main.c b/src/palimpsest/main.c
index e5f3a72..39dbd43 100644
--- a/src/palimpsest/main.c
+++ b/src/palimpsest/main.c
@@ -31,6 +31,11 @@ main (int argc, char *argv[])
GApplication *app;
gint status;
+ /* Initialize gettext support */
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
app = gdu_application_new ();
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]