int y = value.indexOf('}'); if(y == -1) { throw new L10nParseException("Unclosed braces"); throw new L10nParseException("Starts with /");
public void testStrings() throws Exception { for (LANGUAGE lang : LANGUAGE.values()) { BaseL10n l10n = createL10n(lang); SimpleFieldSet fields = l10n.getCurrentLanguageTranslation(); if (fields != null) { for (Iterator<String> itr = fields.keyIterator(); itr.hasNext();) { String key = itr.next(); String value = fields.get(key); try { l10n.attemptParse(value); } catch (L10nParseException e) { fail("Error in "+key+" for "+lang+": "+e.getMessage()); } } } } }