| 39 |
|
.getBundle("net.oni2.aeinstaller.Images"); |
| 40 |
|
private static ResourceBundle basicBundle = ResourceBundle |
| 41 |
|
.getBundle("net.oni2.aeinstaller.AEInstaller"); |
| 42 |
< |
private static ResourceBundle startupBundle = ResourceBundle |
| 43 |
< |
.getBundle("net.oni2.aeinstaller.localization.Startup"); |
| 42 |
> |
private static ResourceBundle globalBundle = ResourceBundle |
| 43 |
> |
.getBundle("net.oni2.aeinstaller.localization.Global"); |
| 44 |
|
|
| 45 |
|
private static Application app = null; |
| 46 |
|
|
| 92 |
|
|
| 93 |
|
SwingJavaBuilder.getConfig().addResourceBundle(imagesBundle); |
| 94 |
|
SwingJavaBuilder.getConfig().addResourceBundle(basicBundle); |
| 95 |
< |
SwingJavaBuilder.getConfig().addResourceBundle(startupBundle); |
| 95 |
> |
SwingJavaBuilder.getConfig().addResourceBundle(globalBundle); |
| 96 |
|
SwingJavaBuilder.getConfig().setMarkInvalidResourceBundleKeys(true); |
| 97 |
|
SwingJavaBuilder.getConfig().addType("JToolBarSeparator", |
| 98 |
|
JToolBar.Separator.class); |
| 163 |
|
default: |
| 164 |
|
dlUrl = "http://www.go-mono.com/mono-downloads/download.html"; |
| 165 |
|
} |
| 166 |
< |
hll.setText(startupBundle |
| 166 |
> |
hll.setText(globalBundle |
| 167 |
|
.getString("dotNetMissing.text") |
| 168 |
|
.replaceAll( |
| 169 |
|
"%1", |
| 170 |
|
String.format("<a href=\"%s\">%s</a>", dlUrl, dlUrl))); |
| 171 |
|
JOptionPane.showMessageDialog(null, hll, |
| 172 |
< |
startupBundle.getString("dotNetMissing.title"), |
| 172 |
> |
globalBundle.getString("dotNetMissing.title"), |
| 173 |
|
JOptionPane.ERROR_MESSAGE); |
| 174 |
|
return; |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
if (!Installer.verifyRunningDirectory()) { |
| 178 |
|
JOptionPane.showMessageDialog(null, |
| 179 |
< |
startupBundle.getString("invalidPath.text"), |
| 180 |
< |
startupBundle.getString("invalidPath.title"), |
| 179 |
> |
globalBundle.getString("invalidPath.text"), |
| 180 |
> |
globalBundle.getString("invalidPath.title"), |
| 181 |
|
JOptionPane.ERROR_MESSAGE); |
| 182 |
|
if (!Settings.isDebug()) { |
| 183 |
|
return; |
| 187 |
|
boolean offline = !DepotManager.getInstance().checkConnection(); |
| 188 |
|
if (offline) { |
| 189 |
|
JOptionPane.showMessageDialog(null, |
| 190 |
< |
startupBundle.getString("offlineMode.text"), |
| 191 |
< |
startupBundle.getString("offlineMode.title"), |
| 190 |
> |
globalBundle.getString("offlineMode.text"), |
| 191 |
> |
globalBundle.getString("offlineMode.title"), |
| 192 |
|
JOptionPane.INFORMATION_MESSAGE); |
| 193 |
|
} |
| 194 |
|
Settings.getInstance().setOfflineMode(offline); |