Added i18n for Places tab of config window

This commit is contained in:
clhodapp 2009-09-06 22:16:18 -05:00
parent a3cac14c8c
commit f5cea6f6d5
2 changed files with 21 additions and 4 deletions

View File

@ -963,7 +963,7 @@
</widget> </widget>
</child> </child>
<child> <child>
<widget class="GtkLabel" id="label8"> <widget class="GtkLabel" id="defaultPlacesFrameLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">Toggle Default Places:</property> <property name="label" translatable="yes">Toggle Default Places:</property>
<property name="use_markup">True</property> <property name="use_markup">True</property>
@ -1123,7 +1123,7 @@
</widget> </widget>
</child> </child>
<child> <child>
<widget class="GtkLabel" id="label7"> <widget class="GtkLabel" id="customPlacesFrameLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">Custom Places:</property> <property name="label" translatable="yes">Custom Places:</property>
<property name="use_markup">True</property> <property name="use_markup">True</property>
@ -1204,6 +1204,9 @@
</widget> </widget>
<widget class="GtkDialog" id="editPlaceDialog"> <widget class="GtkDialog" id="editPlaceDialog">
<property name="border_width">5</property> <property name="border_width">5</property>
<property name="title" translatable="yes">Edit Place</property>
<property name="modal">True</property>
<property name="icon">/usr/lib/linuxmint/mintSystem/icon.png</property>
<property name="type_hint">normal</property> <property name="type_hint">normal</property>
<property name="has_separator">False</property> <property name="has_separator">False</property>
<child internal-child="vbox"> <child internal-child="vbox">

View File

@ -42,6 +42,7 @@ class mintMenuConfig( object ):
#i18n #i18n
wTree.get_widget("mainWindow").set_title(_("Menu preferences")) wTree.get_widget("mainWindow").set_title(_("Menu preferences"))
wTree.get_widget("mainWindow").set_icon_from_file("/usr/lib/linuxmint/mintMenu/icon.svg") wTree.get_widget("mainWindow").set_icon_from_file("/usr/lib/linuxmint/mintMenu/icon.svg")
editTree.get_widget("editPlaceDialog").set_icon_from_file("/usr/lib/linuxmint/mintMenu/icon.svg")
wTree.get_widget("showSidepane").set_label(_("Show sidepane")) wTree.get_widget("showSidepane").set_label(_("Show sidepane"))
wTree.get_widget("showButtonIcon").set_label(_("Show button icon")) wTree.get_widget("showButtonIcon").set_label(_("Show button icon"))
@ -77,6 +78,19 @@ class mintMenuConfig( object ):
wTree.get_widget("label4").set_text(_("Button icon:")) wTree.get_widget("label4").set_text(_("Button icon:"))
wTree.get_widget("label5").set_text(_("Search command:")) wTree.get_widget("label5").set_text(_("Search command:"))
wTree.get_widget("placesLabel").set_text(_("Places"))
wTree.get_widget("placesHeightEntryLabel").set_text(_("Height:"))
wTree.get_widget("defaultPlacesFrameLabel").set_text(_("Toggle Default Places:"))
wTree.get_widget("computercheckbutton").set_label(_("Computer"))
wTree.get_widget("homecheckbutton").set_label(_("Home Folder"))
wTree.get_widget("networkcheckbutton").set_label(_("Network"))
wTree.get_widget("desktopcheckbutton").set_label(_("Desktop"))
wTree.get_widget("trashcheckbutton").set_label(_("Trash"))
wTree.get_widget("customPlacesFrameLabel").set_text(_("Custom Places:"))
self.editPlaceDialogTitle = (_("Edit Place"))
self.newPlaceDialogTitle = (_("New Place"))
wTree.get_widget("hotkey_label").set_text(_("Keyboard shortcut:")) wTree.get_widget("hotkey_label").set_text(_("Keyboard shortcut:"))
self.showSidepane = wTree.get_widget( "showSidepane" ) self.showSidepane = wTree.get_widget( "showSidepane" )
@ -264,7 +278,7 @@ class mintMenuConfig( object ):
return return
def newPlace(self, newButton): def newPlace(self, newButton):
self.editPlaceDialog.set_title("New Place") self.editPlaceDialog.set_title(self.newPlaceDialogTitle)
self.editPlaceName.set_text("") self.editPlaceName.set_text("")
self.editPlacePath.set_text("") self.editPlacePath.set_text("")
response = self.editPlaceDialog.run() response = self.editPlaceDialog.run()
@ -276,7 +290,7 @@ class mintMenuConfig( object ):
self.updatePlacesGconf() self.updatePlacesGconf()
def editPlace(self, editButton): def editPlace(self, editButton):
self.editPlaceDialog.set_title("Edit Place") self.editPlaceDialog.set_title(self.editPlaceDialogTitle)
treeselection = self.customplacestree.get_selection() treeselection = self.customplacestree.get_selection()
currentiter = (treeselection.get_selected())[1] currentiter = (treeselection.get_selected())[1]