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/LV/water_mill.lua |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/technic/machines/LV/water_mill.lua b/technic/machines/LV/water_mill.lua
index 3888ef1..bf67268 100644
--- a/technic/machines/LV/water_mill.lua
+++ b/technic/machines/LV/water_mill.lua
@@ -1,6 +1,9 @@
 -- A water mill produces LV EUs by exploiting flowing water across it
 -- It is a LV EU supplyer and fairly low yield (max 120EUs)
 -- It is a little under half as good as the thermal generator.
+
+local S = technic.getter
+
 minetest.register_alias("water_mill", "technic:water_mill")
 
 minetest.register_craft({
@@ -13,7 +16,7 @@
 })
 
 minetest.register_node("technic:water_mill", {
-	description = "Water Mill",
+	description = S("Water Mill"),
 	tiles = {"technic_water_mill_top.png",  "technic_machine_bottom.png",
 	         "technic_water_mill_side.png", "technic_water_mill_side.png",
 	         "technic_water_mill_side.png", "technic_water_mill_side.png"},
@@ -23,13 +26,13 @@
 	sounds = default.node_sound_wood_defaults(),
 	on_construct = function(pos)
 		local meta = minetest.get_meta(pos)
-		meta:set_string("infotext", "Water Mill")
+		meta:set_string("infotext", S("Water Mill"))
 		meta:set_int("LV_EU_supply", 0)
 	end,	
 })
 
 minetest.register_node("technic:water_mill_active", {
-	description = "Water Mill",
+	description = S("Water Mill"),
 	tiles = {"technic_water_mill_top_active.png", "technic_machine_bottom.png",
 	         "technic_water_mill_side.png",       "technic_water_mill_side.png",
 	         "technic_water_mill_side.png",       "technic_water_mill_side.png"},
@@ -82,7 +85,7 @@
 		end
 
 		meta:set_string("infotext",
-			"Water Mill ("..production_level.."%)")
+			S("Water Mill").." ("..production_level.."%)")
 
 		if production_level > 0 and
 		   minetest.get_node(pos).name == "technic:water_mill" then

--
Gitblit v1.8.0