Locale set as default

This commit is contained in:
Jindra Petk
2013-07-16 13:30:24 +02:00
parent 0085aedca0
commit bde96c9298
4 changed files with 5 additions and 5 deletions

View File

@@ -465,10 +465,10 @@ public class Main {
* @throws IOException
*/
public static void main(String[] args) throws IOException {
Locale.setDefault(Locale.GERMAN);
loadProperties();
View.setLookAndFeel();
Configuration.loadFromFile(getConfigFile(), getReplacementsFile());
Locale.setDefault(Locale.forLanguageTag((String) Configuration.getConfig("locale", Locale.getDefault())));
if ((Boolean) Configuration.getConfig("cacheOnDisk", Boolean.TRUE)) {
Cache.setStorageType(Cache.STORAGE_FILES);