Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSWT FileDialog on Mac not localized
https://www.eclipse.org/forums/index.php/mv/msg/488310/1061502/#msg_1061502
I am building a SWT application on OS X Mountain Lion 10.8.3 with SWT Cocoa 4.2.
Turns out, the FileDialog is not correctly localized, buttons and labels are always in English, although my system language setting is German.
Other SWT system dialogs like the MessageBox show German buttons therefore I assume SWT has correctly picked up my locale.
Does anybody have an idea how to fix this?
This is the code:
FileDialog fileChooser = new FileDialog(shell, SWT.OPEN);
fileChooser.setFilterPath(toFilterPath(lastPath));
fileChooser.setFilterExtensions(OPEN_FILTER_EXTENSIONS);
fileChooser.setFilterNames(OPEN_FILTER_NAMES);
String filename = fileChooser.open();