How to use/set LocalizationBundle.properties files correctly

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
DanDare
Posts: 1
Joined: Mon Jun 17, 2019 1:01 am
antibot: No, of course not.

How to use/set LocalizationBundle.properties files correctly

Post by DanDare » Mon Jun 17, 2019 1:09 am

Hi,
I'm trying to use a different LocalizationBundle.properties file, been searching where's set in the code. For now the only part i can find reference is in the file ChartPanel.java.
Tried changing the line
protected static ResourceBundle localizationResources = ResourceBundleWrapper.getBundle("org.jfree.chart.LocalizationBundle");
accordingly, but it doesn't work.

What's the right way to do it? Should I just rename whatever localization file to 'LocalizationBundle.properties' and try?

Thanks!

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: How to use/set LocalizationBundle.properties files correctly

Post by david.gilbert » Mon Jul 01, 2019 2:19 am

The correct file will be picked up automatically based on the default locale of the user's runtime Java Virtual Machine.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked