--- a/Plugins/VcsPlugins/vcsMercurial/FetchExtension/ProjectHelper.py Sat May 28 16:00:45 2011 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/FetchExtension/ProjectHelper.py Sat May 28 16:20:36 2011 +0200 @@ -77,13 +77,19 @@ @param mainMenu reference to the main menu (QMenu) @return populated menu (QMenu) """ - menu = QMenu(self.trUtf8("Fetch"), mainMenu) + menu = QMenu(self.menuTitle(), mainMenu) menu.setTearOffEnabled(True) menu.addAction(self.hgFetchAct) return menu + def menuTitle(self): + """ + Public method to get the menu title. + """ + return self.trUtf8("Fetch") + def __hgFetch(self): """ Private slot used to fetch changes from a remote repository.