Class VCLocales

java.lang.Object
de.uplanet.lucy.server.auxiliaries.VCLocales

@VelocityCallable("singleton") public final class VCLocales extends Object
  • Constructor Details

    • VCLocales

      public VCLocales()
  • Method Details

    • getUserLocale

      public de.uplanet.lucy.server.auxiliaries.VCLocale getUserLocale(de.uplanet.lucy.server.IProcessingContext p_ctx)
    • setUserLocale

      public void setUserLocale(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx)
    • getLocale

      public de.uplanet.lucy.server.auxiliaries.VCLocale getLocale(String p_strLocaleLangTag)
    • getDefaultLocale

      public de.uplanet.lucy.server.auxiliaries.VCLocale getDefaultLocale()
    • getLocaleLanguageTags

      public List<String> getLocaleLanguageTags()
    • getLocaleDisplayName

      public String getLocaleDisplayName(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strLocaleLangTag)
    • getLocaleDisplayNames

      public TreeMap<String,String> getLocaleDisplayNames(de.uplanet.lucy.server.IProcessingContext p_ctx)
    • getSupportedLocaleDisplayNames

      public TreeMap<String,String> getSupportedLocaleDisplayNames(de.uplanet.lucy.server.IProcessingContext p_ctx)
    • parseLanguageRange

      public List<String> parseLanguageRange(String p_strRanges)
      Parse the given ranges (e.g. the value of an HTTP Accept-Language header).

      See RFC 2616; section 14.4.

      Parameters:
      p_strRanges - The language range.
    • parsePortalLanguageRange

      public List<String> parsePortalLanguageRange(String p_strRanges)
      Parse the given ranges (e.g. the value of an HTTP Accept-Language header) for languages that are defined as portal languages.

      See RFC 2616; section 14.4.

      Parameters:
      p_strRanges - The language range.
    • getEditFormat

      public de.uplanet.lucy.util.IEditFormat getEditFormat()
      Returns:
      The edit control format configuration.