# Language System

## Language System

Elena MDT supports 6 languages out of the box. All translations are defined in config.lua.

***

### Setting the Language

```
Config.Language = 'en'
```

Available options:

| Code | Language  |
| ---- | --------- |
| tr   | Türkçe    |
| en   | English   |
| de   | Deutsch   |
| fr   | Français  |
| es   | Español   |
| pt   | Português |

***

### How It Works

1. Server sends the selected locale to client on MDT open
2. Client applies translations to all UI elements
3. All notifications, labels, placeholders are translated
4. Dynamic content (reports, warrants, etc.) uses locale keys

***

### Adding a New Language

1. Open config.lua
2. Find Config.Locales
3. Copy an existing language block (e.g., \['en'])
4. Change the key to your language code
5. Translate all values

Example:

```
Config.Locales['nl'] = {
    dashboard = 'Operatiecentrum',
    gbt_title = 'Persoon Opzoeken',
    vehicle_title = 'Voertuig Database',
    -- ... translate all keys
}
```

6. Set Config.Language = 'nl'

***

### Translation Keys

All available keys:

| Key                | Description                   |
| ------------------ | ----------------------------- |
| dashboard          | Dashboard page title          |
| gbt\_title         | Person lookup title           |
| vehicle\_title     | Vehicle lookup title          |
| report\_title      | Report creation title         |
| warrant\_title     | Warrant page title            |
| history\_title     | Report history title          |
| cctv\_title        | CCTV page title               |
| search\_btn        | Search button text            |
| not\_found         | Record not found title        |
| wanted             | Wanted status text            |
| not\_wanted        | Not wanted status text        |
| criminal\_record   | Criminal record section title |
| community\_service | Community service label       |
| submit\_report     | Submit report button          |
| warrant\_submit    | Issue warrant button          |
| ...                | See config.lua for full list  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elena-scripts.gitbook.io/elenascripts/core-systems/mdt-v2.0/language-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
