From c5effee2318e1029f76bad20dc726bdfb3ae4de5 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Tue, 17 Nov 2009 12:06:16 +0000 Subject: [PATCH] Fixed missing i18n --- debian/changelog | 6 ++++ mintmenu.pot | 36 +++++++++++++++----- usr/lib/linuxmint/mintMenu/mintMenuConfig.py | 12 ++++--- 3 files changed, 41 insertions(+), 13 deletions(-) diff --git a/debian/changelog b/debian/changelog index 89b8d2d..819ac1c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mintmenu (4.8.6) helena; urgency=low + + * Fixed missing i18n + + -- Clement Lefebvre Tue, 17 Nov 2009 12:06:00 +0000 + mintmenu (4.8.5) helena; urgency=low * Mint logo by default diff --git a/mintmenu.pot b/mintmenu.pot index b50a6e4..963232e 100644 --- a/mintmenu.pot +++ b/mintmenu.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-11-06 12:31+0000\n" +"POT-Creation-Date: 2009-11-17 12:05+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -20,35 +20,35 @@ msgstr "" msgid "Menu" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:266 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:267 msgid "Couldn't load plugin:" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:340 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:341 msgid "Couldn't initialize plugin" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:585 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:588 msgid "Preferences" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:585 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:588 msgid "Edit menu" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:585 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:588 msgid "Reload plugins" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:585 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:588 msgid "About" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:763 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:777 msgid "Advanced Gnome Menu" msgstr "" -#: usr/lib/linuxmint/mintMenu/mintMenu.py:766 +#: usr/lib/linuxmint/mintMenu/mintMenu.py:780 msgid "Based on USP from S.Chanderbally" msgstr "" @@ -293,6 +293,24 @@ msgstr "" msgid "Keyboard shortcut:" msgstr "" +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:228 +msgid "Name" +msgstr "" + +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:229 +msgid "Path" +msgstr "" + +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:328 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:362 +msgid "Name:" +msgstr "" + +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:329 +#: usr/lib/linuxmint/mintMenu/mintMenuConfig.py:363 +msgid "Path:" +msgstr "" + #: usr/lib/linuxmint/mintMenu/plugins/recent.py:36 msgid "Recent documents" msgstr "" diff --git a/usr/lib/linuxmint/mintMenu/mintMenuConfig.py b/usr/lib/linuxmint/mintMenu/mintMenuConfig.py index 59ec4b7..52b94f4 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenuConfig.py +++ b/usr/lib/linuxmint/mintMenu/mintMenuConfig.py @@ -225,8 +225,8 @@ class mintMenuConfig( object ): self.customplacestreemodel.connect("row-deleted", self.updatePlacesGconf) self.customplacestreemodel.connect("rows-reordered", self.updatePlacesGconf) self.customplacestree.set_model( self.customplacestreemodel ) - self.namescolumn = gtk.TreeViewColumn( 'Name', self.cell, text = 0 ) - self.placescolumn = gtk.TreeViewColumn( 'Path', self.cell, text = 1 ) + self.namescolumn = gtk.TreeViewColumn( _("Name"), self.cell, text = 0 ) + self.placescolumn = gtk.TreeViewColumn( _("Path"), self.cell, text = 1 ) self.customplacestree.append_column( self.namescolumn ) self.customplacestree.append_column( self.placescolumn ) wTree.get_widget("newButton").connect("clicked", self.newPlace) @@ -325,6 +325,8 @@ class mintMenuConfig( object ): def newPlace(self, newButton): gladefile = os.path.join( self.path, "mintMenuConfig.glade" ) wTree = gtk.glade.XML( gladefile, "editPlaceDialog" ) + wTree.get_widget("label1").set_text(_("Name:")) + wTree.get_widget("label2").set_text(_("Path:")) folderChooserTree = gtk.glade.XML( gladefile, "fileChooserDialog" ) newPlaceDialog = wTree.get_widget( "editPlaceDialog" ) folderChooserDialog = folderChooserTree.get_widget( "fileChooserDialog" ) @@ -357,6 +359,8 @@ class mintMenuConfig( object ): def editPlace(self, editButton): gladefile = os.path.join( self.path, "mintMenuConfig.glade" ) wTree = gtk.glade.XML( gladefile, "editPlaceDialog" ) + wTree.get_widget("label1").set_text(_("Name:")) + wTree.get_widget("label2").set_text(_("Path:")) folderChooserTree = gtk.glade.XML( gladefile, "fileChooserDialog" ) editPlaceDialog = wTree.get_widget( "editPlaceDialog" ) folderChooserDialog = folderChooserTree.get_widget( "fileChooserDialog" ) @@ -369,8 +373,8 @@ class mintMenuConfig( object ): editPlacePath = wTree.get_widget( "pathEntryBox" ) folderButton = wTree.get_widget( "folderButton" ) treeselection = self.customplacestree.get_selection() - currentiter = (treeselection.get_selected())[1] - + currentiter = (treeselection.get_selected())[1] + if (currentiter != None): initName = self.customplacestreemodel.get_value(currentiter, 0)