Localize get_translator call

This commit is contained in:
Maksym H. 2024-09-01 17:13:13 +03:00 committed by Athozus
parent 59667bd35c
commit 1bffd98132
21 changed files with 26 additions and 21 deletions

View file

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

View file

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

View file

@ -1,5 +1,5 @@
-- translation
local S = minetest.get_translator("mail")
local S = mail.S
mail.settings = {
chat_notifications = {

View file

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