Skip to content

Commit

Permalink
Not possible to select English anymore, if system locale is non-Eng…
Browse files Browse the repository at this point in the history
…lish
  • Loading branch information
Bernard Labno committed Feb 19, 2018
1 parent 2d2db40 commit 5471a8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/src/main/java/io/bisq/common/locale/Res.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public class Res {

static {
GlobalSettings.localeProperty().addListener((observable, oldValue, newValue) -> {
if ("en".equalsIgnoreCase(newValue.getLanguage()))
newValue = Locale.ROOT;
resourceBundle = ResourceBundle.getBundle("i18n.displayStrings", newValue, new UTF8Control());
});
}
Expand Down Expand Up @@ -141,4 +143,4 @@ public ResourceBundle newBundle(String baseName, @NotNull Locale locale, @NotNul
}
return bundle;
}
}
}

0 comments on commit 5471a8c

Please sign in to comment.