Revision 41030 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.i18n/src/main/java/org/gvsig/i18n/Messages.java
Messages.java | ||
---|---|---|
121 | 121 |
return translation; |
122 | 122 |
} |
123 | 123 |
} |
124 |
logger.warn(callerName+ " -- Cannot find translation for "+key);
|
|
124 |
logger.info("["+callerName+ "] Cannot find translation for key '"+key+"'.");
|
|
125 | 125 |
return key; |
126 | 126 |
} |
127 | 127 |
|
... | ... | |
236 | 236 |
} |
237 | 237 |
} |
238 | 238 |
if (log) { |
239 |
logger.warn(callerName+" -- Cannot find translation for "+key);
|
|
239 |
logger.info("["+callerName+"] Cannot find translation for key '"+key+"'.");
|
|
240 | 240 |
} |
241 | 241 |
return null; |
242 | 242 |
} |
... | ... | |
374 | 374 |
* @see <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/ResourceBundle.html">ResourceBundle</a> |
375 | 375 |
*/ |
376 | 376 |
public static void addResourceFamily(String family, ClassLoader loader, String callerName) { |
377 |
String currentKey; |
|
378 |
Enumeration keys; |
|
377 |
// String currentKey;
|
|
378 |
// Enumeration keys;
|
|
379 | 379 |
Locale lang; |
380 |
Properties properties, translations; |
|
380 |
// Properties properties; |
|
381 |
Properties translations; |
|
381 | 382 |
int totalLocales = preferredLocales.size(); |
382 | 383 |
|
383 | 384 |
if (totalLocales == 0) { |
... | ... | |
389 | 390 |
classLoaders.add(loader); |
390 | 391 |
|
391 | 392 |
for (int numLocale=0; numLocale<totalLocales; numLocale++) { // for each language |
392 |
properties = new Properties(); |
|
393 |
// properties = new Properties();
|
|
393 | 394 |
|
394 | 395 |
lang = (Locale) preferredLocales.get(numLocale); |
395 | 396 |
translations = (Properties) localeResources.get(numLocale); |
... | ... | |
529 | 530 |
localeResources.remove(numLocale); |
530 | 531 |
} |
531 | 532 |
catch (IndexOutOfBoundsException ex) { |
532 |
logger.warn(_CLASSNAME + "." + "removeLocale: " + ex.getLocalizedMessage()); |
|
533 |
logger.warn(_CLASSNAME + "." + "removeLocale: " + ex.getLocalizedMessage(), ex);
|
|
533 | 534 |
} |
534 | 535 |
return true; |
535 | 536 |
} |
Also available in: Unified diff