/** * Gets any detail messages, preferring the provided locale. * * @return The detail messages, with {num}-indexed placeholders populated, * if needed. */ public String[] getDetails(Locale locale) { if (m_details == null || m_details.length == 0) { return s_emptyStringArray; } String[] ret = new String[m_details.length]; for (int i = 0; i < m_details.length; i++) { ret[i] = getLocalizedOrCode(m_bundleName, locale, m_code, null); } return ret; }
/** * Gets any detail messages, preferring the provided locale. * * @return The detail messages, with {num}-indexed placeholders populated, * if needed. */ public String[] getDetails(Locale locale) { if (m_details == null || m_details.length == 0) { return s_emptyStringArray; } String[] ret = new String[m_details.length]; for (int i = 0; i < m_details.length; i++) { ret[i] = getLocalizedOrCode(m_bundleName, locale, m_code, null); } return ret; }
/** * Gets the message, preferring the provided locale. * * <p>When a message in the desired locale is not found, the locale * selection logic described by <a * href="http://java.sun.com/j2se/1.4/docs/api/java/util/ResourceBundle.html">the * java.util.ResourceBundle</a> class javadoc is used. * * @param locale * The preferred locale. * @return The message, with {num}-indexed placeholders populated, if * needed. */ public String getMessage(Locale locale) { return getLocalizedOrCode(m_bundleName, locale, m_code, m_values); }
/** * Gets the message, preferring the provided locale. * * <p>When a message in the desired locale is not found, the locale * selection logic described by <a * href="http://java.sun.com/j2se/1.4/docs/api/java/util/ResourceBundle.html">the * java.util.ResourceBundle</a> class javadoc is used. * * @param locale * The preferred locale. * @return The message, with {num}-indexed placeholders populated, if * needed. */ public String getMessage(Locale locale) { return getLocalizedOrCode(m_bundleName, locale, m_code, m_values); }
/** * Gets the message, preferring the <code>Server</code> locale. * * @return The message, with {num}-indexed placeholders populated, if * needed. */ @Override public String getMessage() { if (m_defaultMessage == null) { m_defaultMessage = getLocalizedOrCode(m_bundleName, Server.getLocale(), m_code, m_values); } return m_defaultMessage; }
/** * Gets the message, preferring the <code>Server</code> locale. * * @return The message, with {num}-indexed placeholders populated, if * needed. */ @Override public String getMessage() { if (m_defaultMessage == null) { m_defaultMessage = getLocalizedOrCode(m_bundleName, Server.getLocale(), m_code, m_values); } return m_defaultMessage; }