I want to change text of button in org.eclipse.jface.wizard.Wizard
to arabic in button bar?
I mean I wanna change label "Next" button to "بعدی".
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The language of the Wizard
's labels is handled by JFace and uses your OS's region settings. That means if you're machine is set to "English (UK)" you will see the labels in English, if it's set to "Germany" you'll see them in German, etc.
There are related questions here:
- JFace dialog button translation
- How to set custom text on buttons in JFace Wizard (Java)
Update:
If you're using a WizardDialog
you can override the method createButtonsForButtonBar(Composite parent)
like it's done here.