translate many nalc_* mods
and use function to register toolranks
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
local S = minetest.get_translator("nalc_boats")
|
||||
--
|
||||
-- Helper functions
|
||||
--
|
||||
@ -232,7 +233,7 @@ local register_boat = function(parameters)
|
||||
minetest.register_craftitem(
|
||||
"nalc_boats:"..parameters.name,
|
||||
{
|
||||
description = parameters.description or "Boat",
|
||||
description = parameters.description or S("Boat"),
|
||||
inventory_image = "boats_"..parameters.name .. "_inventory.png",
|
||||
wield_image = "boats_"..parameters.name.."_wield.png",
|
||||
wield_scale = {x = 2, y = 2, z = 1},
|
||||
@ -281,7 +282,7 @@ register_boat(
|
||||
down = 0.18,
|
||||
rotate = 1
|
||||
},
|
||||
description = "Race boat"
|
||||
description = S("Race boat")
|
||||
})
|
||||
|
||||
register_boat(
|
||||
@ -292,7 +293,7 @@ register_boat(
|
||||
down = 0.25,
|
||||
rotate = 4
|
||||
},
|
||||
description = "Expert race boat"
|
||||
description = S("Expert race boat")
|
||||
})
|
||||
|
||||
register_boat(
|
||||
@ -303,7 +304,7 @@ register_boat(
|
||||
down = 0.24,
|
||||
rotate = 4
|
||||
},
|
||||
description = "Water boat"
|
||||
description = S("Water boat")
|
||||
})
|
||||
|
||||
register_boat(
|
||||
@ -314,7 +315,7 @@ register_boat(
|
||||
down = 0.1,
|
||||
rotate = 8
|
||||
},
|
||||
description = "Moon boat"
|
||||
description = S("Moon boat")
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
|
Reference in New Issue
Block a user