mirror of
https://github.com/rubenwardy/food_sweet.git
synced 2025-01-10 10:00:37 +01:00
Fix intllib boilerplate code
This commit is contained in:
parent
25cf50389e
commit
1719cf77fa
5
init.lua
5
init.lua
@ -15,9 +15,8 @@ end
|
|||||||
|
|
||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||||
local S
|
local S
|
||||||
if (minetest.get_modpath("intllib")) then
|
if minetest.get_modpath("intllib") then
|
||||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
S = intllib.Getter()
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
|
||||||
else
|
else
|
||||||
S = function ( s ) return s end
|
S = function ( s ) return s end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user