[gedit/wip/gtkapp] Move locale init to startup



commit 9aabecadb5554dfa536ea13fa8ba729664c27960
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Jul 31 15:29:02 2012 +0200

    Move locale init to startup

 gedit/gedit-app.c |    9 +++++++++
 gedit/gedit.c     |    9 ---------
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index aa2fdc7..d3578ff 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -369,6 +369,15 @@ gedit_app_startup (GApplication *application)
 	gedit_debug_init ();
 	gedit_debug_message (DEBUG_APP, "Startup");
 
+	/* Setup locale/gettext */
+	setlocale (LC_ALL, "");
+
+	dir = gedit_dirs_get_gedit_locale_dir ();
+	bindtextdomain (GETTEXT_PACKAGE, dir);
+
+	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+	textdomain (GETTEXT_PACKAGE);
+
 	gedit_dirs_init ();
 
 	gedit_debug_message (DEBUG_APP, "Set icon");
diff --git a/gedit/gedit.c b/gedit/gedit.c
index 1aadfc9..f09ec22 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -59,15 +59,6 @@ main (int argc, char *argv[])
 	/* Init type system as soon as possible */
 	g_type_init ();
 
-	/* Setup locale/gettext */
-	setlocale (LC_ALL, "");
-
-	dir = gedit_dirs_get_gedit_locale_dir ();
-	bindtextdomain (GETTEXT_PACKAGE, dir);
-
-	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
-	textdomain (GETTEXT_PACKAGE);
-
 	/* Init plugins en thegine */
 	gedit_debug_message (DEBUG_APP, "Init plugins");
 	engine = gedit_plugins_engine_get_default ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]