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
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"
In the Inspector, the Translations group lists one row per language; 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:
- the
X-Liberty-Langheader — the web application sends the language chosen in its interface; - otherwise the first language of the browser's
Accept-Language, without its region (fr-CA→fr); - 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):
| Name | Name | Name | ||
|---|---|---|---|---|
activity | filter | package | ||
alert | folder | search | ||
barchart | globe | settings | ||
bell | grid | shield | ||
briefcase | key | table | ||
building | layers | tag | ||
calendar | link | trendingup | ||
clock | lock | user | ||
database | mail | usercheck | ||
file / filetext | network | users |
Any other name draws no icon, without error. The Inspector's icon list offers exactly 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.