# Locale:i18n translations in dutch and . as decimal separator

**URL:** <https://forum.servoy.com/t/locale-i18n-translations-in-dutch-and-as-decimal-separator/18402>\
**Category:** Classic Servoy\
**Created:** [March 17, 2015, 3:48pm UTC](https://forum.servoy.com/t/locale-i18n-translations-in-dutch-and-as-decimal-separator/18402 "2015-03-17T15:48:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robrecht](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@robrecht](https://forum.servoy.com/u/robrecht)\
**Post date:** [March 17, 2015, 3:48pm UTC](https://forum.servoy.com/t/locale-i18n-translations-in-dutch-and-as-decimal-separator/18402/1 "2015-03-17T15:48:18Z")

</div>

Hi,

We want to use the decimal character on the numeric keypad as a point instead of a comma in smart clients.

I tested a little bit with the locale settings : my localhost is now on default locale ‘en,US’ in admin pages  
On startup the . character is correctly used by the numpad as a point. But after logging in we switch the i18n locale to ‘nl,BE’ for dutch translations : i18.setLocale(‘nl’,‘BE’)  
All text fields on forms that are loaded after this switch have the comma as separator…

What is the correct way to do this : translation tables in Dutch and decimal character on numpad as a point in text field entry?

Thanks  
Robrecht

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 23, 2015, 3:36pm UTC](https://forum.servoy.com/t/locale-i18n-translations-in-dutch-and-as-decimal-separator/18402/2 "2015-03-23T15:36:50Z")

</div>

this is a feature that is build into servoy already for a very long time

The decimal key of the keyboard will insert the decimal char of the locale (and thats the , in nl/be and . in en/us)

you can’t currently control or override this behavior

---

<div class="post-metadata">

**Author:** ![robrecht](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@robrecht](https://forum.servoy.com/u/robrecht)\
**Post date:** [March 31, 2015, 10:02am UTC](https://forum.servoy.com/t/locale-i18n-translations-in-dutch-and-as-decimal-separator/18402/3 "2015-03-31T10:02:55Z")

</div>

Johan,

In webclient the behaviour is correct.  
Shouldn’t the smartclient take the settings from my OS ? I defined the decimal separator as a point so whenever I use it in other programs the . is showed correctly  
Is there a possibility you fix this when I make a support case ?

Robrecht

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 1, 2015, 2:02pm UTC](https://forum.servoy.com/t/locale-i18n-translations-in-dutch-and-as-decimal-separator/18402/4 "2015-04-01T14:02:41Z")

</div>

you can make a case, but we are following what the java locale settings are giving us. And that gives us that the decimal separator is a , which is correct for the dutch locale.

don’t think we have do much more by just getting and using what java gives us
