时断时续的bugzilla汉化

今天要把component的名称和描述的中文显示搞定
不过遇到一个棘手的问题
template/en/default/admin/components/list.html.tmpl
此文件里有这两行
[% edit_contentlink = BLOCK %]editcomponents.cgi?action=edit&product=
[%- product FILTER url_quote %]&component=%%name%%[% END %]
[% delete_contentlink = BLOCK %]editcomponents.cgi?action=del&product=
[%- product FILTER url_quote %]&component=%%name%%[% END %]
作用是生成编辑连接和删除连接
不过我尚不清楚%%name%%是如何得来的
但是我知道,只有在Bugzilla/Component.pm的第91行不改动的情况下,这个连接才是正常的。
可是如果不改成下面这样,那么新建的component的中文名称和描述就是问号
$self->{$field} = decode_utf8($component->{$field});
想跳楼。。。

Comments

Popular posts from this blog

portage-2.2 preserve-libs FEATURES explained

Send $SGB (Songbird) to another wallet using a script

The diff between the original SEC complaint against Ripple and the amended one