[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    i18n for thumbnailer plugin configuration widget
From:       nihui <shuizhuyuanluo () 126 ! com>
Date:       2012-04-12 5:37:40
Message-ID: 23676887.26d9d.136a50e9cc0.Coremail.shuizhuyuanluo () 126 ! com
[Download RAW message or body]

hi all
I have implemented a configuration ui for my po thumbnailer plugin, but I found that \
it is impossible to get the ui translated. the thumbnailer plugin does not use kde \
export plugin macro, but uses a function symbol KDE_EXPORT ThumbCreator* \
new_creator()

let's say my po file named pothumbnail.po, and generated as pothumbail.mo installed \
to the proper destination directory. I tried
     KDE_EXPORT ThumbCreator* new_creator() {
        KLocale::setMainCatalog( "pothumbnail" );
        return new PoCreator;
    }
without success.

Besides, I found that the jpeg thumbnailer configuration ui was not translated \
either. so i wonder how to make the plugin take account i18n, or does it means some \
bug in plugin loader ?

thanks in advance

regards,
nihui


[Attachment #3 (text/html)]

<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">hi \
all<br>I have implemented a configuration ui for my po thumbnailer plugin, but I \
found that it is impossible to get the ui translated.<br>the thumbnailer plugin does \
not use kde export plugin macro, but uses a function symbol<br>KDE_EXPORT \
ThumbCreator* new_creator()<br><br>let's say my po file named pothumbnail.po, and \
generated as pothumbail.mo installed to the proper destination directory.<br>I \
tried<br>&nbsp;&nbsp;&nbsp;&nbsp; KDE_EXPORT ThumbCreator* new_creator() \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KLocale::setMainCatalog( \
"pothumbnail" );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new \
PoCreator;<br>&nbsp;&nbsp;&nbsp; }<br>without success.<br><br>Besides, I found that \
the jpeg thumbnailer configuration ui was not translated either.<br>so i wonder how \
to make the plugin take account i18n, or does it means some bug in plugin loader \
?<br><br>thanks in advance<br><br>regards  ,<br>nihui<br><br></div><br><br><span \
title="neteasefooter"><span id="netease_mail_footer"></span></span>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic