aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe/gtk/NetworkMounts.py')
-rw-r--r--src/fe/gtk/NetworkMounts.py42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/fe/gtk/NetworkMounts.py b/src/fe/gtk/NetworkMounts.py
index ff58050..53e7f59 100644
--- a/src/fe/gtk/NetworkMounts.py
+++ b/src/fe/gtk/NetworkMounts.py
@@ -13,12 +13,12 @@ from ProgressDialog import *
class Panel(GLIScreen):
- title = "Network Mounts"
+ title = _("Network Mounts")
columns = []
netmounts = []
active_entry = -1
mount_types = ["NFS"]
- _helptext = """
+ _helptext = _("""
<b><u>Network Mounts</u></b>
Here, you can specify network shares to mount during (and after) the install. \
@@ -37,7 +37,7 @@ above. Enter a local mountpoint and mount options. Click the button labeled \
To edit an existing mount, select it in the list above. Edit any fields below \
and then click the 'Update' button. You can remove it from the list by clicking \
the 'Delete' button.
-"""
+""")
def __init__(self, controller):
GLIScreen.__init__(self, controller)
@@ -50,11 +50,11 @@ 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("Host/IP", gtk.CellRendererText(), text=1))
- self.columns.append(gtk.TreeViewColumn("Export/Share", gtk.CellRendererText(), text=2))
- self.columns.append(gtk.TreeViewColumn("Type", gtk.CellRendererText(), text=3))
- self.columns.append(gtk.TreeViewColumn("Mount Point", gtk.CellRendererText(), text=4))
- self.columns.append(gtk.TreeViewColumn("Mount Options", gtk.CellRendererText(), text=5))
+ self.columns.append(gtk.TreeViewColumn(_("Host/IP"), gtk.CellRendererText(), text=1))
+ self.columns.append(gtk.TreeViewColumn(_("Export/Share"), gtk.CellRendererText(), text=2))
+ self.columns.append(gtk.TreeViewColumn(_("Type"), gtk.CellRendererText(), text=3))
+ self.columns.append(gtk.TreeViewColumn(_("Mount Point"), gtk.CellRendererText(), text=4))
+ self.columns.append(gtk.TreeViewColumn(_("Mount Options"), gtk.CellRendererText(), text=5))
col_num = 0
for column in self.columns:
column.set_resizable(True)
@@ -72,7 +72,7 @@ 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_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, 0, 1)
self.mount_info_type = gtk.combo_box_new_text()
@@ -80,13 +80,13 @@ the 'Delete' button.
self.mount_info_type.append_text(mount_type)
self.mount_info_type.set_active(0)
mount_info_table.attach(self.mount_info_type, 1, 2, 0, 1)
- mount_info_host_label = gtk.Label("Host/IP:")
+ mount_info_host_label = gtk.Label(_("Host/IP:"))
mount_info_host_label.set_alignment(0.0, 0.5)
mount_info_table.attach(mount_info_host_label, 0, 1, 1, 2)
self.mount_info_host = gtk.Entry()
self.mount_info_host.set_width_chars(25)
mount_info_table.attach(self.mount_info_host, 1, 2, 1, 2)
- mount_info_export_label = gtk.Label("Export/Share:")
+ mount_info_export_label = gtk.Label(_("Export/Share:"))
mount_info_export_label.set_alignment(0.0, 0.5)
mount_info_table.attach(mount_info_export_label, 0, 1, 2, 3)
self.mount_info_export = gtk.ComboBoxEntry(gtk.ListStore(gobject.TYPE_STRING))
@@ -99,13 +99,13 @@ the 'Delete' button.
self.mount_info_export_refresh.add(mount_info_export_refresh_img)
self.mount_info_export_refresh.connect("clicked", self.populate_exports)
mount_info_table.attach(self.mount_info_export_refresh, 2, 3, 2, 3)
- 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, 3, 4)
self.mount_info_mountpoint = gtk.Entry()
self.mount_info_mountpoint.set_width_chars(30)
mount_info_table.attach(self.mount_info_mountpoint, 1, 2, 3, 4)
- 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, 4, 5)
self.mount_info_mountopts = gtk.Entry()
@@ -115,18 +115,18 @@ 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_new = gtk.Button(" _New ")
+ mount_button_new = gtk.Button(_(" _New "))
mount_button_new.connect("clicked", self.new_mount)
mount_button_box.pack_start(mount_button_new, 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)
- self.mount_button_populate = gtk.Button(" _Populate Exports ")
+ self.mount_button_populate = gtk.Button(_(" _Populate Exports "))
self.mount_button_populate.connect("clicked", self.populate_exports)
self.mount_button_populate.set_sensitive(False)
mount_button_box.pack_start(self.mount_button_populate, expand=False, fill=False, padding=10)
@@ -200,19 +200,19 @@ the 'Delete' button.
def update_mount(self, button, data=None):
if not GLIUtility.is_ip(self.mount_info_host.get_text()) and not GLIUtility.is_hostname(self.mount_info_host.get_text()):
- msgdialog = Widgets.Widgets().error_Box("Invalid Host or IP", "You must specify a valid hostname or IP address")
+ msgdialog = Widgets.Widgets().error_Box(_("Invalid Host or IP", "You must specify a valid hostname or IP address"))
result = msgdialog.run()
if result == gtk.RESPONSE_ACCEPT:
msgdialog.destroy()
return
if self.mount_info_export.get_child().get_text() == "":
- msgdialog = Widgets.Widgets().error_Box("Invalid Entry", "You must enter a value for the export field")
+ msgdialog = Widgets.Widgets().error_Box(_("Invalid Entry", "You must enter a value for the export field"))
result = msgdialog.run()
if result == gtk.RESPONSE_ACCEPT:
msgdialog.destroy()
return
if self.mount_info_mountpoint.get_text() == "":
- 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()
@@ -256,7 +256,7 @@ the 'Delete' button.
mountlist.append([remotemount])
self.mount_info_export.get_child().set_text(oldtext)
else:
- msgdialog = Widgets.Widgets().error_Box("Invalid Host or IP", "You must specify a valid hostname or IP address to scan for exports")
+ msgdialog = Widgets.Widgets().error_Box(_("Invalid Host or IP", "You must specify a valid hostname or IP address to scan for exports"))
result = msgdialog.run()
if result == gtk.RESPONSE_ACCEPT:
msgdialog.destroy()