![]() ![]() |
| Developer Zone |
Databases3. Row LocalizationIn row localization (also known as "single table localization") there is a table created for localized data. Essential is that the primary key of the data table contains one column dedicated to the language ID. Multilizer will use the ISO codes for the language (ISO-369) and country (ISO-3166) combination for every RDBMS*. The name of the column can be chosen freely as long as it is a string type and at least 5 characters long**. Translations are entered to the same table and same column where the native data is. The language ID column separates the different language rows.
Example SQL script to get dialog information in Japanese:
TIP: You don't neccessary need to create a dedicated table for translations. All the data, native and translated, can be in one single table. This technique is preferred if the table structure is relatively small, the non-localizable data is not frequently chnaged and the database size doesn't need to be optimized.
Example SQL script to get dialog information in Japanese:
*) Except in Oracle where Oracle's own NLS codes are used instead. So where Oracle will contain the code "US" for English (United States) rows, all other databases will contain "en_US". **) Except in Oracle where the maximum length will probably be 3 characters. |
|
||||||||||
|
|||||