Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plugin.xml not translated!
Plugin.xml not translated! [message #331331] Tue, 02 September 2008 02:39 Go to next message
yau is currently offline yauFriend
Messages: 14
Registered: July 2009
Junior Member
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
yau is currently offline yauFriend
Messages: 14
Registered: July 2009
Junior Member
"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 Go to previous message
yau is currently offline yauFriend
Messages: 14
Registered: July 2009
Junior Member
"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.
Previous Topic:Error: Unknown expression element objectClass > enablement > objectContribution : org.eclipse.
Next Topic:Mapping line numbers in an ISourceLookupParticipant
Goto Forum:
  


Current Time: Wed Jul 17 20:29:49 GMT 2024

Powered by FUDForum. Page generated in 0.04167 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top