Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT FileDialog on Mac not localized
SWT FileDialog on Mac not localized [message #1061502] Sat, 01 June 2013 09:01
Tim Mueller is currently offline Tim Mueller
Messages: 1
Registered: June 2013
Junior Member
Hi,

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();

Regards,
Tim
Previous Topic:[GTK-Linux] All context disappeared when open embedded view
Next Topic:SWT Browser, loading a page and javascripts from file system.
Goto Forum:
  


Current Time: Tue Sep 23 10:32:02 GMT 2014

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

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