Richard Liao | 9 May 10:15

[Trac-dev] Re: branch merge: i18n


I have posted this message in another thread.
Please ignore above.

2008/5/9 Richard Liao <richard.liao.i <at> gmail.com>:
> 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>
(Continue reading)


Gmane