Modify ↓
Opened 8 years ago
Closed 5 years ago
#12798 closed enhancement (fixed)
Quote 'Ticket System' label with _
Reported by: | tkob-trac | Owned by: | ben_12 |
---|---|---|---|
Priority: | normal | Component: | ExportImportXlsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
In non-English Trac installation, 'Import/Export XLS' menu appears in different category from other 'Ticket System' category menus, since the category name is localized.
The following patch resolves this issue:
-
admin_ui.py
51 51 from trac.mimeview.api import Mimeview, Context 52 52 from trac.resource import Resource 53 53 from trac.attachment import AttachmentModule 54 from trac.util.translation import _, N_, gettext 54 55 55 56 from importexportxls.formats import * 56 57 … … 79 80 80 81 def get_admin_panels(self, req): 81 82 if 'TICKET_ADMIN' in req.perm: 82 yield ('ticket', 'Ticket System', 'importexport', 'Import/Export XLS')83 yield ('ticket', _('Ticket System'), 'importexport', 'Import/Export XLS') 83 84 84 85 def render_admin_panel(self, req, cat, page, version): 85 86 req.perm.require('TICKET_ADMIN')
Attachments (0)
Note: See
TracTickets for help on using
tickets.
In 17650: