Transaction GetLanguage
Authentication mode: Checked (known user, must have the privilege)
Database access mode: reading
This transaction returns basic language and formatting settings from the server - it must be used before the client displays any times or monetary values, even if it does not indend to translate any strings. If the transaction fails on the first attempt (eg. because the language could not be found), the client MUST repeat the request with "C" as language to retrieve formatting rules - "C" as language MUST succeed on the server, regardless of any other settings.
Inputs:
- language: astring
The language that the client wants to use, use "C" for no translation wanted.
- format: astring
The translation file format that the client supports: either "ts" for Qt translation XML source files, or "qm" for translated binary Qt translation files.
Outputs:
- file: blob
The Qt translation file to translate string from the server. All strings are found in the virtual class "::php".
- formats: ServerFormat
The formatting as requested by the server. Please note that the names of days and months does not necessarily correspond to the language that has been request but, to the language that the server wants to set for all printouts.
- statusBarText: string
Text (plain or HTML) shown on the client's status bar.