Changeset 629 for AE/installer2/src/net/oni2/aeinstaller/AEInstaller2.java
- Timestamp:
- Jan 18, 2013, 12:17:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/AEInstaller2.java
r628 r629 37 37 38 38 private static ResourceBundle imagesBundle = ResourceBundle 39 .getBundle( AEInstaller2.class.getPackage().getName() + ".Images");39 .getBundle("net.oni2.aeinstaller.Images"); 40 40 private static ResourceBundle basicBundle = ResourceBundle 41 .getBundle(AEInstaller2.class.getPackage().getName() 42 + ".AEInstaller"); 41 .getBundle("net.oni2.aeinstaller.AEInstaller"); 42 private static ResourceBundle startupBundle = ResourceBundle 43 .getBundle("net.oni2.aeinstaller.localization.Startup"); 43 44 44 45 private static Application app = null; … … 92 93 SwingJavaBuilder.getConfig().addResourceBundle(imagesBundle); 93 94 SwingJavaBuilder.getConfig().addResourceBundle(basicBundle); 95 SwingJavaBuilder.getConfig().addResourceBundle(startupBundle); 94 96 SwingJavaBuilder.getConfig().setMarkInvalidResourceBundleKeys(true); 95 97 SwingJavaBuilder.getConfig().addType("JToolBarSeparator", … … 160 162 dlUrl = "http://www.go-mono.com/mono-downloads/download.html"; 161 163 } 162 hll.setText( basicBundle.getString("dotNetMissing.text").replaceAll(164 hll.setText(startupBundle.getString("dotNetMissing.text").replaceAll( 163 165 "%1", String.format("<a href=\"%s\">%s</a>", dlUrl, dlUrl))); 164 166 JOptionPane.showMessageDialog(null, hll, 165 basicBundle.getString("dotNetMissing.title"),167 startupBundle.getString("dotNetMissing.title"), 166 168 JOptionPane.ERROR_MESSAGE); 167 169 return; … … 170 172 if (!Installer.verifyRunningDirectory()) { 171 173 JOptionPane.showMessageDialog(null, 172 basicBundle.getString("invalidPath.text"),173 basicBundle.getString("invalidPath.title"),174 startupBundle.getString("invalidPath.text"), 175 startupBundle.getString("invalidPath.title"), 174 176 JOptionPane.ERROR_MESSAGE); 175 177 if (!Settings.isDebug()) { … … 181 183 if (offline) { 182 184 JOptionPane.showMessageDialog(null, 183 basicBundle.getString("offlineMode.text"),184 basicBundle.getString("offlineMode.title"),185 startupBundle.getString("offlineMode.text"), 186 startupBundle.getString("offlineMode.title"), 185 187 JOptionPane.INFORMATION_MESSAGE); 186 188 }
Note:
See TracChangeset
for help on using the changeset viewer.