Documents created via the API sometimes contain automatically added texts in English — for example, the payment description Settlement of document instead of the Czech one. These texts are generated by the server according to its language settings, not according to the application's language.
Why this happens
Automatic descriptions are composed by the ABRA Flexi core in the language set by the Java environment in which the server runs. If it is not set, the operating system's default language is used — and on servers, this is usually English.
Setting the Czech language
The solution is to add the Java parameters -Duser.country=CZ and -Duser.language=cs to the server. For a local installation on macOS, these are written into the /Applications/FlexiBee.app/Contents/Info.plist file, in the JVMOptions section:
<key>JVMOptions</key>
<array>
<string>-Xmx1g</string>
…
<string>-Duser.country=CZ</string>
<string>-Duser.language=cs</string>
</array>
After making this change, the application needs to be restarted.
ℹ️ On other systems, these same parameters are passed elsewhere — in the ABRA Flexi Server service configuration. In the cloud, this change is made by support, so please ask them to configure it.
💡 The language of print reports is not governed by the server settings — for PDF export it is selected by the report-lang parameter, and for e-mail by a parameter of the same name; see Exporting print reports.
