[New] Added I18n*Bundles for quick i18n

This commit is contained in:
Robert von Burg 2019-08-27 08:30:53 +02:00
parent 2a0a59f71b
commit 44f7ed163e
4 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,7 @@
package li.strolch.agent;
import java.util.ResourceBundle;
public class I18nAgentBundle {
public static final ResourceBundle i18nAgentBundle = ResourceBundle.getBundle("strolch-agent");
}

View File

@ -81,7 +81,7 @@ public class LogMessage extends I18nMessage {
}
@Override
public LogMessage value(String key, String value) {
public LogMessage value(String key, Object value) {
super.value(key, value);
return this;
}

View File

@ -0,0 +1,7 @@
package li.strolch.service;
import java.util.ResourceBundle;
public class I18nServiceBundle {
public static final ResourceBundle i18nServiceBundle = ResourceBundle.getBundle("strolch-service");
}

View File

@ -1,3 +1,4 @@
execution.handler.invalidState=ExecutionHandler has state {state}, can not start new jobs!
execution.handler.failed.execution=Failed to set to execution due to {reason}
execution.handler.failed.executed=Failed to set to execution due to {reason}
execution.handler.failed.stopped=Failed to set to execution due to {reason}