aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe/gtk/LocalMounts.py')
-rw-r--r--src/fe/gtk/LocalMounts.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/fe/gtk/LocalMounts.py b/src/fe/gtk/LocalMounts.py
index 35ba8c1..b8218e7 100644
--- a/src/fe/gtk/LocalMounts.py
+++ b/src/fe/gtk/LocalMounts.py
@@ -14,11 +14,11 @@ import GLIUtility
class Panel(GLIScreen):
- title = "Local Mounts"
+ title = _("Local Mounts")
columns = []
localmounts = []
active_entry = -1
- _helptext = """
+ _helptext = _("""
<b><u>Local Mounts</u></b>
Here, you can add partitions and special devices to mount during (and after) \
@@ -32,7 +32,7 @@ type in the next field. Then enter the mountpoint and mount options (defaults to
To edit a mount that you've already added to the list list, select it by \
clicking on it. Edit any of the fields below and click the 'Update' button. You \
can remove it from the list by clicking the 'Delete' button.
-"""
+""")
def __init__(self, controller):
GLIScreen.__init__(self, controller)
@@ -43,10 +43,10 @@ can remove it from the list by clicking the 'Delete' button.
self.treedatasort = gtk.TreeModelSort(self.treedata)
self.treeview = gtk.TreeView(self.treedatasort)
self.treeview.connect("cursor-changed", self.selection_changed)
- self.columns.append(gtk.TreeViewColumn("Device", gtk.CellRendererText(), text=1))
- self.columns.append(gtk.TreeViewColumn("Type", gtk.CellRendererText(), text=2))
- self.columns.append(gtk.TreeViewColumn("Mount Point", gtk.CellRendererText(), text=3))
- self.columns.append(gtk.TreeViewColumn("Mount Options", gtk.CellRendererText(), text=4))
+ self.columns.append(gtk.TreeViewColumn(_("Device"), gtk.CellRendererText(), text=1))
+ self.columns.append(gtk.TreeViewColumn(_("Type"), gtk.CellRendererText(), text=2))
+ self.columns.append(gtk.TreeViewColumn(_("Mount Point"), gtk.CellRendererText(), text=3))
+ self.columns.append(gtk.TreeViewColumn(_("Mount Options"), gtk.CellRendererText(), text=4))
col_num = 0
for column in self.columns:
column.set_resizable(True)
@@ -64,7 +64,7 @@ can remove it from the list by clicking the 'Delete' button.
mount_info_table = gtk.Table(5, 3, False)
mount_info_table.set_col_spacings(10)
mount_info_table.set_row_spacings(6)
- mount_info_device_label = gtk.Label("Device:")
+ mount_info_device_label = gtk.Label(_("Device:"))
mount_info_device_label.set_alignment(0.0, 0.5)
mount_info_table.attach(mount_info_device_label, 0, 1, 0, 1)
self.mount_info_device = gtk.ComboBoxEntry(gtk.ListStore(gobject.TYPE_STRING))
@@ -72,19 +72,19 @@ can remove it from the list by clicking the 'Delete' button.
if not self.mount_info_device.get_text_column() == 0:
self.mount_info_device.set_text_column(0)
mount_info_table.attach(self.mount_info_device, 1, 2, 0, 1)
- mount_info_type_label = gtk.Label("Type:")
+ mount_info_type_label = gtk.Label(_("Type:"))
mount_info_type_label.set_alignment(0.0, 0.5)
mount_info_table.attach(mount_info_type_label, 0, 1, 1, 2)
self.mount_info_type = gtk.Entry()
self.mount_info_type.set_width_chars(20)
mount_info_table.attach(self.mount_info_type, 1, 2, 1, 2)
- mount_info_mountpoint_label = gtk.Label("Mount point:")
+ mount_info_mountpoint_label = gtk.Label(_("Mount point:"))
mount_info_mountpoint_label.set_alignment(0.0, 0.5)
mount_info_table.attach(mount_info_mountpoint_label, 0, 1, 2, 3)
self.mount_info_mountpoint = gtk.Entry()
self.mount_info_mountpoint.set_width_chars(30)
mount_info_table.attach(self.mount_info_mountpoint, 1, 2, 2, 3)
- mount_info_mountopts_label = gtk.Label("Mount options:")
+ mount_info_mountopts_label = gtk.Label(_("Mount options:"))
mount_info_mountopts_label.set_alignment(0.0, 0.5)
mount_info_table.attach(mount_info_mountopts_label, 0, 1, 3, 4)
self.mount_info_mountopts = gtk.Entry()
@@ -94,14 +94,14 @@ can remove it from the list by clicking the 'Delete' button.
vert.pack_start(self.mount_info_box, expand=False, fill=False, padding=10)
mount_button_box = gtk.HBox(False, 0)
- mount_button_add = gtk.Button(" _Add ")
+ mount_button_add = gtk.Button(_(" _Add "))
mount_button_add.connect("clicked", self.new_mount)
mount_button_box.pack_start(mount_button_add, expand=False, fill=False, padding=10)
- self.mount_button_update = gtk.Button(" _Update ")
+ self.mount_button_update = gtk.Button(_(" _Update "))
self.mount_button_update.connect("clicked", self.update_mount)
self.mount_button_update.set_sensitive(False)
mount_button_box.pack_start(self.mount_button_update, expand=False, fill=False, padding=10)
- self.mount_button_delete = gtk.Button(" _Delete ")
+ self.mount_button_delete = gtk.Button(_(" _Delete "))
self.mount_button_delete.connect("clicked", self.delete_mount)
self.mount_button_delete.set_sensitive(False)
mount_button_box.pack_start(self.mount_button_delete, expand=False, fill=False, padding=10)
@@ -172,13 +172,13 @@ can remove it from the list by clicking the 'Delete' button.
def update_mount(self, button):
if self.mount_info_device.get_child().get_text().strip() == "":
- msgdialog = Widgets.Widgets().error_Box("Invalid Entry", "You must enter a value for the device field")
+ msgdialog = Widgets.Widgets().error_Box(_("Invalid Entry"), _("You must enter a value for the device field"))
result = msgdialog.run()
if result == gtk.RESPONSE_ACCEPT:
msgdialog.destroy()
return
if not self.mount_info_type.get_text().strip() in ("swap", "linux-swap") and self.mount_info_mountpoint.get_text().strip() == "":
- msgdialog = Widgets.Widgets().error_Box("Invalid Entry", "You must enter a mountpoint")
+ msgdialog = Widgets.Widgets().error_Box(_("Invalid Entry"), _("You must enter a mountpoint"))
result = msgdialog.run()
if result == gtk.RESPONSE_ACCEPT:
msgdialog.destroy()