/** * Generates an initialized instance of {@link CmsMessages} for * convenient access to localized resource bundles.<p> * * @param bundleName the name of the ResourceBundle to use * @param language language identifier for the locale of the bundle * @return CmsMessages a message bundle initialized with the provided values */ public CmsMessages getMessages(String bundleName, String language) { return getMessages(bundleName, language, "", "", null); }
/** * Generates an initialized instance of {@link CmsMessages} for * convenient access to localized resource bundles.<p> * * @param bundleName the name of the ResourceBundle to use * @param language language identifier for the locale of the bundle * @param defaultLanguage default for the language, will be used * if language is null or empty String "", and defaultLanguage is not null * @return CmsMessages a message bundle initialized with the provided values */ public CmsMessages getMessages(String bundleName, String language, String defaultLanguage) { return getMessages(bundleName, language, "", "", defaultLanguage); }
/** * Generates an initialized instance of {@link CmsMessages} for * convenient access to localized resource bundles.<p> * * @param bundleName the name of the ResourceBundle to use * @param language language identifier for the locale of the bundle * @return CmsMessages a message bundle initialized with the provided values */ public CmsMessages getMessages(String bundleName, String language) { return getMessages(bundleName, language, "", "", null); }
/** * Generates an initialized instance of {@link CmsMessages} for * convenient access to localized resource bundles.<p> * * @param bundleName the name of the ResourceBundle to use * @param language language identifier for the locale of the bundle * @param defaultLanguage default for the language, will be used * if language is null or empty String "", and defaultLanguage is not null * @return CmsMessages a message bundle initialized with the provided values */ public CmsMessages getMessages(String bundleName, String language, String defaultLanguage) { return getMessages(bundleName, language, "", "", defaultLanguage); }
variant = ""; return getMessages(bundleName, new Locale(language, country, variant)); } catch (Throwable t) { handleException(t);
variant = ""; return getMessages(bundleName, new Locale(language, country, variant)); } catch (Throwable t) { handleException(t);
CmsMessages messages = getCmsJspActionElement().getMessages( "org/opencms/frontend/layoutpage/frontendmessages", locale);