[gnome-sudoku] Enable i18n



commit 9f7786556a9928e5a78579f87f2b36bfe59f4ffc
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat May 31 10:23:19 2014 -0500

    Enable i18n

 src/gnome-sudoku.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index 147d8bf..05f64ea 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -57,6 +57,11 @@ 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);
+
         settings = new GLib.Settings ("org.gnome.gnome-sudoku");
 
         builder = new Builder ();


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