Add labels for index-type settings

This commit is contained in:
Athozus 2023-12-05 22:46:52 +01:00
parent bebb7a8702
commit 802f9f727b
No known key found for this signature in database
GPG Key ID: B50895022E8484BF
2 changed files with 4 additions and 1 deletions

View File

@ -65,7 +65,7 @@ Read=Lire
Automatic marking read=Lu automatique
Chat notifications=Notifications dans le tchat
Date format=Format de la date
Default sorting direction=
Default sorting direction=Direction de tri par défaut
Default sorting field=Champ de tri par défaut
HUD notifications=Notifications ATH
Mark a message as read when opened=Marquer un message comme lu lorsqu'il est ouvert

View File

@ -96,6 +96,9 @@ function mail.show_settings(name)
local dataset_str = table.concat(formatted_dataset, ",")
local dataset_selected_id = field_default
formspec = formspec .. [[
label[]] .. x .. "," .. y .. ";" .. data.label .. "]"
y = y + 0.4
formspec = formspec .. [[
dropdown[]] .. x .. "," .. y .. ";3,0.5;" .. setting .. ";" ..
dataset_str .. [[;]] .. dataset_selected_id .. [[;true]
]]