[gnome-sudoku] Enable i18n
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Enable i18n
- Date: Sat, 31 May 2014 15:24:57 +0000 (UTC)
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]