mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-22 07:04:54 -04:00
Add translation for "No contacts" (fix #107)
This commit is contained in:
parent
e470c58d83
commit
fe9aca40f0
9 changed files with 212 additions and 202 deletions
|
@ -1,3 +1,5 @@
|
|||
-- translation
|
||||
local S = minetest.get_translator("mail")
|
||||
|
||||
function mail.compile_contact_list(name, selected, playernames)
|
||||
-- TODO: refactor this - not just compiles *a* list, but *the* list for the contacts screen (too inflexible)
|
||||
|
@ -32,7 +34,7 @@ function mail.compile_contact_list(name, selected, playernames)
|
|||
end
|
||||
formspec[#formspec + 1] = "]"
|
||||
else
|
||||
formspec[#formspec + 1] = "]label[2,4.5;No contacts]"
|
||||
formspec[#formspec + 1] = "]label[2,4.5;" .. S("No contacts") .. "]"
|
||||
end
|
||||
else
|
||||
if type(playernames) == "string" then
|
||||
|
@ -70,4 +72,4 @@ function mail.compile_contact_list(name, selected, playernames)
|
|||
end
|
||||
return table.concat(formspec, "")
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue