Esempio n. 1
0
  /**
   * Returns the language ID of the locale of this service context's current user.
   *
   * @return the language ID
   */
  public String getLanguageId() {
    if (_languageId != null) {
      return _languageId;
    }

    return LocaleUtil.toLanguageId(LocaleUtil.getMostRelevantLocale());
  }
  public Locale getLocale() {
    Locale locale = (Locale) _attributes.get(LOCALE);

    if (locale == null) {
      locale = LocaleUtil.getMostRelevantLocale();
    }

    return locale;
  }
 @Override
 public String getDescriptiveName() throws PortalException {
   return getDescriptiveName(LocaleUtil.getMostRelevantLocale());
 }