Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to Internationalize Menu Items in SWT/RCP Application(I need to internationalize the menuitems of SWT/RCP application, sice RCP application will not give any control over the menuitems i am not able to change the menu as per respective language change.)
How to Internationalize Menu Items in SWT/RCP Application [message #1006136] Wed, 30 January 2013 07:21 Go to next message
Anil Kap is currently offline Anil KapFriend
Messages: 3
Registered: February 2012
Junior Member
I need to internationalize the menu items of SWT/RCP application, since RCP application will not give any control over the menu items i am not able to change the menu as per respective language change.
Re: How to Internationalize Menu Items in SWT/RCP Application [message #1006192 is a reply to message #1006136] Wed, 30 January 2013 12:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33147
Registered: July 2009
Senior Member
Anil,

Generally you put them all in a properties file and reference them in
your plugin.xml and then you have properties files for the different
locales. The Bable project has translations for many of the Eclipse
projects:
http://www.eclipse.org/babel/

On 30/01/2013 8:21 AM, Anil Kap wrote:
> I need to internationalize the menu items of SWT/RCP application,
> since RCP application will not give any control over the menu items i
> am not able to change the menu as per respective language change.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to Internationalize Menu Items in SWT/RCP Application [message #1006298 is a reply to message #1006192] Wed, 30 January 2013 17:52 Go to previous messageGo to next message
Anil Kap is currently offline Anil KapFriend
Messages: 3
Registered: February 2012
Junior Member
Merks,

Thanks for your reply.

What you have mentioned in your earlier mail is fine, I am following the same way, what you have mentioned, is there any other alternative way to change the menu labels dynamically as and when user switches the language in application.
Re: How to Internationalize Menu Items in SWT/RCP Application [message #1006365 is a reply to message #1006298] Thu, 31 January 2013 05:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33147
Registered: July 2009
Senior Member
Anil,

No, most of the frameworks use an approach that involves caching the
property information on demand and once cached, changes to the locale
have no further impact.


On 30/01/2013 6:52 PM, Anil Kap wrote:
> Merks,
>
> Thanks for your reply.
>
> What you have mentioned in your earlier mail is fine, I am following
> the same way, what you have mentioned, is there any other alternative
> way to change the menu labels dynamically as and when user switches
> the language in application.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:LNK1104: cannot open file 'kernel32.lib' (I already checked out other topics)
Next Topic:How to maintain focus after opening a resource?
Goto Forum:
  


Current Time: Tue May 14 04:58:46 GMT 2024

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

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

Back to the top