C
charles.hajj
Hello,
I am using the ResourceBundle to load properties files for i18n
I have this strcuture :
-<My Project>
-conf
-locale
-MessageBundle.properties
-MessageBundle_en.properties
-src
-com.cha.core.locale.<MyClass>
in <MyClass> I am using the following code :
ResourceBundle messages =
ResourceBundle.getBundle("conf/locale/MessagesBundle", m_locale);
As you see, I need to isolate the configuration files in the conf
directory. The properties files are now under <Working
Dir>\conf\locale.
However, getBundle() can't find them
(java.util.MissingResourceException) unless they are under the source
directory (src in my case)
Could you please help on that issue.
I am using the ResourceBundle to load properties files for i18n
I have this strcuture :
-<My Project>
-conf
-locale
-MessageBundle.properties
-MessageBundle_en.properties
-src
-com.cha.core.locale.<MyClass>
in <MyClass> I am using the following code :
ResourceBundle messages =
ResourceBundle.getBundle("conf/locale/MessagesBundle", m_locale);
As you see, I need to isolate the configuration files in the conf
directory. The properties files are now under <Working
Dir>\conf\locale.
However, getBundle() can't find them
(java.util.MissingResourceException) unless they are under the source
directory (src in my case)
Could you please help on that issue.