Returns a value from the localized entries, depending on the current user language.
Syntax:
[bundle, resource, default,... param]
Parameter name
Description
bundle
The name of the resource bundle in language administration.
resource
The resource name.
default value
A default value, if the searched entry was not found.
param
Each additional parameter after the default value represents a placeholder in the requested resource.
Placeholders are defined in resources using '{index}' words. The parameters are replaced according to their index (starting with 0).
Example with assumed resource 'mybundle/testresource' = '{1}: {0}':
[mybundle, testresource,Not found: testresource,World,Hello]
Result: 'Hello: World'
Example:
[common,cancel]Returns 'Cancel'
Syntax:
[Bundle, resource, default... Parameterlist]
Parameter name | Description |
|---|---|
Bundle | The name of the resource bundle in language administration. |
Resource | The resource name. |
Default value | A default value, if the searched entry was not found. |
Parameter list | Each additional parameter after the default value represents a placeholder in the requested resource. Placeholders are defined in resources using '{index}' words. The parameters are replaced according to their index (starting with 0). Example with assumed resource 'mybundle/testresource' = '{1}: {0}': [mybundle, testresource,Not found: testresource,World,Hello] Result: 'Hello: World' |
Use case example:
Syntax | Comment | Standard output DE | Standard output EN |
|---|---|---|---|
| Access to a localization entry identified by Bundle and Resource name:
| Abbrechen | Cancel |
| Access to a localization entry identified by Bundle and Resource name:
| Mit Text "cancel" als Eingabedaten: Abbrechen Mit Text "abort" als Eingabedaten: NO_ENTRY | With the text 'cancel' as input data: Cancel With the text 'abort' as input data: NO_ENTRY |
| Access to a localization entry with parameter Nesting: The parameter is also loaded from localization. | Ungespeicherte Änderungen in Adresse | Unsaved data in Address |