[caribou] Fix Bug 634799. Set translation domain of gtk.Builder object.



commit 25b75928256815c70064e2143c47627e11bcbd31
Author: Jiro Matsuzawa <matsuzawa jr gmail com>
Date:   Sun Nov 14 14:56:01 2010 +0900

    Fix Bug 634799. Set translation domain of gtk.Builder object.

 caribou/ui/keyboard.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/caribou/ui/keyboard.py b/caribou/ui/keyboard.py
index 1e6063e..5b92469 100644
--- a/caribou/ui/keyboard.py
+++ b/caribou/ui/keyboard.py
@@ -39,13 +39,15 @@ else:
     HAS_JSON = True
 import xml.etree.ElementTree as ET
 from xml.dom import minidom
-
+import gettext
+import i18n
 
 class KeyboardPreferences:
     __gtype_name__ = "KeyboardPreferences"
 
     def __init__(self):
         builder = gtk.Builder()
+        builder.set_translation_domain(gettext.textdomain())
         builder.add_from_file(os.path.join(const.DATA_DIR, "caribou-prefs.ui"))
 
         self.window = builder.get_object("dialog_prefs")



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