问题
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.
来源:https://stackoverflow.com/questions/24614399/how-can-i-change-buttonss-text-in-org-eclipse-jface-wizard-wizard