ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/installer2/src/net/oni2/aeinstaller/AEInstaller2.java
(Generate patch)

Comparing AE/installer2/src/net/oni2/aeinstaller/AEInstaller2.java (file contents):
Revision 651 by alloc, Fri Jan 25 14:03:29 2013 UTC vs.
Revision 653 by alloc, Fri Jan 25 14:57:36 2013 UTC

# Line 60 | Line 60 | public class AEInstaller2 {
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 {
# Line 106 | Line 117 | public class AEInstaller2 {
117                                  e1.printStackTrace();
118                          }
119                  }
120 +                
121 +                initBundles();
122  
123                  if (Settings.getPlatform() == Platform.MACOS)
124                          initMacOS();
# Line 115 | Line 128 | public class AEInstaller2 {
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)