[gnome-robots] Initialize Gettext in main(), not in startup().



commit e3f0a9f28c8a53fc8e8ed8999e0ce63ff3cca6ad
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Mar 2 21:40:48 2015 +0100

    Initialize Gettext in main(), not in startup().

 src/gnome-robots.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index 6b5d55c..5de4ce8 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -287,11 +287,6 @@ startup (GtkApplication *app, gpointer user_data)
 {
   struct timeval tv;
 
-  setlocale (LC_ALL, "");
-  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
-  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
-  textdomain (GETTEXT_PACKAGE);
-
   games_scores_startup ();
 
   gettimeofday (&tv, NULL);
@@ -456,6 +451,11 @@ activate (GtkApplication *app, gpointer user_data)
 int
 main (int argc, char *argv[])
 {
+  setlocale (LC_ALL, "");
+  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  textdomain (GETTEXT_PACKAGE);
+
   GtkApplication *app;
 
   app = gtk_application_new ("org.gnome.robots", G_APPLICATION_FLAGS_NONE);


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