Interface ModuleResourceAccess
- All Known Implementing Classes:
ModuleResourceAccessImpl
public interface ModuleResourceAccess
Interface to access resources by module specific resource keys.
The module specific resource key needs to be in the following format: <moduleId>.key (Example: myModule.myKey)
The bundle determination works with help of GlobalConfigurationManager where all extension names for a sap
module id are accessible. The bundle needs to comply to the following naming convention
<extensionName>-locales_<locale>.
-
Method Summary
Modifier and TypeMethodDescriptionTranslate the given key with the standard locale.Translate the given key with the default Locale replacing the passed arguments.Translate the given key with the given locale.Translate the given key with the given locale replacing the passed arguments.
-
Method Details
-
getString
Translate the given key with the standard locale.- Parameters:
resourceKey- resource key- Returns:
- translated resource string
-
getString
Translate the given key with the given locale.- Parameters:
resourceKey- resource keylocale- locale- Returns:
- translated resource string
-
getString
Translate the given key with the default Locale replacing the passed arguments.- Parameters:
resourceKey- resource keyargs- arguments- Returns:
- translated resource string
-
getString
Translate the given key with the given locale replacing the passed arguments.- Parameters:
resourceKey- resource keylocale- localeargs- arguments- Returns:
- translated resource string
-