Skip to content

Commit

Permalink
Merge pull request #1313 from blabno/feature/1204-use-environment-loc…
Browse files Browse the repository at this point in the history
…ale-to-select-right-locale-and-currency

Use environment locale to select right locale and currency
  • Loading branch information
ManfredKarrer authored Feb 13, 2018
2 parents ed0148b + 4b0692c commit 224a91b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion common/src/main/java/io/bisq/common/GlobalSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

public class GlobalSettings {
private static boolean useAnimations = true;
private static Locale locale = new Locale("en", "US");
private static Locale locale = Locale.getDefault();
private static final ObjectProperty<Locale> localeProperty = new SimpleObjectProperty<>(locale);
private static TradeCurrency defaultTradeCurrency;
private static String btcDenomination;
Expand Down
5 changes: 0 additions & 5 deletions gui/src/main/java/io/bisq/gui/app/BisqAppMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,12 @@
import joptsimple.OptionParser;
import joptsimple.OptionSet;

import java.util.Locale;

import static io.bisq.core.app.BisqEnvironment.DEFAULT_APP_NAME;
import static io.bisq.core.app.BisqEnvironment.DEFAULT_USER_DATA_DIR;

public class BisqAppMain extends BisqExecutable {

static {
// Need to set default locale initially otherwise we get problems at non-english OS
Locale.setDefault(new Locale("en", Locale.getDefault().getCountry()));

Utilities.removeCryptographyRestrictions();
}

Expand Down

0 comments on commit 224a91b

Please sign in to comment.