i18n question

If I’ve got an English Windows version, but it is set to the region Netherlands.
What should the result be when I ask the current language and country?
I’m expecting nl,NL, but I’m getting en,US
Am I wrong in expecting this or is this an error?

Hi Jos,

I guess I know what you mean here.
To rephrase your question:

  • You have a new OS install, with the region set to the Netherlands.
  • You’re opening up a web-client and you are expecting the solution to display the dutch i18n translation, rather than the default english.

I’m not fully sure whether Servoy detects that automatically or not.
But if so, I suppose Servoy will use the ‘navigator.language’ property. (http://www.w3schools.com/jsref/prop_nav_language.asp)

What is the result when you click the ‘try it’ button on this page:
http://www.w3schools.com/jsref/tryit.as … v_language

Hi Marc,
I forgot to mention that this problem is with the Smart client.
Using your link I get the correct nl-NL value with my Formats locale set to Netherlands and en-US when it is set to English (United States) at least when I use IE.
In the smart client this setting does not show the same result. I am aware that the locale can be set in the preferences of the webclient, however we have blocked access to the smart client menu bar so the user cannot change the preferences. But I would expect the smartclient to also take into account the windows setting (just like the browser does for the webclient)

jdbruijn:
But I would expect the smartclient to also take into account the windows setting (just like the browser does for the webclient)

I’ve never depended on this.
For smart-client I always depend on the language setting of the user-account.

In the application server there’s a local setting: ‘locale.default’
The info button is referring to web-client setting, but isn’t this pushed to smart-client as well?
What is this setting like on your application server?

That setting is not set. I cannot see this as a logical setting to use in this case.
There are 2 solutions on this server and both solutions are mainly used in the Netherlands, but one of the solutions is used by a multinational that requires the application to default to en,US.

For smart-client I always depend on the language setting of the user-account.

By this you mean the setting in the smartclient preferences? How can I manipulate this if the menu bar is blocked?

jdbruijn:
By this you mean the setting in the smartclient preferences? How can I manipulate this if the menu bar is blocked?

No, I mean having a language setting in the user table.
Then on startup set the local setting accordingly.

So if lang=NL, set it to nl,NL
if lang-EN, set it to en, US

That is the same way we are inclining to use. But before that I want to make sure that Servoy does not support using the default settings from the OS (Windows in my case) for the smart client