mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-30 23:30:38 +02:00
Add support for translations via intllib
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user