summaryrefslogtreecommitdiff
path: root/tools.lua
diff options
context:
space:
mode:
authorxisd <zlexis.dnl@googlemail.com>2016-10-18 18:13:59 +0200
committerAuke Kok <sofar+github@foo-projects.org>2016-10-18 09:13:59 -0700
commite6421d8d495c4415eeae80c7b1a2ce20d55e443d (patch)
tree1f2c38e7e72f7bd5dbd04888d7bc758d007326af /tools.lua
parent65729b9d33fde507a4044b25cd29fba2d8a5eb50 (diff)
Intllib (#5)
Support for translation via intllib.
Diffstat (limited to 'tools.lua')
-rw-r--r--tools.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools.lua b/tools.lua
index f06c24a..c406223 100644
--- a/tools.lua
+++ b/tools.lua
@@ -8,8 +8,12 @@ published by the Free Software Foundation; either version 2.1
of the license, or (at your option) any later version.
--]]
+
+-- Intllib
+local S = crops.intllib
+
minetest.register_tool("crops:watering_can", {
- description = "Watering Can",
+ description = S("Watering Can"),
inventory_image = "crops_watering_can.png",
liquids_pointable = true,
range = 2.5,
@@ -73,7 +77,7 @@ minetest.register_tool("crops:watering_can", {
})
minetest.register_tool("crops:hydrometer", {
- description = "Hydrometer",
+ description = S("Hydrometer"),
inventory_image = "crops_hydrometer.png",
liquids_pointable = false,
range = 2.5,