I have posted this message in another thread.
Please ignore above.
2008/5/9 Richard Liao <[EMAIL PROTECTED]>:
> Hi,
>
> I'm trying to make a fully translated trac 0.12 based on the trunk(r7002).
>
> What I have done:
> 1. Fully translated the messages.po file.
> 2. Fully translated the default wiki pages into our local language: zh_CN.
> (I have noticed new help branch in sandbox, but currently, I have to
> translate these wiki pages.)
>
> The problem is: the UI elements are not fully i18n-ed.
> 1. Some string is not i18n-ed in py files.
> e.g.
> trac/ticket/web_ui.py: line 308:309
> return tag('Ticket ', tag.em('#', ticket.id, title=title),
> ' (', shorten_line(summary), ') ', verb)
> those should be:
> return tag(_('Ticket '), tag.em('#', ticket.id, title=title),
> ' (', shorten_line(summary), ') ', _(verb))
> How do I submit a patch?
>
> 2. Some strings never appear not in genshi template or py files:
> e.g.
> trac/ticket/template/ticket.html: line 150
> <py:if test="field">${field.label or field.name}:</py:if>
>
> and in trac/ticket/web_ui.py: line 552:560
> the string of ticket.fields['label'] or ticket.fields['edit_label']
> or ticket.fields['name'] is not i18n-ed.
>
> Those strings in ticket fields never appears in either py file or in
> genshi template files.
> Which make those string can not be gathered into pot file, thus can
> not be i18n-ed.
> e.g. priority, severitiy, status, and so on.
>
> My suggestion is to maintain a tracterms.py file, including all
> frequently used trac terms, to enable we i18n variables in genshi
> template files as below:
> <py:if test="field">${_(field.label) or
> _(field.name)}:</py:if>
>
> 3. Since some template strings in pot file can't be displayed
> correctly by current Genshi ticket #129.
> And I want to make all template work for now. Can we make all template
> strings i18n-ed by hand?
> e.g.
> trac/ticket/template/ticket.html: line 139
> <th id="h_reporter">Reported by:</th>
> <th id="h_reporter">${_('Reported by:')}</th>
>
> If we agree with it, I can make a patch of all template files.
>
> Regards,
>
> On Sat, May 3, 2008 at 4:42 PM, Jeroen Ruigrok van der Werven
> <[EMAIL PROTECTED]> wrote:
>>
>> The sandbox/i18n branch is now merged to trunk.
>>
>> Thank you for flying International Airlines.
>>
>> --
>> Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
>> イェルーン ラウフロック ヴァン デル ウェルヴェン
>> http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
>> Even when I do things for the sake of others, no sense of amazement or
>> conceit arises. It is just like feeding myself: I hope for nothing in
>> return...
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---