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

List:       kde-i18n-doc
Subject:    Re: i18n for thumbnailer plugin configuration widget
From:       nihui  <shuizhuyuanluo () 126 ! com>
Date:       2012-04-14 4:27:12
Message-ID: 1dce7609.16b3d.136af1ad182.Coremail.shuizhuyuanluo () 126 ! com
[Download RAW message or body]

The attachment is my source
The configuration widget is used to adjust color settings.

I prepare to make another release[1] once the i18n issue resolved.

regards,
nihui


[1] http://kde-apps.org/content/show.php/KDE+PO+Thumbnailer?content=142036

At 2012-04-13 00:33:33,"Albert Astals Cid" <aacid@kde.org> wrote:
>El Dijous, 12 d'abril de 2012, a les 13:37:40, nihui va escriure:
>> hi all
>
>Hi
>
>> 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.
>
>It should work, show me the code and i'll fix it for you.
>
>Cheers,
>  Albert
>
>> 
>> 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">The \
attachment is my source<br>The configuration widget is used to adjust color \
settings.<br><br>I prepare to make another release[1] once the i18n issue \
resolved.<br><br>regards,<br>nihui<br><div></div><div \
id="divNeteaseMailCard"></div><br> [1] \
http://kde-apps.org/content/show.php/KDE+PO+Thumbnailer?content=142036<pre><br>At&nbsp \
;2012-04-13&nbsp;00:33:33,"Albert&nbsp;Astals&nbsp;Cid"&nbsp;&lt;aacid@kde.org&gt;&nbsp;wrote:
 &gt;El&nbsp;Dijous,&nbsp;12&nbsp;d'abril&nbsp;de&nbsp;2012,&nbsp;a&nbsp;les&nbsp;13:37:40,&nbsp;nihui&nbsp;va&nbsp;escriure:
 &gt;&gt;&nbsp;hi&nbsp;all
&gt;
&gt;Hi
&gt;
&gt;&gt;&nbsp;I&nbsp;have&nbsp;implemented&nbsp;a&nbsp;configuration&nbsp;ui&nbsp;for&nbsp;my&nbsp;po&nbsp;thumbnailer&nbsp;plugin,&nbsp;but&nbsp;I
 &gt;&gt;&nbsp;found&nbsp;that&nbsp;it&nbsp;is&nbsp;impossible&nbsp;to&nbsp;get&nbsp;the&nbsp;ui&nbsp;translated.&nbsp;the&nbsp;thumbnailer
 &gt;&gt;&nbsp;plugin&nbsp;does&nbsp;not&nbsp;use&nbsp;kde&nbsp;export&nbsp;plugin&nbsp;macro,&nbsp;but&nbsp;uses&nbsp;a&nbsp;function&nbsp;symbol
 &gt;&gt;&nbsp;KDE_EXPORT&nbsp;ThumbCreator*&nbsp;new_creator()
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;let's&nbsp;say&nbsp;my&nbsp;po&nbsp;file&nbsp;named&nbsp;pothumbnail.po,&nbsp;and&nbsp;generated&nbsp;as&nbsp;pothumbail.mo
 &gt;&gt;&nbsp;installed&nbsp;to&nbsp;the&nbsp;proper&nbsp;destination&nbsp;directory.&nbsp;I&nbsp;tried
 &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KDE_EXPORT&nbsp;ThumbCreator*&nbsp;new_creator()&nbsp;{
 &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KLocale::setMainCatalog(&nbsp;"pothumbnail"&nbsp;);
 &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;new&nbsp;PoCreator;
 &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&gt;&gt;&nbsp;without&nbsp;success.
&gt;
&gt;It&nbsp;should&nbsp;work,&nbsp;show&nbsp;me&nbsp;the&nbsp;code&nbsp;and&nbsp;i'll&nbsp;fix&nbsp;it&nbsp;for&nbsp;you.
 &gt;
&gt;Cheers,
&gt;&nbsp;&nbsp;Albert
&gt;
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;Besides,&nbsp;I&nbsp;found&nbsp;that&nbsp;the&nbsp;jpeg&nbsp;thumbnailer&nbsp;configuration&nbsp;ui&nbsp;was&nbsp;not
 &gt;&gt;&nbsp;translated&nbsp;either.&nbsp;so&nbsp;i&nbsp;wonder&nbsp;how&nbsp;to&nbsp;make&nbsp;the&nbsp;plugin&nbsp;take&nbsp;account&nbsp;i18n,&nbsp;or
 &gt;&gt;&nbsp;does&nbsp;it&nbsp;means&nbsp;some&nbsp;bug&nbsp;in&nbsp;plugin&nbsp;loader&nbsp;?
 &gt;&gt;&nbsp;
&gt;&gt;&nbsp;thanks&nbsp;in&nbsp;advance
&gt;&gt;&nbsp;
&gt;&gt;&nbsp;regards,
&gt;&gt;&nbsp;nihui
</pre></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