diff options
Diffstat (limited to 'src/fe/gtk/RootPass.py')
-rw-r--r-- | src/fe/gtk/RootPass.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fe/gtk/RootPass.py b/src/fe/gtk/RootPass.py index 814035a..72894ed 100644 --- a/src/fe/gtk/RootPass.py +++ b/src/fe/gtk/RootPass.py @@ -10,13 +10,13 @@ from ProgressDialog import * class Panel(GLIScreen): - title = "Root Password" - _helptext = """ + title = _("Root Password") + _helptext = _(""" <b><u>Root Password</u></b> Enter the password for the root user in your new install. Enter it again to \ confirm it (to prevent typos). -""" +""") def __init__(self, controller): GLIScreen.__init__(self, controller) @@ -26,7 +26,7 @@ confirm it (to prevent typos). hbox = gtk.HBox(False, 0) label = gtk.Label() - label.set_markup('<b>Enter a root password</b>') + label.set_markup(_('<b>Enter a root password</b>')) hbox.pack_start(label, expand=False, fill=False, padding=5) vert.pack_start(hbox, expand=False, fill=False, padding=10) @@ -34,7 +34,7 @@ confirm it (to prevent typos). table.set_row_spacings(5) table.set_col_spacings(10) - label = gtk.Label("Password") + label = gtk.Label(_("Password")) label.set_alignment(0.0, 0.5) table.attach(label, 0, 1, 0, 1) self.entry_password = gtk.Entry() @@ -42,7 +42,7 @@ confirm it (to prevent typos). self.entry_password.set_visibility(False) table.attach(self.entry_password, 1, 2, 0, 1) - label = gtk.Label("Confirm") + label = gtk.Label(_("Confirm")) label.set_alignment(0.0, 0.5) table.attach(label, 0, 1, 1, 2) self.entry_confirm = gtk.Entry() @@ -69,11 +69,11 @@ confirm it (to prevent typos). root_hash = GLIUtility.hash_password(self.entry_password.get_text()) self.controller.install_profile.set_root_pass_hash(None, root_hash, None) else: - msgdlg = gtk.MessageDialog(parent=self.controller.window, type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK, message_format="The passwords you entered do not match!") + msgdlg = gtk.MessageDialog(parent=self.controller.window, type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK, message_format=_("The passwords you entered do not match!")) msgdlg.run() msgdlg.destroy() return - progress = ProgressDialog(self.controller, ("set_root_password", ), self.progress_callback) + progress = ProgressDialog(self.controller, (_("set_root_password"), ), self.progress_callback) progress.run() def progress_callback(self, result, data=None): |