mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
[Mobile] Fix ExceptionInInitializerError forge.screens.home.NewGameMenu$NewGameScreen
- some mobile issues reported via Sentry is related to Translation errors and it should return the default original value from English locale.
This commit is contained in:
@@ -58,6 +58,14 @@ public class Localizer {
|
||||
return StandardCharsets.UTF_8.name();
|
||||
}
|
||||
|
||||
public String getMessage(final String key, String defaultValue, final Object... messageArguments) {
|
||||
try {
|
||||
return getMessage(key, messageArguments);
|
||||
} catch (Exception e) {
|
||||
return defaultValue;
|
||||
}
|
||||
}
|
||||
//FIXME: localizer should return default value from english locale or it will crash some GUI element like the NewGameMenu->NewGameScreen Popup when returned null...
|
||||
public String getMessage(final String key, final Object... messageArguments) {
|
||||
MessageFormat formatter = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user