Fix resourceBundleLoading
Dieser Commit ist enthalten in:
Ursprung
aebd4dde1b
Commit
4c290d5d3c
@ -35,9 +35,11 @@ import java.util.ResourceBundle;
|
|||||||
public class Message {
|
public class Message {
|
||||||
|
|
||||||
private final String resourceBundleName;
|
private final String resourceBundleName;
|
||||||
|
private final ClassLoader classLoader;
|
||||||
|
|
||||||
public Message(String resourceBundleName){
|
public Message(String resourceBundleName, ClassLoader classLoader){
|
||||||
this.resourceBundleName = resourceBundleName;
|
this.resourceBundleName = resourceBundleName;
|
||||||
|
this.classLoader = classLoader;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parsing input to a message */
|
/* Parsing input to a message */
|
||||||
@ -61,7 +63,7 @@ public class Message {
|
|||||||
else
|
else
|
||||||
locale = Locale.getDefault();
|
locale = Locale.getDefault();
|
||||||
|
|
||||||
ResourceBundle resourceBundle = ResourceBundle.getBundle(resourceBundleName, locale);
|
ResourceBundle resourceBundle = ResourceBundle.getBundle(resourceBundleName, locale, classLoader);
|
||||||
String pattern = "";
|
String pattern = "";
|
||||||
if(prefixed)
|
if(prefixed)
|
||||||
pattern = resourceBundle.getObject("PREFIX") + " ";
|
pattern = resourceBundle.getObject("PREFIX") + " ";
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren