I have a product I built in the US. A friend in Poland was testing it today and the localized number formatting created some exceptions.
I would like to simulate running my program in Poland or Germany so that I can recreate those errors before I fix them. I thought it was as simple as setting the Locale, but every attempt seems to have no effect. I have called Locale.setDefault, and passed in -Duser.language=de_DE as VM args. But the numbers are always formatted in the US format (i.e. 1,000.00). But my friend loads the app and he see's 1.000,0.
Does anyone know how I can test my java application in Germany or Poland locale so I can see this formatting by default?
Usually, I set the locale information through control panel -> region and language
(note that this is on Windows
).
Or if you want to set it via JVM arguments, I think it should be something like this.
-Duser.language=de
-Duser.country=DE
you can check here for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With