mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-05 06:00:29 -04:00
Add internationalization (and French translation) (#30)
* Add translation tags * Add translating template.txt * Add French translation * Rework buttons size to fix UI due to big translations * Add translations for selecting contacts
This commit is contained in:
parent
b3e0c158f7
commit
eae547b2f7
13 changed files with 235 additions and 96 deletions
|
@ -1,12 +1,12 @@
|
|||
local FORMNAME = "mail:maillists"
|
||||
|
||||
local maillists_formspec = "size[8,9;]" .. mail.theme .. [[
|
||||
button[6,0.10;2,0.5;new;New]
|
||||
button[6,0.85;2,0.5;edit;Edit]
|
||||
button[6,1.60;2,0.5;delete;Delete]
|
||||
button[6,8.25;2,0.5;back;Back]
|
||||
button[6,0.10;2,0.5;new;]] .. S("New") .. [[]
|
||||
button[6,0.85;2,0.5;edit;]] .. S("Edit") .. [[]
|
||||
button[6,1.60;2,0.5;delete;]] .. S("Delete") .. [[]
|
||||
button[6,8.25;2,0.5;back;]] .. S("Back") .. [[]
|
||||
tablecolumns[color;text;text]
|
||||
table[0,0;5.75,9;maillists;#999,Name,Description]]
|
||||
table[0,0;5.75,9;maillists;#999,]] .. S("Name") .. "," .. S("Note")
|
||||
|
||||
function mail.show_maillists(name)
|
||||
local formspec = { maillists_formspec }
|
||||
|
@ -26,7 +26,7 @@ function mail.show_maillists(name)
|
|||
formspec[#formspec + 1] = minetest.formspec_escape(maillist.desc)
|
||||
end
|
||||
else
|
||||
formspec[#formspec + 1] = "(No description)"
|
||||
formspec[#formspec + 1] = S("(No description)")
|
||||
end
|
||||
end
|
||||
if mail.selected_idxs.maillists[name] then
|
||||
|
@ -35,7 +35,7 @@ function mail.show_maillists(name)
|
|||
end
|
||||
formspec[#formspec + 1] = "]"
|
||||
else
|
||||
formspec[#formspec + 1] = "]label[2.25,4.5;No maillist]"
|
||||
formspec[#formspec + 1] = "]label[2.25,4.5;" .. S("No maillist") .. "]"
|
||||
end
|
||||
minetest.show_formspec(name, FORMNAME, table.concat(formspec, ""))
|
||||
end
|
||||
|
@ -107,4 +107,4 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
end
|
||||
|
||||
return true
|
||||
end)
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue