Add support for translations via intllib

This commit is contained in:
ShadowNinja
2013-10-30 13:45:32 -04:00
parent d8e02eb2dd
commit be2f30a1a2
35 changed files with 541 additions and 308 deletions

View File

@ -1,7 +1,8 @@
local S = technic.getter
technic.cables = {}
function technic.register_cable(tier, size)
local ltier = string.lower(tier)
@ -21,7 +22,7 @@ function technic.register_cable(tier, size)
end
minetest.register_node("technic:"..ltier.."_cable"..id, {
description = tier.." Cable",
description = S("%s Cable"):format(tier),
tiles = {"technic_"..ltier.."_cable.png"},
inventory_image = "technic_"..ltier.."_cable_wield.png",
wield_image = "technic_"..ltier.."_cable_wield.png",