Skip to content

Commit

Permalink
Merge pull request #1371 from blabno/bugfix/1357-not-possible-to-sele…
Browse files Browse the repository at this point in the history
…ct-english

Not possible to select `English` anymore, if system locale is non-English
  • Loading branch information
ManfredKarrer authored Feb 19, 2018
2 parents fbc2761 + 5471a8c commit 1723172
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 1723172

Please sign in to comment.