Compare commits
4 Commits
master
...
fix-get-ke
Author | SHA1 | Date | |
---|---|---|---|
|
aa3146dcae | ||
|
58604e4da1 | ||
|
8753c92cab | ||
|
89994e0e45 |
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
|||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
ENGINE_VERSION: [5.0.1, 5.1.1, 5.2.0, 5.3.0, 5.4.1, 5.5.1, 5.6.1, 5.7.0, 5.8.0, 5.9.0, latest]
|
ENGINE_VERSION: [5.0.1, 5.1.1, 5.2.0, 5.3.0, 5.4.1, 5.5.1, 5.6.1, 5.7.0, 5.8.0, latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -76,7 +76,7 @@ See the "LICENSE" file
|
|||||||
* fluxionary (Minor fixups)
|
* fluxionary (Minor fixups)
|
||||||
* Toby1710 (UX fixes)
|
* Toby1710 (UX fixes)
|
||||||
* Peter Nerlich (CC, BCC)
|
* Peter Nerlich (CC, BCC)
|
||||||
* Emojigit (Performance, Traditional Chinese translation)
|
* Emojigit (Traditional Chinese translation)
|
||||||
* Niklp09 (German translation)
|
* Niklp09 (German translation)
|
||||||
* Dennis Jenkins (UX fixes)
|
* Dennis Jenkins (UX fixes)
|
||||||
* Thomas Rudin (Maintenance)
|
* Thomas Rudin (Maintenance)
|
||||||
|
2
api.lua
2
api.lua
@ -1,7 +1,7 @@
|
|||||||
-- see: mail.md
|
-- see: mail.md
|
||||||
|
|
||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local f = string.format
|
local f = string.format
|
||||||
|
|
||||||
|
3
init.lua
3
init.lua
@ -5,9 +5,6 @@ mail = {
|
|||||||
-- mod storage
|
-- mod storage
|
||||||
storage = minetest.get_mod_storage(),
|
storage = minetest.get_mod_storage(),
|
||||||
|
|
||||||
-- translation
|
|
||||||
S = minetest.get_translator(minetest.get_current_modname()),
|
|
||||||
|
|
||||||
-- ui theme prepend
|
-- ui theme prepend
|
||||||
theme = "",
|
theme = "",
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
minetest.after(2, function(name)
|
minetest.after(2, function(name)
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
-- translation
|
local S = minetest.get_translator("mail")
|
||||||
local S = mail.S
|
|
||||||
|
|
||||||
local has_canonical_name = minetest.get_modpath("canonical_name")
|
local has_canonical_name = minetest.get_modpath("canonical_name")
|
||||||
|
|
||||||
mail.register_on_player_receive(function(name, msg)
|
mail.register_on_player_receive(function(name, msg)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:about"
|
local FORMNAME = "mail:about"
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ local contributors = {
|
|||||||
{ name = "BuckarooBanzay", groups = {"c"} },
|
{ name = "BuckarooBanzay", groups = {"c"} },
|
||||||
{ name = "Chache", groups = {"i"} },
|
{ name = "Chache", groups = {"i"} },
|
||||||
{ name = "Dennis Jenkins", groups = {"c"} },
|
{ name = "Dennis Jenkins", groups = {"c"} },
|
||||||
{ name = "Emojigit", groups = {"c", "i"} },
|
{ name = "Emojigit", groups = {"i"} },
|
||||||
{ name = "Eredin", groups = {"i"} },
|
{ name = "Eredin", groups = {"i"} },
|
||||||
{ name = "fluxionary", groups = {"c"} },
|
{ name = "fluxionary", groups = {"c"} },
|
||||||
{ name = "imre84", groups = {"c"} },
|
{ name = "imre84", groups = {"c"} },
|
||||||
@ -55,7 +55,7 @@ function mail.show_about(name)
|
|||||||
label[0.2,0;Mail]
|
label[0.2,0;Mail]
|
||||||
|
|
||||||
label[0.2,0.5;]] .. S("Provided by mt-mods") .. [[]
|
label[0.2,0.5;]] .. S("Provided by mt-mods") .. [[]
|
||||||
label[0.2,0.9;]] .. S("Version: @1", "1.5.0-dev") .. [[]
|
label[0.2,0.9;]] .. S("Version: @1", "1.4.1-dev") .. [[]
|
||||||
|
|
||||||
box[0,1.5;3,0.45;]] .. mail.get_color("highlighted") .. [[]
|
box[0,1.5;3,0.45;]] .. mail.get_color("highlighted") .. [[]
|
||||||
label[0.2,1.5;]] .. S("Licenses") .. [[]
|
label[0.2,1.5;]] .. S("Licenses") .. [[]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:compose"
|
local FORMNAME = "mail:compose"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:contacts"
|
local FORMNAME = "mail:contacts"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
|
|
||||||
function mail.show_drafts(name)
|
function mail.show_drafts(name)
|
||||||
local trash_tab = ""
|
local trash_tab = ""
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:editcontact"
|
local FORMNAME = "mail:editcontact"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:editmaillist"
|
local FORMNAME = "mail:editmaillist"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
function mail.show_inbox(name, sortfieldindex, sortdirection, filter)
|
function mail.show_inbox(name, sortfieldindex, sortdirection, filter)
|
||||||
sortfieldindex = tonumber(sortfieldindex or mail.selected_idxs.sortfield[name])
|
sortfieldindex = tonumber(sortfieldindex or mail.selected_idxs.sortfield[name])
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:maillists"
|
local FORMNAME = "mail:maillists"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:message"
|
local FORMNAME = "mail:message"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
function mail.show_outbox(name, sortfieldindex, sortdirection, filter)
|
function mail.show_outbox(name, sortfieldindex, sortdirection, filter)
|
||||||
sortfieldindex = tonumber(sortfieldindex or mail.selected_idxs.sortfield[name])
|
sortfieldindex = tonumber(sortfieldindex or mail.selected_idxs.sortfield[name])
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:selectcontact"
|
local FORMNAME = "mail:selectcontact"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local FORMNAME = "mail:settings"
|
local FORMNAME = "mail:settings"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
local trash_formspec = "size[8.5,11;]" .. mail.theme .. [[
|
local trash_formspec = "size[8.5,11;]" .. mail.theme .. [[
|
||||||
tabheader[0.3,1;boxtab;]] ..
|
tabheader[0.3,1;boxtab;]] ..
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
function mail.compile_contact_list(name, selected, playernames)
|
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)
|
-- TODO: refactor this - not just compiles *a* list, but *the* list for the contacts screen (too inflexible)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
-- translation
|
local S = minetest.get_translator("mail")
|
||||||
local S = mail.S
|
|
||||||
|
|
||||||
local function recursive_expand_recipient_names(sender, list, is_toplevel, recipients, undeliverable)
|
local function recursive_expand_recipient_names(sender, list, is_toplevel, recipients, undeliverable)
|
||||||
for _, name in ipairs(list) do
|
for _, name in ipairs(list) do
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
mail.settings = {
|
mail.settings = {
|
||||||
chat_notifications = {
|
chat_notifications = {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-- translation
|
-- translation
|
||||||
local S = mail.S
|
local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
function mail.time_ago(t)
|
function mail.time_ago(t)
|
||||||
local elapsed = os.time() - t
|
local elapsed = os.time() - t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user