X4 Produktdokumentation

Web App Translation

The adapter returns the localized values for defined translation keys.

Properties

Operation

Defines the operation executed by the adapter.

Possible values:

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

Parameters

Adapter

Main class of the adapter (Do not change!)

Possible values:

  • de.softproject.x4.server.webapp.translation.adapter.TranslationAdapter: Main class (default)

language

Language for which the values are read.

Possible values: String with the defined language key from the web app definition


Translation key/-s that is to be read.

(information) If several translation keys are to be read, these must be separated by ;.

Possible values: String with the defined translation key/-s from the language file.

Status values

1

The operation was executed successfully.

-1

An error occurred during the operation's execution.

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 was set:

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


  • No translation key was 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 queried, the translation key itself is also returned.