Optional messages

Closes #86
This commit is contained in:
Kai committed 2017-01-16 22:36:04 +01:00
1 parent 771e060781
commit 69c6041580
1 file changed
+4 -1
@@ -275,9 +275,12 @@ public class MsgUtil {
public static String getMessage(String loc, String... args) {
String raw = messages.getString(loc);
if (raw == null || raw.isEmpty()) {
if (raw == null) {
return "Invalid message: " + loc;
}
if (raw.isEmpty()) {
return "";
}
if (args == null) {
return raw;
}