Klasse GroovyLanguageConstants
java.lang.Object
de.uplanet.lucy.server.i18n.scripting.groovy.GroovyLanguageConstants
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGroovyLanguageConstants(Supplier<de.uplanet.lucy.server.i18n.ILanguageConstants> p_constantsSupplier, String p_strLang, String p_strFallbackLang) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungapplication(String p_strAppGuid) Get an accessor for application language constants.Get the value of the given language constant.Get the value of the given language constant.Get the fallback language that is used when a language constant is not found in thecontext language.Get the context language set for this object.Get the language constants for the specified language.
-
Konstruktordetails
-
GroovyLanguageConstants
-
-
Methodendetails
-
getLanguage
Get the context language set for this object.- Gibt zurück:
- The context language.
-
getFallbackLanguage
Get the fallback language that is used when a language constant is not found in thecontext language.Usually this is the portal's default language.
- Gibt zurück:
- The default language.
-
language
Get the language constants for the specified language.This can be useful when another than the predefined context language should be used.
def en = g_i18n.language("en")- Parameter:
p_strLang- The language.- Gibt zurück:
- The language constants for the specified language.
-
application
Get an accessor for application language constants.- Parameter:
p_strAppGuid- The application GUID.- Gibt zurück:
- An accessor for the given application.
-
getAt
Get the value of the given language constant. If there is no value for the given key in the context language, the fallback language is used. If no fallback is availablenullwill be returned.def strValue = g_i18n["CONSTANT_NAME"]
- Parameter:
p_strKey- The key.- Gibt zurück:
- The localized string.
-
get
Get the value of the given language constant. If there is no value for the given key in the context language, the fallback language is used. If no fallback is availablenullwill be returned.def strValue = g_i18n.CONSTANT_NAME
- Parameter:
p_strKey- The key.- Gibt zurück:
- The localized string.
-