[gedit/wip/gtkapp: 186/197] Move locale init to startup



commit afa5794dbb3340033c1130e7bf4c9a3c17e4dd54
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 86386f5..fbed444 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -61,15 +61,6 @@ main (int argc, char *argv[])
 	gchar *metadata_filename;
 #endif
 
-	/* 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]