diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-26 10:43:34 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-26 10:43:34 +0200 |
commit | a88dce13d510622dee05e93efb46ff4ec5b72935 (patch) | |
tree | 5159e913ad91b70bb7c57946f4092bd69330f1d9 /src/Gui/PluginSettingsUI.py | |
parent | 7b6c533525e26cc3408865f1c90c71882384cf76 (diff) | |
download | abrt-a88dce13d510622dee05e93efb46ff4ec5b72935.tar.gz abrt-a88dce13d510622dee05e93efb46ff4ec5b72935.tar.xz abrt-a88dce13d510622dee05e93efb46ff4ec5b72935.zip |
GUI: added support for gettext (+part of czech translation)
Diffstat (limited to 'src/Gui/PluginSettingsUI.py')
-rw-r--r-- | src/Gui/PluginSettingsUI.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Gui/PluginSettingsUI.py b/src/Gui/PluginSettingsUI.py index dfcda15..02c0317 100644 --- a/src/Gui/PluginSettingsUI.py +++ b/src/Gui/PluginSettingsUI.py @@ -1,5 +1,5 @@ import gtk - +from abrt_utils import _ class PluginSettingsUI(gtk.Dialog): def __init__(self, pluginfo): #print "Init PluginSettingsUI" @@ -14,11 +14,11 @@ class PluginSettingsUI(gtk.Dialog): self.plugin_gui.add_from_file(pluginfo.getGUI()) self.dialog = self.plugin_gui.get_object("PluginDialog") if not self.dialog: - raise Exception("Can't find PluginDialog widget in UI description!") + raise Exception(_("Can't find PluginDialog widget in UI description!")) self.dialog.set_title("%s" % pluginfo.getName()) else: # we shouldn't get here, but just to be safe - no_ui_label = gtk.Label("No UI for plugin %s" % pluginfo) + no_ui_label = gtk.Label(_("No UI for plugin %s" % pluginfo)) self.add(no_ui_label) no_ui_label.show() @@ -35,7 +35,7 @@ class PluginSettingsUI(gtk.Dialog): elif type(widget) == gtk.CheckButton: widget.set_active(value == "yes") elif type(widget) == gtk.ComboBox: - print "combo box is not implemented" + print _("combo box is not implemented") else: #print "Plugin %s has no configuration." % self.plugin_name pass @@ -44,7 +44,7 @@ class PluginSettingsUI(gtk.Dialog): pass else: - print "Nothing to hydrate!" + print _("Nothing to hydrate!") def dehydrate(self): #print "dehydrating %s" % self.pluginfo.getName() @@ -61,7 +61,7 @@ class PluginSettingsUI(gtk.Dialog): else: self.Settings[key] = "no" elif type(widget) == gtk.ComboBox: - print "combo box is not implemented" + print _("combo box is not implemented") def destroy(self): self.dialog.destroy() |