mirror of
https://github.com/rubenwardy/food.git
synced 2024-11-14 06:10:36 +01:00
Merge pull request #20 from LeMagnesium/intllib_global_variables
Replaced calls for IntLlib's global variable
This commit is contained in:
commit
80990e12e1
|
@ -8,7 +8,7 @@
|
|||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S = 0
|
||||
if (intllib) then
|
||||
if rawget(_G, "intllib") then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
|
|
|
@ -13,7 +13,7 @@ dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
|
|||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S = 0
|
||||
if (intllib) then
|
||||
if rawget(_G, "intllib") then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user