Soluling home   Document home

Database

Database Options

Use this sheet to set options for the database. This sheet is part of the source dialog and Project Wizard.

Data structure

A database source contains one database table node for each table of the database that has been selected to be localized. This value specifies how data of database table nodes are shown on the project tree. Possible values are:

Value Description
Flat The table node contains all items. There are no sub-nodes unless the table contains structural data such as XML or HTML.
By fields The table node contains one field node for each field that has been selected to be localized. The field node contains all items of that field. Select this if you want to view data mostly by fields.
By rows The table node contains one row node for each row of the table. The row node contains all the items of that row. Select this if you want to view data mostly by rows.
By groups The table node contains one group node for each group of a composite ID (i.e., an ID that contains two or more fields). The group node contains all the items of that group. Select this if you want to view data mostly by groups. If the table does not contain a composite ID, then this behaves like By rows.

Changing the value will make the application to restructure the project file. This may take some time if the project file is large. Read more about database structure.

Options

Specifies other database options.

Check The database is case sensitive if the database uses case sensitive collation. Then the context values (e.g., key field values) are compared case sensitively. Uncheck it if the database uses case insensitive collation. By default, this is checked.

Check Sort rows when scanning to scan the rows as sorted. If unchecked the order of the rows will be the same as in the database table.

Import translations from the database

Specifies if and how translations from the original file are imported to the project. Possible values are:

Value Description
Never Do not import any value from the file to the project *)
Import a translation if there is no current value and the translation is not the same as original
Import value only if the current value in the project is empty, and the import value is not the same as the original value.
Import a translation if there is no current value Import value only if the current value in the project is empty.
Import a translation and overwrite the possible existing value in the project
Import value always even if the current value is not empty, and even if it is different from the imported value.
Note! This might overwrite the current values in the project with the values in the original file or database.

*) When you initially create a project, existing translations (if any) will be imported no matter what is the value of the above setting. These settings are only used when performing the second or later scan. This is visible only if the original file or database is multilingual.

Language ID format

Specifies how to format the language IDs that are written to the file, such as the xml:lang attributes. Possible values are:

Value Description
Standard: ll[-Ssss][-CC] Standard language ID that contains an ISO 639 language code (ll), an optional ISO 15924 script code (Ssss), and an optional ISO 3166 country code (CC). For example, sr-Latn-RS. This is the default value.
Legacy: ll[-CC] Legacy language ID that contains an ISO 639 language code (ll) and an optional ISO 3166 country code (CC), but no script code. If the ID uses the secondary script of the language, a country code and, for some languages, a script variant are added. For example, Traditional Chinese is zh-TW, and Serbian (Latin) is sr-RS-LAT.
Underline: ll[_CC] As above, but the separator is an underscore, "_", instead of a hyphen, "-". For example, zh_TW.

We recommend using the standard language IDs. Use the other formats only if your files are read by a system that requires legacy IDs.

Language ID character case

Specifies the character case of the language IDs that are written to the file. Possible values are:

Value Description
Standard (ll-CC) The language part is written in lower case, the optional script part is capitalized, and the optional country part is written in upper case. For example, en-US and sr-Latn-RS. This is the default value.
Lower (ll-cc) All parts are written in lower case. For example, en-us and sr-latn-rs.
Upper (LL-CC) All parts are written in upper case. For example, EN-US and SR-LATN-RS.

Include script into IDs

Specifies when the script part is included in the language ID. This is visible when the language ID format is Standard. Possible values are:

Value Description
Standard The script code is included only if the language does not use its default script. For example, English is en, Simplified Chinese is zh, and Traditional Chinese is zh-Hant. This is the default value.
On multiple scripts The script code is included if the language can use more than one script. For example, English is en, Simplified Chinese is zh-Hans, and Traditional Chinese is zh-Hant.
Always The script code is always included. For example, English is en-Latn, Simplified Chinese is zh-Hans, and Traditional Chinese is zh-Hant.

Include country into multi script IDs

Specifies when the country part is included in the language ID of a language that can use more than one script. This is visible when the language ID format is Legacy or Underline. Possible values are:

Value Description
No The country code is added only when it is needed to identify the script. For example, English is en, Simplified Chinese is zh, and Traditional Chinese is zh-TW. This is the default value.
Yes The country code is always added if the language can use more than one script. For example, English is en, Simplified Chinese is zh-CN, and Traditional Chinese is zh-TW.