Revision 41322 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/Launcher.java
Launcher.java | ||
---|---|---|
3068 | 3068 |
org.gvsig.i18n.Messages.addResourceFamily("text", i18nClassLoader, |
3069 | 3069 |
"Andami Launcher"); |
3070 | 3070 |
|
3071 |
|
|
3072 |
// Los ficheros de traducciones estan ahora fuera del jar, en la |
|
3073 |
// Carpeta i18n/andami de la instalacion, asi que esto ya no hace falta. |
|
3074 |
// |
|
3075 |
// Finally load the andami own i18n resources |
|
3076 |
// org.gvsig.i18n.Messages.addResourceFamily("org.gvsig.andami.text", |
|
3077 |
// "Andami Launcher"); |
|
3071 |
// Finally load the andami own i18n resources |
|
3072 |
org.gvsig.i18n.Messages.addResourceFamily("org.gvsig.andami.text", |
|
3073 |
"Andami Launcher"); |
|
3078 | 3074 |
} |
3079 | 3075 |
|
3080 | 3076 |
private static URL[] getURLsFromI18nFolders(File userFolder, File appFolder) { |
... | ... | |
3082 | 3078 |
File[] files = new File[] { userFolder, appFolder }; |
3083 | 3079 |
for( int n1=0; n1<files.length; n1++ ) { |
3084 | 3080 |
File folder = files[n1]; |
3085 |
try { |
|
3086 |
urls.add(folder.toURI().toURL()); |
|
3087 |
} catch (MalformedURLException ex) { |
|
3088 |
logger.warn("Can't convert file to url (file="+userFolder.getAbsolutePath()+").", ex); |
|
3089 |
return null; |
|
3090 |
} |
|
3081 |
// try {
|
|
3082 |
// urls.add(folder.toURI().toURL());
|
|
3083 |
// } catch (MalformedURLException ex) {
|
|
3084 |
// logger.warn("Can't convert file to url (file="+userFolder.getAbsolutePath()+").", ex);
|
|
3085 |
// return null;
|
|
3086 |
// }
|
|
3091 | 3087 |
File[] subFiles = folder.listFiles(); |
3092 | 3088 |
for( int n2=0; n2<subFiles.length; n2++ ) { |
3093 | 3089 |
File subFolder = subFiles[n2]; |
Also available in: Unified diff