X4 Produktdokumentation

Web App Translation

The adapter returns the localized values for defined translation keys.

Properties

Operation

Operation executed by the adapter

Possible values:

  • GetTranslation: Returns the localized values for defined translation keys.

Parameters

language

Language for which the values are read.

Possible values: String containing the defined language key from the Web App definition

keys

Translation key(s) to be read out.

info If multiple translation keys are read out, they must be separated by ;.

Possible values: String containing the defined translation key(s) from the language file.

Status values

1

The adapter operation was successful.

-1

An error occurred while running the adapter.

Output

  • Language file was read successfully:

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Result>
        <Output key="loginLabel" value="User"/>
        <Output key="passwordLabel" value="Password"/>
    </Result>
    
  • No language has been set:

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Result>No language set</Result>
    
  • No translation key has been set:

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <Result>No keys set</Result>
    

If a translation key that is not defined is queried, the translation key itself is returned instead of the value. If a language file that does not exist is to be queried, the translation key itself is also returned.