declare the translator in every module instead of a global

This commit is contained in:
BuckarooBanzay 2023-03-31 17:47:36 +02:00 committed by Athozus
parent 4d4fd90eee
commit af03f9439b
12 changed files with 30 additions and 5 deletions

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local FORMNAME = "mail:compose"
local msg_id = {}

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local FORMNAME = "mail:contacts"
local contacts_formspec = "size[8,9;]" .. mail.theme .. [[

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local drafts_formspec = "size[8.5,10;]" .. mail.theme .. [[
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;3;false;false]

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local FORMNAME = "mail:editcontact"
function mail.show_edit_contact(name, contact_name, note, illegal_name_hint)

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local FORMNAME = "mail:editmaillist"
function mail.show_edit_maillist(playername, maillist_name, desc, players, illegal_name_hint)

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local inbox_formspec = "size[8.5,10;]" .. mail.theme .. [[
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;1;false;false]

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local FORMNAME = "mail:maillists"
local maillists_formspec = "size[8,9;]" .. mail.theme .. [[

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local FORMNAME = "mail:message"
function mail.show_message(name, id)

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local sent_formspec = "size[8.5,10;]" .. mail.theme .. [[
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;2;false;false]

View file

@ -1,3 +1,6 @@
-- translation
local S = minetest.get_translator("mail")
local FORMNAME = "mail:selectcontact"
local select_contact_formspec = "size[8,9;]" .. mail.theme .. [[