for (Enumeration en = locator.getResources("metainfo/zk/lang.xml");
en.hasMoreElements();) {
final URL url = (URL)en.nextElement();
if (log.debugable()) log.debug("Loading "+url);
try {
final Document doc = new SAXBuilder(true, false, true).build(url);
if (ConfigParser.checkVersion(url, doc, true))
parseLang(doc, locator, url, false);
} catch (Exception ex) {
log.error("Failed to load "+url, ex);
throw UiException.Aide.wrap(ex, "Failed to load "+url);