Changeset 1058 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2008-10-28T22:13:12+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r1048 r1058 3 3 package org.openstreetmap.josm.gui; 4 4 5 import org.xnap.commons.i18n.I18nFactory; 6 import static org.openstreetmap.josm.tools.I18n.i18n; 5 7 import static org.openstreetmap.josm.tools.I18n.tr; 8 6 9 7 10 import java.awt.EventQueue; … … 16 19 import java.util.LinkedList; 17 20 import java.util.List; 21 import java.util.Locale; 18 22 import java.util.Map; 19 23 … … 25 29 import org.openstreetmap.josm.tools.BugReportExceptionHandler; 26 30 import org.openstreetmap.josm.tools.ImageProvider; 31 27 32 /** 28 33 * Main window class application. … … 159 164 Main.pref.save(); 160 165 } 166 167 168 String localeName = null; //The locale to use 169 170 //Check if passed as parameter 171 if(args.containsKey("language")) 172 localeName = (String)(args.get("language").toArray()[0]); 173 174 //TODO: Check preferences for language 175 176 //If override then set new default locale - otherwise, override 177 if (localeName != null) { 178 Locale.setDefault(new Locale(localeName)); 179 } 180 181 i18n = I18nFactory.getI18n(MainApplication.class); 182 161 183 SplashScreen splash = new SplashScreen(Main.pref.getBoolean("draw.splashscreen", true)); 162 163 String language = null;164 if(args.containsKey("language"))165 language = (String)(args.get("language").toArray()[0]);166 184 167 185 splash.setStatus(tr("Activating updated plugins")); … … 174 192 // load the early plugins 175 193 splash.setStatus(tr("Loading early plugins")); 176 Main.loadPlugins(true , language);194 Main.loadPlugins(true); 177 195 178 196 splash.setStatus(tr("Setting defaults")); … … 183 201 final Main main = new MainApplication(mainFrame); 184 202 splash.setStatus(tr("Loading plugins")); 185 Main.loadPlugins(false , null);203 Main.loadPlugins(false); 186 204 toolbar.refreshToolbarControl(); 187 205
Note:
See TracChangeset
for help on using the changeset viewer.