Add intllib support

This commit is contained in:
Wuzzy
2016-11-10 15:13:26 +01:00
parent bcfd8e73e5
commit 3e15c497c3
4 changed files with 28 additions and 6 deletions

View File

@ -1,4 +1,10 @@
--pyramids = {}
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
local mummy_walk_limit = 1
local mummy_chillaxin_speed = 1
@ -305,7 +311,7 @@ minetest.register_entity("tsm_pyramids:mummy_spawner", spawner_DEF)
--spawn-egg/spawner
minetest.register_craftitem("tsm_pyramids:spawn_egg", {
description = "Mummy spawn-egg",
description = S("Mummy spawn-egg"),
inventory_image = "tsm_pyramids_mummy_egg.png",
liquids_pointable = false,
stack_max = 99,
@ -333,7 +339,7 @@ else
end
minetest.register_node("tsm_pyramids:spawner_mummy", {
description = "Mummy spawner",
description = S("Mummy spawner"),
paramtype = "light",
tiles = {"tsm_pyramids_spawner.png"},
is_ground_content = false,