language
- Last UpdatedNov 20, 2024
- 2 minute read
The language table defines terminology mapping for many static terms used in the system for any number of different languages.
This allows users to change column or text headings globally to suit their particular installation. For example, ‘Lot Number’ may map to ‘Serial Number’, ‘Work Order’ to ‘Shop Order’, etc.
This allows each user to have their own language or terminology preference.
The first 100,000 string_id constants are allocated for MES internal use. End users are allowed to add string_id’s above 100,000. Only the string field for the pre-allocated rows in this table may be edited by users as code is dependent on the predefined internal description values. They may add any number of additional strings.
User-defined labels may be stored here if there are a finite set of them, e.g., user privileges or job states. If the user may define an arbitrarily large number of labels for things (e.g., items) only one term per thing will be allowed, and that won’t be stored here, but in the table wherein the thing (e.g., item) is described.
For future portability to languages that do not construct plurals or phrases in the same way as English, no attempt to save space will be made by building up multi-word labels from their component terms. For example, "New Job" would be stored as a distinct entry, and not built by concatenating "New" and "Job".
All character data will be stored in Unicode (16 bits per char) in the database.
|
Field |
Datatype |
PK |
Nulls? |
Description |
|---|---|---|---|---|
|
lang_id |
int32 |
Y |
N |
Identify language; 1 = default |
|
string_id |
int32 |
Y |
N |
Identify string (1 reserved for language name) |
|
grp_id |
int32 |
N |
N |
Specify a group to facilitate navigation to many language strings |
|
string |
string1700 |
N |
Y |
Value of string |
|
context |
nvarchar(max) |
N |
Y |
Meaning or usage of string |
|
last_edit_comment |
string254 |
N |
Y |
Reserved for internal use to indicate why this record was changed |
|
last_edit_by |
string40 |
N |
Y |
Who last changed this record |
|
last_edit_at |
tdatetime |
N |
N |
When this record was last changed |
|
row_id |
ID 1 |
N |
N |
Unique row identifier, for audit trail. |
FK from grp_id to language_grp. (Cascade delete)