| 60 |
|
e.printStackTrace(); |
| 61 |
|
} |
| 62 |
|
} |
| 63 |
+ |
|
| 64 |
+ |
private static void initBundles() { |
| 65 |
+ |
File localesDir = new File(Paths.getInstallerPath(), "locales"); |
| 66 |
+ |
if (localesDir.isDirectory()) |
| 67 |
+ |
addClassPath(localesDir); |
| 68 |
+ |
imagesBundle = ResourceBundle.getBundle("net.oni2.aeinstaller.Images"); |
| 69 |
+ |
basicBundle = ResourceBundle |
| 70 |
+ |
.getBundle("net.oni2.aeinstaller.AEInstaller"); |
| 71 |
+ |
globalBundle = ResourceBundle |
| 72 |
+ |
.getBundle("net.oni2.aeinstaller.localization.Global"); |
| 73 |
+ |
} |
| 74 |
|
|
| 75 |
|
private static void addClassPath(File dir) { |
| 76 |
|
try { |
| 117 |
|
e1.printStackTrace(); |
| 118 |
|
} |
| 119 |
|
} |
| 120 |
+ |
|
| 121 |
+ |
initBundles(); |
| 122 |
|
|
| 123 |
|
if (Settings.getPlatform() == Platform.MACOS) |
| 124 |
|
initMacOS(); |
| 128 |
|
Settings.setDebug(debug); |
| 129 |
|
Settings.getInstance().setNoCacheUpdateMode(noCacheUpdate); |
| 130 |
|
|
| 118 |
– |
File localesDir = new File(Paths.getInstallerPath(), "locales"); |
| 119 |
– |
if (localesDir.isDirectory()) |
| 120 |
– |
addClassPath(localesDir); |
| 121 |
– |
imagesBundle = ResourceBundle.getBundle("net.oni2.aeinstaller.Images"); |
| 122 |
– |
basicBundle = ResourceBundle |
| 123 |
– |
.getBundle("net.oni2.aeinstaller.AEInstaller"); |
| 124 |
– |
globalBundle = ResourceBundle |
| 125 |
– |
.getBundle("net.oni2.aeinstaller.localization.Global"); |
| 126 |
– |
|
| 131 |
|
SwingJavaBuilder.getConfig().addResourceBundle(imagesBundle); |
| 132 |
|
SwingJavaBuilder.getConfig().addResourceBundle(basicBundle); |
| 133 |
|
SwingJavaBuilder.getConfig().addResourceBundle(globalBundle); |