aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorCalinou <calinou@opmbx.org>2014-12-27 20:30:19 +0100
committerCalinou <calinou@opmbx.org>2014-12-27 20:30:19 +0100
commitcd65ed093032afe0e32a71b587d9f119dafe3954 (patch)
treeafb89f538414b103b315312ea78e1e81ac965e67 /init.lua
parent4b682f47301e68d83da98f6ee5d57c6f526ba051 (diff)
downloadmoreblocks-cd65ed093032afe0e32a71b587d9f119dafe3954.tar.gz
moreblocks-cd65ed093032afe0e32a71b587d9f119dafe3954.tar.bz2
moreblocks-cd65ed093032afe0e32a71b587d9f119dafe3954.zip
Big cleanup. Fix intllib support.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua22
1 files changed, 12 insertions, 10 deletions
diff --git a/init.lua b/init.lua
index 8180251..7e3b4d9 100644
--- a/init.lua
+++ b/init.lua
@@ -1,19 +1,22 @@
--[[
--- More Blocks (moreblocks) by Calinou
--- Licensed under the zlib/ license for code and CC BY-SA 3.0 for textures, see LICENSE.txt for info.
+======================================================================
+** More Blocks **
+By Calinou, with the help of ShadowNinja and VanessaE.
+
+Copyright (c) 2011-2014 Calinou and contributors.
+Licensed under the zlib license. See LICENSE.txt for more information.
+======================================================================
--]]
moreblocks = {}
--- Load translation library if intllib is installed
-
-local S -- Load translation library if intllib is installed:
-if intllib then
- S = intllib.Getter(minetest.get_current_modname())
+local S
+if minetest.get_modpath("intllib") then
+ S = intllib.Getter()
else
S = function(s) return s end
end
-moreblocks.gettext = S
+moreblocks.intllib = S
local modpath = minetest.get_modpath("moreblocks")
@@ -26,6 +29,5 @@ dofile(modpath .. "/crafting.lua")
dofile(modpath .. "/aliases.lua")
if minetest.setting_getbool("log_mods") then
- print(S("[moreblocks] loaded."))
+ minetest.log("action", S("[moreblocks] loaded."))
end
-