Skip to main content

Translations and icons

Two fields of every menu item shape what the user reads in the sidebar: l, the label per language, and icon.


At a glance​

Securitysecurity⑃ Find dependencies⑂ Find usages⧉ ClonefolderGeneralAdvancedTranslationsTRANSLATIONSfr Français▾Sécurité✕de Deutsch▾Sicherheit✕+ addPer-language label overrides.GeneralAdvancedTranslationsLABEL ∗SecurityICONshieldLucide icon name (e.g. shield, users).CRM◫Overview⛉Security☺Users⚿Roles▤Saleslabel in the interface language;label otherwiseTranslationsone row per languageLanguage · labelen, fr, de… an empty row is droppedIcona name the sidebar drawsIn the sidebaricon + label of the user's language

Translations — the l map​

label is the default label; l adds one label per language:

[[menus.crm.items]]
id = "security"
label = "Security"
l = { fr = "Sécurité", de = "Sicherheit" }
icon = "shield"

On the picked entry's panel (Liberty Next → Screens → Menus), the Translations tab lists one row per language — a language picked from the list, then the label, and a cross to remove the row; + add adds one; the languages offered are en, fr, de, es, it, pt, nl, pl, ja, zh, ar. An empty row is removed on save.

Which language​

For each request, the language is, in order:

  1. the X-Liberty-Lang header — the web application sends the language chosen in its interface;
  2. otherwise the first language of the browser's Accept-Language, without its region (fr-CA → fr);
  3. otherwise the default language of Liberty Next → Administer → App.

When l has no entry for that language, label is used. Use lowercase codes (fr, not FR).

Translate folders too: their label is what the user sees first. The screens' titles and column labels are translated in the dictionary and the screens, not here — see Dictionary.


Icons​

icon names one of the icons the sidebar draws. Names are matched ignoring case and punctuation (Shield, shield, trending-up all work):

NameNameNameName
activityfilebarchartmailsparkles
alertfiletextnetworktable
barchartfilterpackagetag
bellfolderpalettetrendingup
bookgitcompareplayupload
briefcaseglobereceiptuser
buildinggridrefreshcwusercheck
calendarhistoryrocketusers
clockkeysearchwand
codelayerssettingsworkflow
compasslayoutdashboardshieldwrench
databaselinkshieldalert
filelockshieldcheck

Any other name draws no icon, without error. The Icon field of the General tab is typed as text (Lucide icon name): type one of these names.

Common choices: shield for security, users / user for people, key for roles, database / table for data, barchart / trendingup for reports, settings for administration, folder for plain folders.