summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-05-30 12:30:00 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-05-30 12:30:00 +0100
commitcbf7bee93af73f0c5fc3098a81149fb3b884b91b (patch)
tree28bd29fe3933cf94a5d41a5a1488ddc3887d9ed4 /init.lua
parent3d59270aef645f2d98384609d806f591cb6086fa (diff)
Added intllib support (thanks Xanthin)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index a7b1ceb..8e40478 100644
--- a/init.lua
+++ b/init.lua
@@ -1,5 +1,5 @@
--[[
- Minetest Farming Redo Mod 1.22 (26th May 2016)
+ Minetest Farming Redo Mod 1.22 (30th May 2016)
by TenPlus1
NEW growing routine by prestidigitator
auto-refill by crabman77
@@ -49,6 +49,15 @@ end
local statistics = dofile(farming.path.."/statistics.lua")
+-- Intllib
+local S
+if minetest.get_modpath("intllib") then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
+farming.intllib = S
+
dofile(farming.path.."/soil.lua")
dofile(farming.path.."/hoes.lua")
dofile(farming.path.."/grass.lua")
@@ -611,7 +620,7 @@ farming.register_plant = function(name, def)
-- Check def table
if not def.description then
- def.description = "Seed"
+ def.description = S("Seed")
end
if not def.inventory_image then