Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » RCP & Undo Action Label problem
RCP & Undo Action Label problem [message #261037] Tue, 13 July 2004 05:09 Go to next message
Eclipse UserFriend
Hi,
I am trying to internationlize my RCP application but I do not succeed to
display default actions like cut/copy/paste in a MenuManager in another
language than english.

The setText() on IWorkbenchAction seems to do not have effects.

Does anyone have a solution ?

Here is my code :

MenuManager menu = new MenuManager(TodanAppMessages.EDIT_MENU_LABEL,
IWorkbenchActionConstants.M_EDIT);
menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
ActionFactory.IWorkbenchAction undo = ActionFactory.UNDO.create(window);
undo.setText(TodanAppMessages.EDIT_UNDO_ITEM_LABEL);
undo.setToolTipText(TodanAppMessages.EDIT_UNDO_ITEM_LABEL);
menu.add(undo);
....
Re: RCP & Undo Action Label problem [message #261066 is a reply to message #261037] Tue, 13 July 2004 06:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

Stephane fournier <stephane.fournier@netcourrier.com> wrote:

I am sure there are some articles about this, but I just get
messages.properties from org.ui.workbench.messages (from package
org.eclipse.ui.internal), rename it to messages_ru.properties and change
messages for actions and other Eclipse elements. I place this file in
separate fragment plugin.

> I am trying to internationlize my RCP application but I do not succeed to
> display default actions like cut/copy/paste in a MenuManager in another
> language than english.

> The setText() on IWorkbenchAction seems to do not have effects.

> Does anyone have a solution ?

> Here is my code :

> MenuManager menu = new MenuManager(TodanAppMessages.EDIT_MENU_LABEL,
> IWorkbenchActionConstants.M_EDIT);
> menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
> ActionFactory.IWorkbenchAction undo = ActionFactory.UNDO.create(window);
> undo.setText(TodanAppMessages.EDIT_UNDO_ITEM_LABEL);
> undo.setToolTipText(TodanAppMessages.EDIT_UNDO_ITEM_LABEL);
> menu.add(undo);
> ...


--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: RCP & Undo Action Label problem [message #261202 is a reply to message #261066] Tue, 13 July 2004 11:48 Go to previous message
Eclipse UserFriend
Thanks it works !!
Konstantin Scheglov wrote:

> Stephane fournier <stephane.fournier@netcourrier.com> wrote:

> I am sure there are some articles about this, but I just get
> messages.properties from org.ui.workbench.messages (from package
> org.eclipse.ui.internal), rename it to messages_ru.properties and change
> messages for actions and other Eclipse elements. I place this file in
> separate fragment plugin.

> > I am trying to internationlize my RCP application but I do not succeed to
> > display default actions like cut/copy/paste in a MenuManager in another
> > language than english.

> > The setText() on IWorkbenchAction seems to do not have effects.

> > Does anyone have a solution ?

> > Here is my code :

> > MenuManager menu = new MenuManager(TodanAppMessages.EDIT_MENU_LABEL,
> > IWorkbenchActionConstants.M_EDIT);
> > menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
> > ActionFactory.IWorkbenchAction undo = ActionFactory.UNDO.create(window);
> > undo.setText(TodanAppMessages.EDIT_UNDO_ITEM_LABEL);
> > undo.setToolTipText(TodanAppMessages.EDIT_UNDO_ITEM_LABEL);
> > menu.add(undo);
> > ...
Previous Topic:Exception launching Eclipse Platform
Next Topic:Problems kicking the compatibility habit
Goto Forum:
  


Current Time: Wed Jun 25 18:09:28 EDT 2025

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

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

Back to the top