mirror of
https://github.com/rubenwardy/food_sweet.git
synced 2025-01-09 17:40:39 +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.
|
||||
local S
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user