From d974117fe7dd16c8a219488ba5b87b3bc6950dbc Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sat, 14 Feb 2015 22:57:40 +0100 Subject: [PATCH 1/2] fix an error message --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index cb30b8c..c740988 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ -- Support the old multi-load method -intllib = intllib or {} +intllib = rawget(_G, "intllib") or {} local MP = minetest.get_modpath("intllib") From 4db867fa7e84543f871ff81a351e76c70a710f87 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sat, 14 Feb 2015 23:07:23 +0100 Subject: [PATCH 2/2] =?UTF-8?q?this=20=E2=80=A6=20what=20was=20it=20good?= =?UTF-8?q?=20for=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index c740988..a1abfe3 100644 --- a/init.lua +++ b/init.lua @@ -23,7 +23,7 @@ local insertion_pattern = "("..INS_CHAR.."?)"..INS_CHAR.."(%(?)(%d+)(%)?)" local function make_getter(msgstrs) return function(s, ...) local str - if strs then + if rawget(_G, "strs") then str = msgstrs[s] end if not str or str == "" then