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?


2013/8/2 RjOllos <[email protected]>

>
>
> On Wednesday, July 31, 2013 7:20:44 PM UTC-7, zhihui luo wrote:
>>
>> I want to set Trac workflow start with the status "新建"(chinese).
>> when modifying the ticket no any action! error like this:
>> “Action "view" is invalid”。
>>
>> --
>>
>> 骆志辉
>>
>
> Since you say "start with status", I infer that you want to replace
> the"new" status with "新建". I believe the following is applicable to your
> case,
>
> "There are a couple of hard-coded constraints to the workflow. In
> particular, tickets are created with status new, and tickets are expected
> to have a closed state. Further, the default reports/queries treat any
> state other thanclosed as an open state."
>
> See (1) for more details.
>
> What steps did you take to try to try to make the workflow start with
> "新建"? Did you edit the Trac source code, or just configure
> [ticket-workflow] in trac.ini? If you edited trac.ini, could you please
> post the [ticket-workflow] section that you used?
>
> Is your goal to just translate new? The workflow does not currently
> support translations (2), though comment:3 in that ticket shows a way to
> translate actions other than new and closed.
>
> Btw, in the future, configuration questions like this one should be
> directed to trac-users rather than trac-dev (3).
>
> (1)
> http://trac.edgewall.org/wiki/TracWorkflow#BasicTicketWorkflowCustomization
> (2) http://trac.edgewall.org/ticket/9472
> (3) http://trac.edgewall.org/wiki/MailingList
>
>  --
> 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.


Reply via email to