mirror of
https://github.com/rubenwardy/food.git
synced 2025-07-12 12:10:23 +02:00
Fix intllib boilerplate code
This commit is contained in:
@ -13,9 +13,8 @@ dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S = 0
|
||||
if rawget(_G, "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
|
||||
|
Reference in New Issue
Block a user