[New] Added I18nMessage.toString()

This commit is contained in:
Robert von Burg 2022-06-27 16:41:43 +02:00
parent 74cddd997d
commit 5764201470
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 5 additions and 0 deletions

View File

@ -231,6 +231,11 @@ public class I18nMessage {
return true;
}
@Override
public String toString() {
return getMessage(Locale.getDefault());
}
private ResourceBundle findBundle(String baseName) {
if (baseName.isEmpty())
return null;