From be2f30a1a2f5b6c2aae7fd4cf8231aec2da0844d Mon Sep 17 00:00:00 2001
From: ShadowNinja <noreply@gmail.com>
Date: Wed, 30 Oct 2013 18:48:39 +0100
Subject: [PATCH] Add support for translations via intllib

---
 technic/machines/register/cables.lua |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/technic/machines/register/cables.lua b/technic/machines/register/cables.lua
index 8da650b..3bf2208 100644
--- a/technic/machines/register/cables.lua
+++ b/technic/machines/register/cables.lua
@@ -1,6 +1,7 @@
 
-technic.cables = {}
+local S = technic.getter
 
+technic.cables = {}
 
 function technic.register_cable(tier, size)
 	local ltier = string.lower(tier)
@@ -21,7 +22,7 @@
 		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",

--
Gitblit v1.8.0