This commit is contained in:
huangyuhui 2016-02-10 18:15:28 +08:00
parent 2f97cd8104
commit 8e8584656e

View File

@ -53,7 +53,7 @@ public enum SupportedLocales {
public String translate(String key, Object... format) {
try {
return bundle.localize(key);
return String.format(bundle.localize(key), format);
} catch (Exception ex) {
ex.printStackTrace();
return key;