[gnome-sudoku] Initialize i18n in the local instance



commit 08ef4c96dd78320efec4ce4ac0df66b3398a68e5
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat May 31 16:44:59 2014 -0500

    Initialize i18n in the local instance

 src/gnome-sudoku.vala |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index b2a617c..b89938d 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -82,6 +82,12 @@ public class Sudoku : Gtk.Application
     protected override void startup ()
     {
         base.startup ();
+
+        Intl.setlocale (LocaleCategory.ALL, "");
+        Intl.bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+        Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+        Intl.textdomain (GETTEXT_PACKAGE);
+
         add_action_entries (action_entries, this);
 
         settings = new GLib.Settings ("org.gnome.sudoku");
@@ -94,11 +100,6 @@ public class Sudoku : Gtk.Application
     }
 
     protected override void activate () {
-        Intl.setlocale (LocaleCategory.ALL, "");
-        Intl.bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
-        Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
-        Intl.textdomain (GETTEXT_PACKAGE);
-
         builder = new Builder ();
         try
         {


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