Fix Locale issue with non-english default locales

This commit is contained in:
Manfred Karrer 2017-07-03 02:24:27 +02:00
parent a11d39ce62
commit aa4b15c007
2 changed files with 5 additions and 4 deletions

View File

@ -1481,7 +1481,6 @@ payment.accountType=Account type:
payment.checking=Checking
payment.savings=Savings
payment.personalId=Personal ID:
payment.clearXchange.selected=Your selected payment method is ClearXchange.
payment.clearXchange.info=Please be sure that you fulfill the requirements for the usage of ClearXchange.\n\n\
1. You need to have your ClearXchange account verified at their platform \
before starting a trade or creating an offer.\n\n\

View File

@ -23,16 +23,18 @@ import io.bisq.core.app.BisqExecutable;
import joptsimple.OptionException;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
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 {
private static final Logger log = LoggerFactory.getLogger(BisqAppMain.class);
public static void main(String[] args) throws Exception {
// Need to set default locale initially otherwise we get problems with non-english systems
Locale.setDefault(Locale.ENGLISH);
// We don't want to do the full argument parsing here as that might easily change in update versions
// So we only handle the absolute minimum which is APP_NAME, APP_DATA_DIR_KEY and USER_DATA_DIR
OptionParser parser = new OptionParser();