K
keepa
I am trying to load some resources but it is failing with a
MissingResourceException.
First, I have defined my resources as such:
public class AssyrianResources_at extends ListResourceBundle
{
// resoruces here
}
then I attempt to load it like this:
Locale locale = new Locale("at");
ResourceBundle getBundle("AssyrianResources", locale);
But this fails with a MissingResourceException.
Any ideas? It seems it cannot find my resource class. It is in the same
directory as all of my other class files.
On a related note, when I attempt to format a date with the above
locale ("at"), it fails ( I get the default American locale). The code
looks like this:
Locale locale = new Locale("at");
GregorianCalendar cal = new GregorianCalendar();
String format = "a format string";
String result = String.format(locale, format, cal);
This gives me an English formatted date, not an Assyrian formatted
date. I assume it is related to the above, where it cannot find the
resource bundle.
MissingResourceException.
First, I have defined my resources as such:
public class AssyrianResources_at extends ListResourceBundle
{
// resoruces here
}
then I attempt to load it like this:
Locale locale = new Locale("at");
ResourceBundle getBundle("AssyrianResources", locale);
But this fails with a MissingResourceException.
Any ideas? It seems it cannot find my resource class. It is in the same
directory as all of my other class files.
On a related note, when I attempt to format a date with the above
locale ("at"), it fails ( I get the default American locale). The code
looks like this:
Locale locale = new Locale("at");
GregorianCalendar cal = new GregorianCalendar();
String format = "a format string";
String result = String.format(locale, format, cal);
This gives me an English formatted date, not an Assyrian formatted
date. I assume it is related to the above, where it cannot find the
resource bundle.