Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Change localization of search mask
Change localization of search mask [message #1736145] Mon, 27 June 2016 07:01 Go to next message
Nico Linder is currently offline Nico LinderFriend
Messages: 8
Registered: June 2016
Junior Member
Hello.

We are developing an application with NatTable right now in English, but I guess because the language of our computers is German the in NatTable included search dialog is also German. Is there a way to tell NatTable to use english localization?

Thanks for your help!
Re: Change localization of search mask [message #1736190 is a reply to message #1736145] Mon, 27 June 2016 12:13 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
By default it uses the default locale which is typically determined via system locale. To change it you can call

org.eclipse.nebula.widgets.nattable.Messages.changeLocale(Locale.ENGLISH);


which was introduced with NatTable 1.4.

The other option would be to set the default locale to Locale.EN on startup via

Locale.setDefault(Locale.ENGLISH);
Re: Change localization of search mask [message #1736194 is a reply to message #1736190] Mon, 27 June 2016 12:24 Go to previous message
Nico Linder is currently offline Nico LinderFriend
Messages: 8
Registered: June 2016
Junior Member
That was easy... Very Happy
Thanks!
Previous Topic:In NatTable hide horizontal scrollbar with out disturbing vertical scrolling
Next Topic:Column Group Header Rename
Goto Forum:
  


Current Time: Wed Sep 19 02:02:39 GMT 2018

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

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

Back to the top