Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does the Locale fallback not work as expected?

locale
0
Posted

Why does the Locale fallback not work as expected?

0

You created a messages.properties file and several messages_XX.properties files for different locales. You expect the system to use the messages.properties file as a fallback when no messages_XX.file is found for the locale in question. But that’s not how RWT works. If a properties file is not found for the locale in question, RWT tries the default locale, i.e. Locale.getDefault(). This is usually the VM’s locale. So if your VM is set to German, and there is a messages_de.properties file, you’ll get German. If you want to have English as your fallback, set your VM to English.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123