Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Need the local country setting in a variable
Need the local country setting in a variable [message #1764279] Sat, 27 May 2017 17:47 Go to next message
Source Deposit is currently offline Source DepositFriend
Messages: 13
Registered: March 2017
Junior Member

The translations are available in org.eclipse.scout.xxx.shared -> Texts.nls

The translations are controlled independently by the scout framework. But how?

For my development, I need the "local country setting" in a variable. How do I get this value?
Re: Need the local country setting in a variable [message #1764354 is a reply to message #1764279] Mon, 29 May 2017 05:13 Go to previous messageGo to next message
Matthias OtterbachFriend
Messages: 55
Registered: August 2015
Location: Munich
Member
Scout uses implementations of ITextProviderService to access the translations. As these are also just beans, one can easily create additional ones or subclass existing ones.

If you want to access the locale within your application you could try to call

Locale l = NlsLocale.get();
String c = l.getCountry();
Re: Need the local country setting in a variable [message #1764619 is a reply to message #1764354] Wed, 31 May 2017 19:46 Go to previous message
Source Deposit is currently offline Source DepositFriend
Messages: 13
Registered: March 2017
Junior Member

Hy Matthias,

thanks so lot ... it works very cool ...
Previous Topic:Scout paid support?
Next Topic:Neon to Oxygen: Recommended approach
Goto Forum:
  


Current Time: Wed Apr 24 15:29:25 GMT 2024

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

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

Back to the top