translate category in menu and title

svn: r14479
This commit is contained in:
Benny Malengier 2010-02-25 12:59:12 +00:00
parent 5868bd6c21
commit d2a341f19e

View File

@ -435,13 +435,14 @@ class PageView(DbGUIElement):
if not self.__configure_content: if not self.__configure_content:
self.__configure_content = self._get_configure_page_funcs() self.__configure_content = self._get_configure_page_funcs()
title = _("Configure %(cat)s - %(view)s") % \ title = _("Configure %(cat)s - %(view)s") % \
{'cat': self.get_category(), 'view': self.get_title()} {'cat': self.get_translated_category(),
'view': self.get_title()}
try: try:
ViewConfigureDialog(self.uistate, self.dbstate, ViewConfigureDialog(self.uistate, self.dbstate,
self.__configure_content, self.__configure_content,
self, self._config, dialogtitle=title, self, self._config, dialogtitle=title,
ident=_("%(cat)s - %(view)s") % ident=_("%(cat)s - %(view)s") %
{'cat': self.get_category(), {'cat': self.get_translated_category(),
'view': self.get_title()}) 'view': self.get_title()})
except Errors.WindowActiveError: except Errors.WindowActiveError:
return return