public class I18NHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
I18NHelper()
private constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
addOfferingDescription(SosOffering sosOffering,
AbstractServiceRequest<?> request)
Add offering description to
SosOffering for the requested
language |
static void |
addOfferingDescription(SosOffering offering,
Locale locale)
Add offering description to
SosOffering for the specific language
or the configured default language |
static void |
addOfferingNames(SosOffering sosOffering,
AbstractServiceRequest<?> request)
Add offering names to
SosOffering for the requested language |
static void |
addOfferingNames(SosOffering offering,
Locale requestedLocale)
Add offering names to
SosOffering for the specific language or
the configured default language |
protected static ContentCache |
getCache()
Get the current cache
|
protected static Locale |
getDefaultLanguage()
Get the configure default language
|
public static void addOfferingNames(SosOffering sosOffering, AbstractServiceRequest<?> request)
SosOffering
for the requested languagesosOffering
- SosOffering
to add namesrequest
- Request with languagepublic static void addOfferingNames(SosOffering offering, Locale requestedLocale)
SosOffering
for the specific language or
the configured default languageoffering
- SosOffering
to add namesrequestedLocale
- the specific languagepublic static void addOfferingDescription(SosOffering sosOffering, AbstractServiceRequest<?> request)
SosOffering
for the requested
languagesosOffering
- SosOffering
to add descriptionrequest
- Request with languagepublic static void addOfferingDescription(SosOffering offering, Locale locale)
SosOffering
for the specific language
or the configured default languageoffering
- SosOffering
to add descriptionlocale
- the specific languageprotected static ContentCache getCache()
protected static Locale getDefaultLanguage()
Copyright © 2012-2015 52north.org. All Rights Reserved.