[sylpheed:34442] Re: plugin localization problem

Hiroyuki Yamamoto hiro-y at kcn.ne.jp
Wed Feb 2 11:04:54 JST 2011


Hello,

On Tue, 1 Feb 2011 11:56:43 +0200
Doruk Fisek <dfisek at fisek.com.tr> wrote:

>  Plugins seems to have hardcoded string(s) in them.
> 
>  For example plugin/attachment_tool places a hard coded "Remove
> attachments" menu item under the "Tools" menu, which can't localized.
> 
>  Can these be moved to the po files?

It is possible by adding plugins/attachment_tool/attachment_tool.c
in po/POTFILES.in file.

As another way, each plug-in can have separated gettext message catalog
by initializing it with unique package name.

plugin_load()
{
   syl_init_gettext("attachment_tool", LOCALEDIR);
   ...
}

But this is not implemented yet for simplicity.

-- 
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>


More information about the Sylpheed mailing list