--- a/Plugins/VcsPlugins/vcsMercurial/PurgeExtension/ProjectHelper.py Sat May 28 16:00:45 2011 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/PurgeExtension/ProjectHelper.py Sat May 28 16:20:36 2011 +0200 @@ -124,7 +124,7 @@ @param mainMenu reference to the main menu (QMenu) @return populated menu (QMenu) """ - menu = QMenu(self.trUtf8("Purge"), mainMenu) + menu = QMenu(self.menuTitle(), mainMenu) menu.setTearOffEnabled(True) menu.addAction(self.hgPurgeAct) @@ -135,6 +135,12 @@ return menu + def menuTitle(self): + """ + Public method to get the menu title. + """ + return self.trUtf8("Purge") + def __hgPurge(self): """ Private slot used to remove files not tracked by Mercurial.