Home » Eclipse Projects » Eclipse Platform » Plugin.xml not translated!
| | |
Re: Plugin.xml not translated! [message #331348 is a reply to message #331332] |
Tue, 02 September 2008 20: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] |
Tue, 02 September 2008 21: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.
|
|
|
Goto Forum:
Current Time: Thu Mar 13 23:03:49 EDT 2025
Powered by FUDForum. Page generated in 0.02737 seconds
|