public String getLang() { return lang == null ? JetspeedLocale.getDefaultLocale().toString() : lang; }
public String getLang() { return lang == null ? JetspeedLocale.getDefaultLocale().toString() : lang; }
public PortletInfo getPortletInfo() { return getLanguage(JetspeedLocale.getDefaultLocale()); }
if(tokenizer.hasMoreTokens() == false) return JetspeedLocale.getDefaultLocale(); return JetspeedLocale.getDefaultLocale();
public static LocalizedObject getBestLocalizedObject(List<? extends LocalizedObject> list, Locale locale) { LocalizedObject fallback = null; for (LocalizedObject lo : list) { if (lo.getLocale().equals(locale)) { return lo; } else if (lo.getLocale().getLanguage().equals(locale.getLanguage())) { fallback = lo; } else if (fallback == null && lo.getLocale().equals(getDefaultLocale())) { fallback = lo; } } return fallback; } }
language = portlet.getLanguage(JetspeedLocale.getDefaultLocale());
Language fallback = null; Language defaultLanguage = null; boolean defaultLocale = locale.equals(JetspeedLocale.getDefaultLocale()); if (defaultLanguage == null && !defaultLocale && l.getLocale().equals(JetspeedLocale.getDefaultLocale()))
PortletApplication pa = (PortletApplication) o; Description defaultDescription = pa.getDescription(JetspeedLocale.getDefaultLocale()); if (defaultDescription != null)
String displayNameText = pd.getDisplayNameText(JetspeedLocale.getDefaultLocale()); result.setTitle(displayNameText); String description = pd.getDescriptionText(JetspeedLocale.getDefaultLocale()); result.setDescription(description);
Language defaultLanguage = addLanguage(jpd, pd.getPortletInfo(), JetspeedLocale.getDefaultLocale(), false); for (String localeString : pd.getSupportedLocales()) if (locale.equals(JetspeedLocale.getDefaultLocale()))
DisplayName displayName = copy.addDisplayName(JetspeedLocale.getDefaultLocale().getLanguage()); displayName.setDisplayName(newPortletName);