Access to localized resources (Calculation expression)

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

[common,cancel]

Access to a localization entry identified by Bundle and Resource name

  • If no corresponding entry exists, an empty text is returned

Abbrechen

Cancel

[common, $input,NO_ENTRY]

Access to a localization entry identified by Bundle and Resource name

  • If no corresponding entry exists, the default value (NO_ENTRY) is returned

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

[common, unsavedChanges.validation.msg,DEFAULT,[de.lobster.scm.base.address.Address,\$name]]

Access to a localization entry with parameter

Nesting:
The parameter is also loaded from language administration.

Ungespeicherte Änderungen in Adresse

Unsaved data in Address