Add translation for "No contacts" (fix #107)

This commit is contained in:
Athozus 2023-07-06 19:03:42 +02:00
parent e470c58d83
commit fe9aca40f0
No known key found for this signature in database
GPG key ID: B50895022E8484BF
9 changed files with 212 additions and 202 deletions

View file

@ -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