Class VCLocales
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.VCLocales
-
@VelocityCallable("singleton") public final class VCLocales extends Object
-
-
Constructor Summary
Constructors Constructor Description VCLocales()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VCLocale
getDefaultLocale()
de.uplanet.lucy.util.IEditFormat
getEditFormat()
VCLocale
getLocale(String p_strLocaleLangTag)
String
getLocaleDisplayName(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strLocaleLangTag)
TreeMap<String,String>
getLocaleDisplayNames(de.uplanet.lucy.server.IProcessingContext p_ctx)
List<String>
getLocaleLanguageTags()
TreeMap<String,String>
getSupportedLocaleDisplayNames(de.uplanet.lucy.server.IProcessingContext p_ctx)
VCLocale
getUserLocale(de.uplanet.lucy.server.IProcessingContext p_ctx)
List<String>
parseLanguageRange(String p_strRanges)
Parse the given ranges (e.g.List<String>
parsePortalLanguageRange(String p_strRanges)
Parse the given ranges (e.g.void
setUserLocale(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx)
-
-
-
Method Detail
-
getUserLocale
public VCLocale getUserLocale(de.uplanet.lucy.server.IProcessingContext p_ctx)
-
setUserLocale
public void setUserLocale(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx)
-
getDefaultLocale
public VCLocale getDefaultLocale()
-
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).- 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.- Parameters:
p_strRanges
- The language range.
-
getEditFormat
public de.uplanet.lucy.util.IEditFormat getEditFormat()
- Returns:
- The edit control format configuration.
-
-