Klasse LanguageConstantsCallable
- Alle implementierten Schnittstellen:
de.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContext
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLanguageConstantsCallable(de.uplanet.lucy.server.i18n.ILanguageConstantsProvider p_provider, org.apache.velocity.context.Context p_vc, String p_strLang, String p_strDefaultLang) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcloneWithNewContext(org.apache.velocity.context.Context p_velocityContext) Create a copy of the callable with a new Velocity context.Get a localized string in the context language given its key.Get a localized string in the context language given its key.Get a localized string in the context language given its key.Get a localized string in the context language given its key.getByAppByLang(String p_strAppGuid, String p_strLang, String p_strKey) Get a localized string in the given language for the given key.getByAppByLang(String p_strAppGuid, String p_strLang, String p_strKey, String p_strFallbackValue) Get a localized string in the given language for the given key.Get a localized string in the given language for the given key.Get a localized string in the given language for the given key.
-
Konstruktordetails
-
LanguageConstantsCallable
-
-
Methodendetails
-
cloneWithNewContext
public LanguageConstantsCallable cloneWithNewContext(org.apache.velocity.context.Context p_velocityContext) Create a copy of the callable with a new Velocity context.- Angegeben von:
cloneWithNewContextin Schnittstellede.uplanet.lucy.server.scripting.velocity.ICallableWithVelocityContext- Parameter:
p_velocityContext- The new Velocity context.
-
get
Get a localized string in the context language given its key.If there is no value for the given key in the context language, the default language of the portal is used as a fallback. If no fallback is available
nullwill be returned.- Parameter:
p_strKey- The key.- Gibt zurück:
- The localized string.
-
get
Get a localized string in the context language given its key.If there is no value for the given key in the context language, the default language of the portal is used as a fallback. If no fallback is available then the given fallback will be returned.
- Parameter:
p_strKey- The key.p_strFallbackValue- A fallback value that is returned if no value could be found for the given key.- Gibt zurück:
- The localized string.
-
getByLang
Get a localized string in the given language for the given key.If there is no value for the given key in the given language, the default language of the portal is used as a fallback. If no fallback is available
nullwill be returned.- Parameter:
p_strLang- The language.p_strKey- The key.- Gibt zurück:
- The localized string.
-
getByLang
Get a localized string in the given language for the given key.If there is no value for the given key in the given language, the default language of the portal is used as a fallback. If no fallback is available then the given fallback will be returned.
- Parameter:
p_strLang- The language.p_strKey- The key.p_strFallbackValue- A fallback value that is returned if no value could be found for the given key.- Gibt zurück:
- The localized string.
-
getByApp
Get a localized string in the context language given its key.If there is no value for the given key in the context language, the default language of the portal is used as a fallback. If no fallback is available
nullwill be returned.- Parameter:
p_strAppGuid- The GUID of the application the key belongs to.p_strKey- The key.- Gibt zurück:
- The localized string.
-
getByApp
Get a localized string in the context language given its key.If there is no value for the given key in the context language, the default language of the portal is used as a fallback. If no fallback is available then the given fallback will be returned.
- Parameter:
p_strAppGuid- The GUID of the application the key belongs to.p_strKey- The key.p_strFallbackValue- A fallback value that is returned if no value could be found for the given key.- Gibt zurück:
- The localized string.
-
getByAppByLang
Get a localized string in the given language for the given key.If there is no value for the given key in the given language, the default language of the portal is used as a fallback. If no fallback is available
nullwill be returned.- Parameter:
p_strAppGuid- The GUID of the application the key belongs to.p_strLang- The language.p_strKey- The key.- Gibt zurück:
- The localized string.
-
getByAppByLang
public String getByAppByLang(String p_strAppGuid, String p_strLang, String p_strKey, String p_strFallbackValue) Get a localized string in the given language for the given key.If there is no value for the given key in the given language, the default language of the portal is used as a fallback. If no fallback is available then the given fallback will be returned.
- Parameter:
p_strAppGuid- The GUID of the application the key belongs to.p_strLang- The language.p_strKey- The key.p_strFallbackValue- A fallback value that is returned if no value could be found for the given key.- Gibt zurück:
- The localized string.
-