[gnome-games/gnome-2-28: 20/22] Translate GtkBuilder UIs (Bug #602934)
- From: Adi Roiban <adiroiban src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games/gnome-2-28: 20/22] Translate GtkBuilder UIs (Bug #602934)
- Date: Fri, 27 Nov 2009 05:34:23 +0000 (UTC)
commit d5398467bc1e9aa724eddf739ffb8ebaf1c5257c
Author: Gabor Kelemen <kelemeng gnome hu>
Date: Thu Nov 26 09:13:34 2009 +1100
Translate GtkBuilder UIs (Bug #602934)
gnome-sudoku/src/lib/game_selector.py | 1 +
gnome-sudoku/src/lib/main.py | 3 ++-
gnome-sudoku/src/lib/printing.py | 1 +
gnome-sudoku/src/lib/sudoku_generator_gui.py | 1 +
4 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/game_selector.py b/gnome-sudoku/src/lib/game_selector.py
index 8916774..b2cf532 100644
--- a/gnome-sudoku/src/lib/game_selector.py
+++ b/gnome-sudoku/src/lib/game_selector.py
@@ -62,6 +62,7 @@ class NewOrSavedGameSelector ():
def setup_dialog (self):
builder = gtk.Builder()
+ builder.set_translation_domain(defaults.DOMAIN)
builder.add_from_file(self.ui_file)
self.dialog = builder.get_object('dialog1')
self.dialog.set_default_response(gtk.RESPONSE_CANCEL)
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 4ed0122..df726a0 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -21,7 +21,7 @@ import saver
import sudoku_generator_gui
import sudoku_maker
import timer
-from defaults import (APPNAME, APPNAME_SHORT, AUTHORS, COPYRIGHT, DESCRIPTION,
+from defaults import (APPNAME, APPNAME_SHORT, AUTHORS, COPYRIGHT, DESCRIPTION, DOMAIN,
IMAGE_DIR, LICENSE, MIN_NEW_PUZZLES, UI_DIR, VERSION, WEBSITE, WEBSITE_LABEL)
from gtk_goodies import gconf_wrapper, Undo, dialog_extras
from simple_debug import simple_debug, options
@@ -746,6 +746,7 @@ class TrackerBox (gtk.VBox):
gtk.VBox.__init__(self)
self.builder = gtk.Builder()
+ self.builder.set_translation_domain(DOMAIN)
self.builder.add_from_file(os.path.join(UI_DIR, 'tracker.ui'))
self.main_ui = main_ui
self.vb = self.builder.get_object('vbox1')
diff --git a/gnome-sudoku/src/lib/printing.py b/gnome-sudoku/src/lib/printing.py
index 0150b74..e0f0bf0 100644
--- a/gnome-sudoku/src/lib/printing.py
+++ b/gnome-sudoku/src/lib/printing.py
@@ -129,6 +129,7 @@ class GamePrinter (gconf_wrapper.GConfWrapper):
gconf_wrapper.GConfWrapper.__init__(self, gconf)
self.sudoku_maker = sudoku_maker
self.builder = gtk.Builder()
+ self.builder.set_translation_domain(defaults.DOMAIN)
self.builder.add_from_file(self.ui_file)
# Set up toggles...
for key, wname in [('mark_printed_as_played', 'markAsPlayedToggle'),
diff --git a/gnome-sudoku/src/lib/sudoku_generator_gui.py b/gnome-sudoku/src/lib/sudoku_generator_gui.py
index f336898..ebbef80 100644
--- a/gnome-sudoku/src/lib/sudoku_generator_gui.py
+++ b/gnome-sudoku/src/lib/sudoku_generator_gui.py
@@ -27,6 +27,7 @@ class GameGenerator (gconf_wrapper.GConfWrapper):
self.ui.stop_worker_thread()
gconf_wrapper.GConfWrapper.__init__(self, gconf)
self.builder = gtk.Builder()
+ self.builder.set_translation_domain(defaults.DOMAIN)
self.builder.add_from_file(self.ui_file)
self.generate_for_target_widgets = []
self.cat_to_label = {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]