@Role
public interface ContextualLocalizationManager
LocalizationManager
which get the Locale
from LocalizationContext
and
provide various common use cases methods.LocalizationManager
Modifier and Type | Method and Description |
---|---|
Translation |
getTranslation(String key)
Find a translation in the current language.
|
String |
getTranslationPlain(String key,
Object... parameters)
Find a translation in the current language.
|
Translation getTranslation(String key)
key
- the key identifying the message to look forLocalizationManager.getTranslation(String, java.util.Locale)
,
LocalizationContext.getCurrentLocale()
String getTranslationPlain(String key, Object... parameters)
key
- the key identifying the message to look forparameters
- the parametersgetTranslation(String)
Copyright © 2004–2021 XWiki. All rights reserved.