mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-19 12:45:02 -04:00
Localize get_translator
call
This commit is contained in:
parent
59667bd35c
commit
1bffd98132
21 changed files with 26 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
-- translation
|
||||
local S = minetest.get_translator("mail")
|
||||
local S = mail.S
|
||||
|
||||
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)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
local S = minetest.get_translator("mail")
|
||||
-- translation
|
||||
local S = mail.S
|
||||
|
||||
local function recursive_expand_recipient_names(sender, list, is_toplevel, recipients, undeliverable)
|
||||
for _, name in ipairs(list) do
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-- translation
|
||||
local S = minetest.get_translator("mail")
|
||||
local S = mail.S
|
||||
|
||||
mail.settings = {
|
||||
chat_notifications = {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-- translation
|
||||
local S = minetest.get_translator("mail")
|
||||
local S = mail.S
|
||||
|
||||
function mail.time_ago(t)
|
||||
local elapsed = os.time() - t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue