Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Different Action name depending on the OS (Operation System)(Different Action name depending on the OS (Operation System))
Different Action name depending on the OS (Operation System) [message #718981] Thu, 25 August 2011 17:21 Go to next message
Randy Hudson is currently offline Randy HudsonFriend
Messages: 123
Registered: July 2009
Senior Member
I have an object contribution containing a single action. I would like the action's label to be different depending on the os. For example, using the term "Explorer" on windows, and "Finder" on macosx.
Re: Different Action name depending on the OS (Operation System) [message #719126 is a reply to message #718981] Fri, 26 August 2011 07:03 Go to previous message
Eclipse UserFriend
Originally posted by:

On 2011-08-25 19:21, Randy Hudson wrote:
> I have an object contribution containing a single action. I would like
> the action's label to be different depending on the os. For example,
> using the term "Explorer" on windows, and "Finder" on macosx.

This is solvable via internationalization combined with fragments. You
just have to define fragment bundles to your the bundle which contains
the message property files which contain the OS-specific labels. The
effect will be that property files from the corresponding fragment will
be used. You have to ensure that each fragment has a mutually exclusive
constraint for the corresponding OS.

HTH & Greetings from Bremen,

- Daniel Krügler
Previous Topic:Drag and drop on view's tab
Next Topic:Delete and recreate file under vcs
Goto Forum:
  


Current Time: Thu Apr 25 19:09:10 GMT 2024

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

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

Back to the top