Skip to content

Commit cd6ed58

Browse files
committed
Replace deprecated 'intllib' function intllib.Getter with...
...intllib'make_gettext_pair.
1 parent d1b54a5 commit cd6ed58

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

concrete/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local technic = rawget(_G, "technic") or {}
55
technic.concrete_posts = {}
66

77
-- Boilerplate to support localized strings if intllib mod is installed.
8-
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
8+
local S = rawget(_G, "intllib") and intllib.make_gettext_pair() or function(s) return s end
99

1010
for i = 0, 31 do
1111
minetest.register_alias("technic:concrete_post"..i,

extranodes/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- Minetest 0.4.6 mod: extranodes
22
-- namespace: technic
33
-- Boilerplate to support localized strings if intllib mod is installed.
4-
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
4+
local S = rawget(_G, "intllib") and intllib.make_gettext_pair() or function(s) return s end
55

66
if minetest.get_modpath("moreblocks") then
77

technic/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ technic.modpath = modpath
1414

1515
-- Boilerplate to support intllib
1616
if rawget(_G, "intllib") then
17-
technic.getter = intllib.Getter()
17+
technic.getter = intllib.make_gettext_pair()
1818
else
1919
technic.getter = function(s,a,...)if a==nil then return s end a={a,...}return s:gsub("(@?)@(%(?)(%d+)(%)?)",function(e,o,n,c)if e==""then return a[tonumber(n)]..(o==""and c or"")else return"@"..o..n..c end end) end
2020
end

technic/machines/MV/lighting.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
local S
88
if (minetest.get_modpath("intllib")) then
99
dofile(minetest.get_modpath("intllib").."/intllib.lua")
10-
S = intllib.Getter(minetest.get_current_modname())
10+
S = intllib.make_gettext_pair(minetest.get_current_modname())
1111
else
1212
S = function (s) return s end
1313
end

technic_chests/register.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
1+
local S = rawget(_G, "intllib") and intllib.make_gettext_pair() or function(s) return s end
22

33
local pipeworks = rawget(_G, "pipeworks")
44
local fs_helpers = rawget(_G, "fs_helpers")

technic_worldgen/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ local modpath = minetest.get_modpath("technic_worldgen")
22

33
technic = rawget(_G, "technic") or {}
44
technic.worldgen = {
5-
gettext = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end,
5+
gettext = rawget(_G, "intllib") and intllib.make_gettext_pair() or function(s) return s end,
66
}
77

88
dofile(modpath.."/config.lua")

wrench/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dofile(modpath.."/support.lua")
2020
dofile(modpath.."/technic.lua")
2121

2222
-- Boilerplate to support localized strings if intllib mod is installed.
23-
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
23+
local S = rawget(_G, "intllib") and intllib.make_gettext_pair() or function(s) return s end
2424

2525
local function get_meta_type(name, metaname)
2626
local def = wrench.registered_nodes[name]

0 commit comments

Comments
 (0)