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
34
ui/inbox.lua
34
ui/inbox.lua
|
@ -1,21 +1,21 @@
|
|||
local inbox_formspec = "size[8,10;]" .. mail.theme .. [[
|
||||
tabheader[0.3,1;boxtab;Inbox,Sent messages;1;false;false]
|
||||
local inbox_formspec = "size[8.5,10;]" .. mail.theme .. [[
|
||||
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages") .. [[;1;false;false]
|
||||
|
||||
button[6,0.10;2,0.5;new;New]
|
||||
button[6,0.95;2,0.5;read;Read]
|
||||
button[6,1.70;2,0.5;reply;Reply]
|
||||
button[6,2.45;2,0.5;replyall;Reply All]
|
||||
button[6,3.20;2,0.5;forward;Forward]
|
||||
button[6,3.95;2,0.5;delete;Delete]
|
||||
button[6,4.82;2,0.5;markread;Mark Read]
|
||||
button[6,5.55;2,0.5;markunread;Mark Unread]
|
||||
button[6,6.8;2,0.5;contacts;Contacts]
|
||||
button[6,7.6;2,0.5;maillists;Mail lists]
|
||||
button[6,8.7;2,0.5;about;About]
|
||||
button_exit[6,9.5;2,0.5;quit;Close]
|
||||
button[6,0.10;2.5,0.5;new;]] .. S("New") .. [[]
|
||||
button[6,0.95;2.5,0.5;read;]] .. S("Read") .. [[]
|
||||
button[6,1.70;2.5,0.5;reply;]] .. S("Reply") .. [[]
|
||||
button[6,2.45;2.5,0.5;replyall;]] .. S("Reply all") .. [[]
|
||||
button[6,3.20;2.5,0.5;forward;]] .. S("Forward") .. [[]
|
||||
button[6,3.95;2.5,0.5;delete;]] .. S("Delete") .. [[]
|
||||
button[6,4.82;2.5,0.5;markread;]] .. S("Mark Read") .. [[]
|
||||
button[6,5.55;2.5,0.5;markunread;]] .. S("Mark Unread") .. [[]
|
||||
button[6,6.8;2.5,0.5;contacts;]] .. S("Contacts") .. [[]
|
||||
button[6,7.6;2.5,0.5;maillists;]] .. S("Mail lists") .. [[]
|
||||
button[6,8.7;2.5,0.5;about;]] .. S("About") .. [[]
|
||||
button_exit[6,9.5;2.5,0.5;quit;]] .. S("Close") .. [[]
|
||||
|
||||
tablecolumns[color;text;text]
|
||||
table[0,0.7;5.75,9.35;inbox;#999,From,Subject]]
|
||||
table[0,0.7;5.75,9.35;inbox;#999,]] .. S("From") .. "," .. S("Subject")
|
||||
|
||||
|
||||
function mail.show_inbox(name)
|
||||
|
@ -51,7 +51,7 @@ function mail.show_inbox(name)
|
|||
formspec[#formspec + 1] = minetest.formspec_escape(message.subject)
|
||||
end
|
||||
else
|
||||
formspec[#formspec + 1] = "(No subject)"
|
||||
formspec[#formspec + 1] = S("(No subject)")
|
||||
end
|
||||
end
|
||||
if mail.selected_idxs.inbox[name] then
|
||||
|
@ -60,7 +60,7 @@ function mail.show_inbox(name)
|
|||
end
|
||||
formspec[#formspec + 1] = "]"
|
||||
else
|
||||
formspec[#formspec + 1] = "]label[2.25,4.5;No mail]"
|
||||
formspec[#formspec + 1] = "]label[2.25,4.5;" .. S("No mail") .. "]"
|
||||
end
|
||||
minetest.show_formspec(name, "mail:inbox", table.concat(formspec, ""))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue