/** * Registers some i18n data with the translation service. This is called for each discovered * bundle file. */ public void registerJSON(final JSONMap data, final String locale) { logger.fine("Registering translation data for locale: " + locale); final Set<String> keys = data.keys(); for (final String key : keys) { final String value = data.get(key); registerTranslation(key, value, locale); } logger.fine("Registered " + keys.size() + " translation keys."); }
/** * @return all the keys in the map */ public final Set<String> keys() { HashSet<String> s = new HashSet<String>(); addKeys(s); return s; }
/** * Registers the bundle with the translation service. */ public void registerJsonBundle(final String data, final String locale) { registerJSON(JSONMap.create(data), locale); }
/** * Registers the bundle with the translation service. */ public void registerJsonBundle(final String data, final String locale) { registerJSON(JSONMap.create(data), locale); }
/** * Registers some i18n data with the translation service. This is called for each discovered * bundle file. */ public void registerJSON(final JSONMap data, final String locale) { logger.fine("Registering translation data for locale: " + locale); final Set<String> keys = data.keys(); for (final String key : keys) { final String value = data.get(key); registerTranslation(key, value, locale); } logger.fine("Registered " + keys.size() + " translation keys."); }
/** * Registers the bundle with the translation service. */ public void registerJsonBundle(final String data, final String locale) { registerJSON(JSONMap.create(data), locale); }
/** * @return all the keys in the map */ public final Set<String> keys() { HashSet<String> s = new HashSet<String>(); addKeys(s); return s; }
/** * Registers some i18n data with the translation service. This is called for each discovered * bundle file. */ public void registerJSON(final JSONMap data, final String locale) { logger.fine("Registering translation data for locale: " + locale); final Set<String> keys = data.keys(); for (final String key : keys) { final String value = data.get(key); registerTranslation(key, value, locale); } logger.fine("Registered " + keys.size() + " translation keys."); }