From 09a6592f69bffc77c2ad873893323d759496a48a Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 11 Jun 2016 11:14:08 +0100 Subject: Added intllib support (en/de) --- init.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index d8b284a..09a83de 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,15 @@ local path = minetest.get_modpath("mobs_animal") +-- Intllib +local S +if minetest.get_modpath("intllib") then + S = intllib.Getter() +else + S = function(s) return s end +end +mobs.intllib = S + -- Animals dofile(path .. "/chicken.lua") -- JKmurray @@ -12,4 +21,4 @@ dofile(path .. "/bee.lua") -- KrupnoPavel dofile(path .. "/bunny.lua") -- ExeterDad dofile(path .. "/kitten.lua") -- Jordach/BFD -print ("[MOD] Mobs Redo 'Animals' loaded") +print (S("[MOD] Mobs Redo 'Animals' loaded")) -- cgit v1.2.3