Modify

Opened 5 years ago

Closed 5 years ago

#6489 closed enhancement (fixed)

How to rename "Import" label shown in mainnav

Reported by: AdrianFritz Owned by: farialima
Priority: normal Component: TicketImportPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Modifiying mainnav section on trac.ini file I'm able to set the order "Importer" will display.

[trac]
mainnav = wiki,...,tickets,newticket,importer,timeline,tags,Billing,admin,search

But I'm not able to modify its label, let's say from "Importer" to "Import Tickets":

[mainnav]
wiki.label = Home
admin.label = Config Trac
newticket.label = New Ticket
tickets.label = View Tickets
import.label = Import Tickets
...

I wonder to know if there is a way to do so?

Thank you

Adrián

Attachments (0)

Change History (3)

comment:1 follow-up: Changed 5 years ago by AdrianFritz

Seems it's fixed on source code (http://trac-hacks.org/browser/ticketimportplugin/0.11/talm_importer/importer.py)

41 	        yield ('mainnav', 'importer',
42 	               html.a('Import', href=req.href.importer()))

It's that correct?

comment:2 in reply to: ↑ 1 Changed 5 years ago by AdrianFritz

Ops,

It's that correct?

Is it correct?

comment:3 Changed 5 years ago by AdrianFritz

  • Resolution set to fixed
  • Status changed from new to closed

I found my error. Instead of 'import' I should have used 'importer'

  • importer.label = Import Tickets
    

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.