thank you very much! I got it!
2013/8/2 RjOllos <[email protected]> > On Thursday, August 1, 2013 7:12:12 PM UTC-7, zhihui luo wrote: > >> thanks!Next time I will go to the trac-users Asked。 >> trac.ini workflow like this: >> accept = 新建,被分配,被接受,再次打开 -> 被接受 >> accept.default = 999 >> accept.name = 接受 >> accept.operations = set_owner_to_self >> accept.permissions = TICKET_MODIFY >> leave = 新建,被分配,被接受,再次打开,关闭 -> * >> leave.default = 1000 >> leave.name = 放弃 >> leave.operations = leave_status >> reassign = 新建,被分配,被接受,再次打开 -> 被分配 >> reassign.default = 998 >> reassign.name = 分配 >> reassign.operations = set_owner >> reassign.permissions = TICKET_MODIFY >> reopen = 关闭 -> 再次打开 >> reopen.default = 997 >> reopen.name = 再次打开 >> reopen.operations = del_resolution >> reopen.permissions = TICKET_CREATE >> resolve = 新建,被分配,被接受,再次打开 -> 关闭 >> resolve.default = 996 >> resolve.name = 解决 >> resolve.operations = set_resolution >> resolve.permissions = TICKET_MODIFY >> >> I want "新建" as the status start. My goal is translate "new" to "新建". >> Because, there are a couple of hard-coded constraints to the workflow, I >> have to edit the Trac source code now. Could you give me some >> suggestions for me to modify the Trac source code? >> > > Generally the recommended approach to modify the interface is to implement > a Genshi stream filter in site.html. > http://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance > > It seems like that will work well in this scenario. You can match for > (untested): //fieldset[@id="action"]/div and replace "new" with "新建". > > -- > You received this message because you are subscribed to the Google Groups > "Trac Development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/trac-dev. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 骆志辉 -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-dev. For more options, visit https://groups.google.com/groups/opt_out.
