/** * Returns the named messages for the current locale. * * @param name the message resource name * @return messages for the current locale * @throws ResourceNotFoundException if the named resource cannot be found */ @Override public Messages getMessages(String name) { InputStream in = resources.getInputStream(name); return new LocaleDatabase(in, this); }
/** * Creates a new messages instance from the named resource that inherits the current messages. * * @param name the messages resource name * @return the messages */ @Override public Messages newMessages(String name) { Messages child = locales.getMessages(name); Messages result = new LocaleDatabase(this, locales); result.add(child); return result; }
webDir + "/langpacks/" + Resources.PACK_TRANSLATIONS_RESOURCE_NAME + installData.getLocaleISO3()); langPackStream = new WebAccessor(null).openInputStream(url); messages = new LocaleDatabase(langPackStream, messages, locales); fallback = false;
messages = new LocaleDatabase(in, parentMessages, this);