Skip to main content


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 MuellerFriend
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: Thu Apr 25 19:35:56 GMT 2024

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

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

Back to the top