aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/fe/gtk/gtkfe.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/fe/gtk/gtkfe.py b/src/fe/gtk/gtkfe.py
index 9618ed3..d8b0a20 100755
--- a/src/fe/gtk/gtkfe.py
+++ b/src/fe/gtk/gtkfe.py
@@ -14,10 +14,18 @@ import GLIClientController
import GLIUtility
from SplashScreen import SplashScreen
import gtk
-from gettext import gettext as _
+import gettext
import TextBufferMarkup
from ProgressDialog import *
+
+try:
+ gettext.install('gli-gtk', './languages')
+ translator = gettext.translation('gli-gtk', './languages')
+ _ = translator.gettext
+except:
+ _ = gettext.gettext
+
class Installer:
SHOW_BUTTON_FORWARD = 1
@@ -218,11 +226,11 @@ class Installer:
def exit_button(self, widget, data=None):
if not self.install_done:
- msgdlg = gtk.MessageDialog(parent=self.window, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format="Are you sure you want to exit?")
+ msgdlg = gtk.MessageDialog(parent=self.window, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format=_("Are you sure you want to exit?"))
resp = msgdlg.run()
msgdlg.destroy()
if resp == gtk.RESPONSE_YES:
- msgdlg = gtk.MessageDialog(parent=self.window, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format="Do you want the installer to clean up after itself before exiting?")
+ msgdlg = gtk.MessageDialog(parent=self.window, type=gtk.MESSAGE_QUESTION, buttons=gtk.BUTTONS_YES_NO, message_format=_("Do you want the installer to clean up after itself before exiting?"))
resp = msgdlg.run()
msgdlg.destroy()
if resp == gtk.RESPONSE_YES: