From f5cea6f6d5b21a1359392bf1b517d837570ff3d7 Mon Sep 17 00:00:00 2001 From: clhodapp Date: Sun, 6 Sep 2009 22:16:18 -0500 Subject: [PATCH] Added i18n for Places tab of config window --- .../linuxmint/mintMenu/mintMenuConfig.glade | 7 +++++-- usr/lib/linuxmint/mintMenu/mintMenuConfig.py | 18 ++++++++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/mintMenuConfig.glade b/usr/lib/linuxmint/mintMenu/mintMenuConfig.glade index 6a04728..ed705e4 100644 --- a/usr/lib/linuxmint/mintMenu/mintMenuConfig.glade +++ b/usr/lib/linuxmint/mintMenu/mintMenuConfig.glade @@ -963,7 +963,7 @@ - + True Toggle Default Places: True @@ -1123,7 +1123,7 @@ - + True Custom Places: True @@ -1204,6 +1204,9 @@ 5 + Edit Place + True + /usr/lib/linuxmint/mintSystem/icon.png normal False diff --git a/usr/lib/linuxmint/mintMenu/mintMenuConfig.py b/usr/lib/linuxmint/mintMenu/mintMenuConfig.py index d1d7d0f..e17b9af 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenuConfig.py +++ b/usr/lib/linuxmint/mintMenu/mintMenuConfig.py @@ -42,6 +42,7 @@ class mintMenuConfig( object ): #i18n wTree.get_widget("mainWindow").set_title(_("Menu preferences")) 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("showButtonIcon").set_label(_("Show button icon")) @@ -77,6 +78,19 @@ class mintMenuConfig( object ): wTree.get_widget("label4").set_text(_("Button icon:")) 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:")) self.showSidepane = wTree.get_widget( "showSidepane" ) @@ -264,7 +278,7 @@ class mintMenuConfig( object ): return def newPlace(self, newButton): - self.editPlaceDialog.set_title("New Place") + self.editPlaceDialog.set_title(self.newPlaceDialogTitle) self.editPlaceName.set_text("") self.editPlacePath.set_text("") response = self.editPlaceDialog.run() @@ -276,7 +290,7 @@ class mintMenuConfig( object ): self.updatePlacesGconf() def editPlace(self, editButton): - self.editPlaceDialog.set_title("Edit Place") + self.editPlaceDialog.set_title(self.editPlaceDialogTitle) treeselection = self.customplacestree.get_selection() currentiter = (treeselection.get_selected())[1]