Opened 8 years ago

Closed 4 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


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:


    5151from trac.mimeview.api import Mimeview, Context
    5252from trac.resource import Resource
    5353from trac.attachment import AttachmentModule
     54from trac.util.translation import _, N_, gettext
    5556from importexportxls.formats import *
    8081    def get_admin_panels(self, req):
    8182        if 'TICKET_ADMIN' in req.perm:
    82             yield ('ticket', 'Ticket System', 'importexport', 'Import/Export XLS')
     83            yield ('ticket', _('Ticket System'), 'importexport', 'Import/Export XLS')
    8485    def render_admin_panel(self, req, cat, page, version):
    8586        req.perm.require('TICKET_ADMIN')

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 17650:

0.2dev: Fix translation of admin menu items

Fixes #12798.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain ben_12.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.