Languages and translation¶
LiMDM speaks German (de), English (en), French (fr), Spanish (es), Italian (it)
and Russian (ru). German is the source language of the console app, English the source
of every text the server, the agent and the desktop tools write. English is the fallback
everywhere: a text without a translation is shown in English, never as a key.
Which language is shown¶
- Console app: the language picked in the profile, the user menu or the command palette;
until then the first browser language LiMDM speaks, else English. The choice is kept in
the browser and sent to the server (
GET /lang/{lang}sets thelimdm_langcookie), so texts the server writes follow it: labels of audit actions and agent events, check titles, problem details of the API, the sign in and error pages, schema form hints. - Server pages without a session (sign in, errors): the
limdm_langcookie, elseAccept-Language, else English. - Notifications: each channel has a language (Settings, Notifications), English by default.
- Evidence PDF: French, Spanish and Italian as asked; Russian falls back to English, as the PDF uses the built in Helvetica fonts (WinAnsi, no Cyrillic).
- Audit log entries stay as written: the action has a translated label, the detail is the record itself and is not translated (the hash chain covers it).
limdm, the tray (limdm-desktop) and the GTK app: the session's locale like gettext picks it:LC_ALL,LC_MESSAGES,LANG, then the system locale (/etc/locale.conf,/etc/default/locale), and, unless that locale isC, the first supported entry ofLANGUAGE. Anything else is English.- Agent notifications: the locale of each graphical session, so two users signed in with different languages each get their own.
- Desktop login prompt (PAM) and
/etc/nologintexts: the system locale.
Machine readable output stays the same in every language: the admin API's JSON, limdm
--json, exit codes, status codes in limdm tables (PASS, FAIL, NA), the agent
socket protocol.
Where the texts live¶
| Texts | Place |
|---|---|
| Console app | web/src/i18n/core.ts and web/src/areas/<area>/messages.ts (German and English), core.<lang>.ts and messages.<lang>.ts for French, Spanish, Italian and Russian, loaded only for the language in use |
| Server (pages, labels, problem details, notifications, check titles, agent events) | internal/server/i18n.go (German), i18n_fr.go, i18n_es.go, i18n_it.go, i18n_ru.go; the English text is the key |
| Schema form hints | internal/server/app_config_schema.go (English and German pairs); the other languages translate the English text through the server catalogs |
| Agent events | internal/api/events.go: the formats by key; the server finds key and parameters of every event line (also of older agents) and shows it in the reader's language |
limdm, limdm-desktop, agent notifications, PAM prompt |
internal/locale: tr("English text", args...), trn(n, "one", "other", args...), locale.T, locale.N; catalogs in internal/locale/catalog/<lang>.json, embedded in the binaries |
GTK app (limdm-desktop-ui) |
Python gettext: _("English text"), ngettext(...); catalogs in packaging/locale/<lang>.po, installed to /usr/share/limdm/locale/ |
On the device side the English text is the key (like a gettext msgid). A JSON value is a
string, or for a text with a count the list of its plural forms. N and trn format with
the count first, so every form must keep %d as its first verb.
The GTK app reads the .po file at start and compiles it in memory for Python's gettext,
so the build needs no msgfmt and the packages ship plain .po files. It looks next to the
script first (packaging/locale in the source tree), then in /usr/share/limdm/locale.
Texts that come from the agent as data are passed through the catalog as well: compliance check titles of the built in checks and the agent's error messages. Unknown texts, such as custom checks or a message IT sends, are shown as written. The built in check titles have the same translation in the server and the device catalogs.
Checks¶
npm run lint(scripts/i18n-check.mjs): a key used but missing, a key nobody uses, and hardcoded visible text in the app (JSX text,aria-label,title,placeholder,alt, label props,toast). Product names, units, code and example values pass; a deliberate exception carries// i18n-okon its line.tsc: every language catalog has exactly the German keys.npm test(src/i18n/i18n.test.ts): same keys, same placeholders, no empty text, and the Russian plural formsone,few,many,otherfor every plural message.go test ./internal/server(i18n_test.go): every server text in every language, every audit action, command type and agent event format with a label.go test ./internal/localefails when a text used incmd/limdm,cmd/limdm-desktoporinternal/agent(calls oftr,trn,T,N,notifyUsers,notifyAs, the titles inchecks.go, the PAM texts) is missing in a language, a msgid of the GTK app or a check title is missing in a.pofile, or a plural text has the wrong number of forms or a translation changes the printf verbs.msgfmt -c --check-format packaging/locale/<lang>.pochecks the.posyntax as well.- Playwright (
web/e2e/i18n.spec.ts): every language on the main pages, no raw key, no CSP error.
Plurals¶
German, English, French, Spanish and Italian use one and other; Russian uses one
(1, 21, 31 …), few (2 to 4, 22 to 24 …), many (0, 5 to 20, 25 …) and other
(fractions). French counts 0 as singular.
- Console: plural messages are objects with the CLDR categories of the language and
{count};Intl.PluralRulespicks the category. - Device side: a JSON list with two forms (de, en, es, fr, it) or three for Russian (one,
few, many);
ngettextwith thePlural-Formsheader of the.pofile.
Glossary¶
Product terms keep one translation per language, the same in console, server texts,
e-mails, the GTK app, the tray, limdm and notifications. Use this table when you add or
review a text. Blueprint, Agent and Compliance stay as they are in every language but
Russian; in French, Spanish and Italian they are written in lower case inside a sentence.
| English | Deutsch | Français | Español | Italiano | Русский |
|---|---|---|---|---|---|
| Blueprint | Blueprint | blueprint | blueprint | blueprint | блупринт |
| Library | Bibliothek | bibliothèque | biblioteca | libreria | библиотека |
| Library item | Bibliothekselement | élément de bibliothèque | elemento de biblioteca | elemento della libreria | элемент библиотеки |
| Agent | Agent | agent | agente | agent | агент |
| Compliance | Compliance | conformité | cumplimiento | conformità | соответствие |
| compliant / non-compliant | konform / nicht konform | conforme / non conforme | conforme / no conforme | conforme / non conforme | соответствует / не соответствует |
| in grace | in Karenz | en délai de grâce | en período de gracia | in periodo di tolleranza | в льготном периоде |
| stale | veraltet | obsolète | obsoleto | obsoleto | устаревшее |
| pending | ausstehend | en attente | pendiente | in sospeso | ожидает |
| retired | ausgemustert | retiré | retirado | dismesso | выведено из эксплуатации |
| Tenant | Mandant | locataire | inquilino | tenant | арендатор |
| Device | Gerät | appareil | dispositivo | dispositivo | устройство |
| Check (compliance) | Prüfung | contrôle | comprobación | controllo | проверка |
| Declaration | Deklaration | déclaration | declaración | dichiarazione | декларация |
| Approval (four eyes) | Freigabe (Vier Augen) | approbation (quatre yeux) | aprobación (cuatro ojos) | approvazione (quattro occhi) | одобрение (принцип четырёх глаз) |
| Risk exception | Risikoausnahme | exception de risque | excepción de riesgo | eccezione di rischio | исключение риска |
| Enrollment | Registrierung | enrôlement | inscripción | registrazione | регистрация |
| Enrollment token | Registrierungstoken | jeton d'enrôlement | token de inscripción | token di registrazione | токен регистрации |
| Retire | ausmustern | retirer | retirar | dismettere | вывести из эксплуатации |
| Wipe | löschen | effacer | borrar | cancellare | стереть |
| Lost mode | Verlustmodus | mode perdu | modo perdido | modalità smarrito | режим потери |
| Remote shell (admin) | Remote Shell | shell distant | shell remoto | shell remota | удалённая оболочка |
| Remote support (user's view) | Fernwartung | assistance à distance | soporte remoto | assistenza remota | удалённая поддержка |
| Overview | Lage | vue d'ensemble | resumen | panoramica | обзор |
| Inbox | Eingang | boîte de réception | bandeja de entrada | posta in arrivo | входящие |
| Audit log | Audit Log | journal d'audit | registro de auditoría | registro di audit | журнал аудита |
| Update ring | Updatering | anneau de mise à jour | anillo de actualización | anello di aggiornamento | кольцо обновлений |
| Workload | Workload | charge de travail | carga de trabajo | carico di lavoro | рабочая нагрузка |
| Vulnerability | Schwachstelle | vulnérabilité | vulnerabilidad | vulnerabilità | уязвимость |
| Recovery key | Wiederherstellungsschlüssel | clé de récupération | clave de recuperación | chiave di ripristino | ключ восстановления |
| Escrowed (recovery key) | hinterlegt | déposé | depositado | depositato | депонирован |
| Passphrase | Passphrase | phrase secrète | frase de contraseña | passphrase | парольная фраза |
| Check in (the agent contacts the server) | Check in | synchronisation | sincronización | sincronizzazione | синхронизация |
| Sync now (start a check in) | Jetzt synchronisieren | synchroniser (maintenant) | sincronizar ahora | sincronizza ora | синхронизировать (сейчас) |
| Sign in | Anmelden | se connecter | iniciar sesión | accedi | войти |
| Company account | Firmenkonto | compte d'entreprise | cuenta de empresa | account aziendale | корпоративная учётная запись |
| IT (the department) | die IT | le service informatique | TI | l'IT | ИТ-отдел |
| Catalog (software) | Katalog | catalogue | catálogo | catalogo | каталог |
| Firewall | Firewall | pare-feu | cortafuegos | firewall | брандмауэр |
Terms the glossary does not name follow the usual wording of the operating system and
admin tools of the language. Commands, flags, IDs, file paths, field names and values in
code style stay as they are (limdm software list, --json, FLATPAK_ID). German avoids
hyphenated compounds, as in the rest of the product ("Agent Protokoll", "Geräte ID").
Adding a text or a language¶
- Console: add the key to the German and English catalog and to every
<lang>.tsfile;tscandnpm testname what is missing. - Server: add the German entry to
deCatalogand the other languages toi18n_<lang>.go. - Device side: write the English text through
tr/trn(Go) or_()/ngettext()(Python), one string literal per text (the tests read the source), add the translation to everyinternal/locale/catalog/<lang>.jsonorpackaging/locale/<lang>.po, then rungo test ./internal/locale. - A new device language: add the code to
Languagesininternal/locale/locale.goand toLANGUAGESinpackaging/limdm-desktop-ui, add its plural rule topluralIndexandpluralFormswhen it is not the one/other rule, create the JSON catalog and the.pofile (with itsPlural-Formsheader) and addName[xx]/Comment[xx]to the.desktopfiles inpackaging.
Not translated¶
- Messages of the package scripts (
packaging/*.sh,scripts/install-agent.sh) and oflimdm-agentitself: they address administrators and land in package manager and system logs. - The agent log (
limdm log, the log page of the app) and the detail line of a check: they are technical records, kept as written so they can be searched and quoted. - Shutdown broadcasts (
wall) of a restart IT requested: system wide, no user language.