I am creating a standalone SWT/JFace application.
I used to use plain old SWT MessageBox:
int style = SWT.APPLICATION_MODAL | SWT.YES | SWT.NO;
MessageBox messageBox = new MessageBox (getShell(), style);
messageBox.setText ("Question");
messageBox.setMessage ("So?");
boolean result = messageBox.open() == SWT.YES;
I try to switch to JFace MessageDialog
boolean result = MessageDialog.openQuestion(getShell(), "Question", "So?");
The problem I have is that in SWT, the Yes and No button labels are translated in my language, while in JFace it is not the case. Any idea?
My referenced jars are swt 3.8.0, jface 3.8.0, and jface dependencies core.commands 3.6.1 and equinox.common 3.6.100.