@Override public String getModelResource(PageContext pageContext, String name) { String key = getModelResourceNamePrefix() + name; String value = LanguageUtil.get(pageContext, key, null); if ((value == null) || value.equals(key)) { value = PortletResourceBundles.getString(pageContext, key); } if (value == null) { value = key; } return value; }
@Override public String getAction(Locale locale, String action) { String key = getActionNamePrefix() + action; String value = LanguageUtil.get(locale, key, null); if ((value == null) || value.equals(key)) { value = PortletResourceBundles.getString(locale, key); } if (value == null) { value = key; } return value; }