Plugin.xml not translated! [message #331331] |
Tue, 02 September 2008 02:39  |
Eclipse User |
|
|
|
Hi!
I was defined a extension for the org.eclipse.ui.views, in the plugin.xml, I
specified an stub value "%dwservice.mailNavigator" for the "name" attribute
of the view, as following:
<view
class="org.eclipse.ui.navigator.CommonNavigator"
icon="icons/mail-navigator-icon.gif"
id="cn.com.dwservice.mail.MailNavigator"
name="%dwservice.mailNavigator"
restorable="true">
</view>
And in the plugin.properties I have made an translate entry for it.
At design time, it is OK, the IDE show the correct translated name in the
extensions editor, but at runtime, the view's tab text shows the raw value
"%dwservice.mailNavigator".
What's wrong?
-yau
|
|
|
Re: Plugin.xml not translated! [message #331332 is a reply to message #331331] |
Tue, 02 September 2008 06:14   |
Eclipse User |
|
|
|
Originally posted by: subs._nospam_consertum.com
yau wrote:
> Hi!
>
> I was defined a extension for the org.eclipse.ui.views, in the plugin.xml, I
> specified an stub value "%dwservice.mailNavigator" for the "name" attribute
> of the view, as following:
>
> <view
> class="org.eclipse.ui.navigator.CommonNavigator"
> icon="icons/mail-navigator-icon.gif"
> id="cn.com.dwservice.mail.MailNavigator"
> name="%dwservice.mailNavigator"
> restorable="true">
> </view>
>
> And in the plugin.properties I have made an translate entry for it.
>
> At design time, it is OK, the IDE show the correct translated name in the
> extensions editor, but at runtime, the view's tab text shows the raw value
> "%dwservice.mailNavigator".
>
> What's wrong?
>
> -yau
>
>
Have you included plugin.properites in the build?
--
Derek
|
|
|
Re: Plugin.xml not translated! [message #331338 is a reply to message #331331] |
Tue, 02 September 2008 14:40   |
Eclipse User |
|
|
|
Originally posted by: zx.code9.com
yau wrote:
> Hi!
>
> I was defined a extension for the org.eclipse.ui.views, in the plugin.xml, I
> specified an stub value "%dwservice.mailNavigator" for the "name" attribute
> of the view, as following:
>
> <view
> class="org.eclipse.ui.navigator.CommonNavigator"
> icon="icons/mail-navigator-icon.gif"
> id="cn.com.dwservice.mail.MailNavigator"
> name="%dwservice.mailNavigator"
> restorable="true">
> </view>
>
> And in the plugin.properties I have made an translate entry for it.
>
> At design time, it is OK, the IDE show the correct translated name in the
> extensions editor, but at runtime, the view's tab text shows the raw value
> "%dwservice.mailNavigator".
>
> What's wrong?
Are you missing Bundle-Localization: plugin
in your MANIFEST.MF?
Cheers,
~ Chris
|
|
|
Re: Plugin.xml not translated! [message #331348 is a reply to message #331332] |
Wed, 03 September 2008 00:46   |
Eclipse User |
|
|
|
"Derek" <subs@_nospam_consertum.com>
??????:g9ilkh$7rk$1@build.eclipse.org...
> yau wrote:
>> Hi!
>>
>> I was defined a extension for the org.eclipse.ui.views, in the
>> plugin.xml, I specified an stub value "%dwservice.mailNavigator" for the
>> "name" attribute of the view, as following:
>>
>> <view
>> class="org.eclipse.ui.navigator.CommonNavigator"
>> icon="icons/mail-navigator-icon.gif"
>> id="cn.com.dwservice.mail.MailNavigator"
>> name="%dwservice.mailNavigator"
>> restorable="true">
>> </view>
>>
>> And in the plugin.properties I have made an translate entry for it.
>>
>> At design time, it is OK, the IDE show the correct translated name in the
>> extensions editor, but at runtime, the view's tab text shows the raw
>> value "%dwservice.mailNavigator".
>>
>> What's wrong?
>>
>> -yau
> Have you included plugin.properites in the build?
>
> --
> Derek
>
No, I have not, but the problem as of old after I includes the
plugin.properties into build, the problem actually is I am missing following
line:
Bundle-Localization: plugin
in my plugin's MANIFEST.MF.
Yau K.J
|
|
|
Re: Plugin.xml not translated! [message #331349 is a reply to message #331338] |
Wed, 03 September 2008 01:01  |
Eclipse User |
|
|
|
"Chris Aniszczyk" <zx@code9.com> ??????:g9jj9d$gmk$1@build.eclipse.org...
> yau wrote:
>> Hi!
>>
>> I was defined a extension for the org.eclipse.ui.views, in the
>> plugin.xml, I specified an stub value "%dwservice.mailNavigator" for the
>> "name" attribute of the view, as following:
>>
>> <view
>> class="org.eclipse.ui.navigator.CommonNavigator"
>> icon="icons/mail-navigator-icon.gif"
>> id="cn.com.dwservice.mail.MailNavigator"
>> name="%dwservice.mailNavigator"
>> restorable="true">
>> </view>
>>
>> And in the plugin.properties I have made an translate entry for it.
>>
>> At design time, it is OK, the IDE show the correct translated name in the
>> extensions editor, but at runtime, the view's tab text shows the raw
>> value "%dwservice.mailNavigator".
>>
>> What's wrong?
>
> Are you missing Bundle-Localization: plugin
> in your MANIFEST.MF?
>
> Cheers,
>
> ~ Chris
Yes, you are right. Thank you very much!
The other thing I'd like to say is the 2 article on
www.eclipse.org/resources/ :
<<How to Internationalize your Eclipse Plug-In>>
<<How to Test Your Internationalized Eclipse Plug-In>>
was not point out this requirement for translation of the plugin.xml.
I think it may be helpful for the newer if the above articles point out this
information and if my problem is a common case.
Yau K.J.
|
|
|
Powered by
FUDForum. Page generated in 0.03477 seconds