Get current database localization

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11


Get current database localization String

ParameterTypeDescription
This command does not require any parameters
Function resultStringCurrent language of the database

Description

The Get current database localization command returns the current language used by the database, expressed in the standard defined by the RFC 3066. Typically, the command returns "en" for English, "es" for Spanish, etc. For more information about this standard and the values returned by this command, please refer to the Design Reference manual.

The current language of the database can be used to determine the .lproj folder where the program will look for the localized items of the database. 4D automatically determines the current language on database startup according to the contents of the Resources folder and the system environment. How it works is that 4D loads the first .lproj folder of the database that corresponds to the reference language, with the following order of priority:

1. System language (under Mac OS, several languages can be set by order of preference, 4D uses this setting).

2. Language of the 4D application.

3. English

4. First language found in the Resources folder.

Note: If the database does not have an .lproj folder, 4D applies the following order of priority: 1. System language, 2. English (if the system language cannot be identified).


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next