mirror of
https://github.com/minetest-mods/intllib.git
synced 2025-01-23 16:30:18 +01:00
Print mod source that called deprecated 'intllib.Getter'
This commit is contained in:
parent
49e965d28a
commit
f8c20c7507
7
init.lua
7
init.lua
@ -65,8 +65,11 @@ end
|
||||
|
||||
|
||||
function intllib.Getter(modname)
|
||||
minetest.log("deprecated", "intllib.Getter is deprecated."
|
||||
.."Please use intllib.make_gettext_pair instead.")
|
||||
local info = debug.getinfo(2)
|
||||
local loc = info.short_src..":"..info.currentline
|
||||
minetest.log("deprecated", "intllib.Getter (called from \""
|
||||
..loc.."\") is deprecated."
|
||||
.." Please use intllib.make_gettext_pair instead.")
|
||||
return Getter(modname)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user