diff options
Diffstat (limited to 'src/fe/gtk/Users.py')
-rw-r--r-- | src/fe/gtk/Users.py | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/fe/gtk/Users.py b/src/fe/gtk/Users.py index 1d01904..becf4f9 100644 --- a/src/fe/gtk/Users.py +++ b/src/fe/gtk/Users.py @@ -19,11 +19,11 @@ class Panel(GLIScreen): """ # Attributes: - title="User Settings" + title = _("User Settings") columns = [] users = [] current_users=[] - _helptext = """ + _helptext = _(""" <b><u>Users</u></b> Working as root on a Unix/Linux system is dangerous and should be avoided as \ @@ -57,12 +57,12 @@ can also specify the user's home directory (default is /home/username), userid \ Make sure to click Accept Changes to save the changes to your user. They will \ then show up in the list. -""" +""") def __init__(self,controller): GLIScreen.__init__(self, controller) - content_str = "User screen!" + content_str = _("User screen!") vert = gtk.VBox(False, 0) vert.set_border_width(10) @@ -74,12 +74,12 @@ then show up in the list. self.treeview = gtk.TreeView(self.treedata) self.treeview.connect("cursor-changed", self.selection_changed) - self.columns.append(gtk.TreeViewColumn("Username ", gtk.CellRendererText(), text=1)) - self.columns.append(gtk.TreeViewColumn("Groups", gtk.CellRendererText(), text=2)) - self.columns.append(gtk.TreeViewColumn("Shell ", gtk.CellRendererText(), text=3)) - self.columns.append(gtk.TreeViewColumn("HomeDir ", gtk.CellRendererText(), text=4)) - self.columns.append(gtk.TreeViewColumn("UserID", gtk.CellRendererText(), text=5)) - self.columns.append(gtk.TreeViewColumn("Comment", gtk.CellRendererText(), text=6)) + self.columns.append(gtk.TreeViewColumn(_("Username "), gtk.CellRendererText(), text=1)) + self.columns.append(gtk.TreeViewColumn(_("Groups"), gtk.CellRendererText(), text=2)) + self.columns.append(gtk.TreeViewColumn(_("Shell "), gtk.CellRendererText(), text=3)) + self.columns.append(gtk.TreeViewColumn(_("HomeDir "), gtk.CellRendererText(), text=4)) + self.columns.append(gtk.TreeViewColumn(_("UserID"), gtk.CellRendererText(), text=5)) + self.columns.append(gtk.TreeViewColumn(_("Comment"), gtk.CellRendererText(), text=6)) col_num = 0 for column in self.columns: column.set_resizable(True) @@ -104,13 +104,13 @@ then show up in the list. #frame.add(frame_vert) hbox = gtk.HBox(False) - add = gtk.Button("Add user", stock=None) + add = gtk.Button(_("Add user"), stock=None) add.connect("clicked", self.addu, "add") add.set_size_request(150, -1) add.show() hbox.pack_start(add, expand=False, fill=False, padding=5) - delete = gtk.Button("Delete user", stock=None) + delete = gtk.Button(_("Delete user"), stock=None) delete.connect("clicked", self.delete, "delete") delete.set_size_request(150, -1) delete.show() @@ -147,7 +147,7 @@ then show up in the list. self.user = {} hbox = gtk.HBox(False, 0) - label = gtk.Label("Username") + label = gtk.Label(_("Username")) label.set_size_request(100, -1) hbox.pack_start(label, expand=False, fill=False, padding=5) self.username = gtk.Entry() @@ -158,7 +158,7 @@ then show up in the list. frame_vert.add(hbox) hbox = gtk.HBox(False, 0) - label = gtk.Label("Password") + label = gtk.Label(_("Password")) label.set_size_request(100, -1) hbox.pack_start(label, expand=False, fill=False, padding=5) self.password = gtk.Entry() @@ -169,7 +169,7 @@ then show up in the list. hbox.pack_start(self.password, expand=False, fill=False, padding=5) # reset button if they want to reset a user password that was # loaded from a user profile - self.reset_pass = gtk.Button("Reset loaded password") + self.reset_pass = gtk.Button(_("Reset loaded password")) self.reset_pass.connect("clicked", self.reset_userpass_from_profile, "reset loaded pass") self.reset_pass.set_size_request(150, 5) self.reset_pass.set_sensitive(False) @@ -177,7 +177,7 @@ then show up in the list. frame_vert.add(hbox) hbox = gtk.HBox(False, 0) - label = gtk.Label("Groups") + label = gtk.Label(_("Groups")) label.set_size_request(100, -1) hbox.pack_start(label, expand=False, fill=False, padding=5) self.groups = gtk.Entry() @@ -188,7 +188,7 @@ then show up in the list. frame_vert.add(hbox) hbox = gtk.HBox(False, 0) - label = gtk.Label("Shell") + label = gtk.Label(_("Shell")) label.set_size_request(100, -1) hbox.pack_start(label, expand=False, fill=False, padding=5) self.shell = gtk.Entry() @@ -199,7 +199,7 @@ then show up in the list. frame_vert.add(hbox) hbox = gtk.HBox(False, 0) - label = gtk.Label("HomeDir") + label = gtk.Label(_("HomeDir")) label.set_size_request(100, -1) hbox.pack_start(label, expand=False, fill=False, padding=5) self.homedir = gtk.Entry() @@ -210,7 +210,7 @@ then show up in the list. frame_vert.add(hbox) hbox = gtk.HBox(False, 0) - label = gtk.Label("UserID") + label = gtk.Label(_("UserID")) label.set_size_request(100, -1) hbox.pack_start(label, expand=False, fill=False, padding=5) self.userid = gtk.Entry() @@ -221,7 +221,7 @@ then show up in the list. frame_vert.add(hbox) hbox = gtk.HBox(False, 0) - label = gtk.Label("Comment") + label = gtk.Label(_("Comment")) label.set_size_request(100, -1) hbox.pack_start(label, expand=False, fill=False, padding=5) self.comment = gtk.Entry() @@ -229,13 +229,13 @@ then show up in the list. self.comment.set_size_request(150, -1) self.comment.set_name("comment") hbox.pack_start(self.comment, expand=False, fill=False, padding=5) - button = gtk.Button("Accept Changes") + button = gtk.Button(_("Accept Changes")) button.connect("clicked", self.add_edit_user, "add/edit user") button.set_size_request(150, -1) hbox.pack_start(button, expand=False, fill=False, padding=5) frame_vert.add(hbox) - label = gtk.Label("Add/Edit a user") + label = gtk.Label(_("Add/Edit a user")) vert.pack_start(frame_vert, expand=False, fill=False, padding=5) self.add_content(vert) |