declare the translator in every module instead of a global
This commit is contained in:
parent
4d4fd90eee
commit
af03f9439b
@ -1,5 +1,3 @@
|
|||||||
allow_defined_top = true
|
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
"mail",
|
"mail",
|
||||||
}
|
}
|
||||||
|
3
init.lua
3
init.lua
@ -31,9 +31,6 @@ if minetest.get_modpath("default") then
|
|||||||
mail.theme = default.gui_bg .. default.gui_bg_img
|
mail.theme = default.gui_bg .. default.gui_bg_img
|
||||||
end
|
end
|
||||||
|
|
||||||
-- translation
|
|
||||||
S = minetest.get_translator("mail")
|
|
||||||
|
|
||||||
-- sub files
|
-- sub files
|
||||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||||
dofile(MP .. "/util/normalize.lua")
|
dofile(MP .. "/util/normalize.lua")
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:compose"
|
local FORMNAME = "mail:compose"
|
||||||
local msg_id = {}
|
local msg_id = {}
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:contacts"
|
local FORMNAME = "mail:contacts"
|
||||||
|
|
||||||
local contacts_formspec = "size[8,9;]" .. mail.theme .. [[
|
local contacts_formspec = "size[8,9;]" .. mail.theme .. [[
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local drafts_formspec = "size[8.5,10;]" .. mail.theme .. [[
|
local drafts_formspec = "size[8.5,10;]" .. mail.theme .. [[
|
||||||
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;3;false;false]
|
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;3;false;false]
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:editcontact"
|
local FORMNAME = "mail:editcontact"
|
||||||
|
|
||||||
function mail.show_edit_contact(name, contact_name, note, illegal_name_hint)
|
function mail.show_edit_contact(name, contact_name, note, illegal_name_hint)
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:editmaillist"
|
local FORMNAME = "mail:editmaillist"
|
||||||
|
|
||||||
function mail.show_edit_maillist(playername, maillist_name, desc, players, illegal_name_hint)
|
function mail.show_edit_maillist(playername, maillist_name, desc, players, illegal_name_hint)
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local inbox_formspec = "size[8.5,10;]" .. mail.theme .. [[
|
local inbox_formspec = "size[8.5,10;]" .. mail.theme .. [[
|
||||||
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;1;false;false]
|
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;1;false;false]
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:maillists"
|
local FORMNAME = "mail:maillists"
|
||||||
|
|
||||||
local maillists_formspec = "size[8,9;]" .. mail.theme .. [[
|
local maillists_formspec = "size[8,9;]" .. mail.theme .. [[
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:message"
|
local FORMNAME = "mail:message"
|
||||||
|
|
||||||
function mail.show_message(name, id)
|
function mail.show_message(name, id)
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local sent_formspec = "size[8.5,10;]" .. mail.theme .. [[
|
local sent_formspec = "size[8.5,10;]" .. mail.theme .. [[
|
||||||
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;2;false;false]
|
tabheader[0.3,1;boxtab;]] .. S("Inbox") .. "," .. S("Sent messages").. "," .. S("Drafts") .. [[;2;false;false]
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:selectcontact"
|
local FORMNAME = "mail:selectcontact"
|
||||||
|
|
||||||
local select_contact_formspec = "size[8,9;]" .. mail.theme .. [[
|
local select_contact_formspec = "size[8,9;]" .. mail.theme .. [[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user