summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@o2.pl>2014-06-21 12:44:31 +0200
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-06-21 12:44:31 +0200
commit002bcbb6d82efe299ba781726ddc44ce890dfc61 (patch)
tree77e23f451a8dac9dfb060f7982c1897277a4d89c /api.lua
parent87f502a2592bbd41e99df9009a966111156f0181 (diff)
Add intllib support.
Some polish and german translations. Start adding tooltips.
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/api.lua b/api.lua
index 23dd6d4..1ab19fc 100644
--- a/api.lua
+++ b/api.lua
@@ -1,3 +1,9 @@
+local S
+if intllib then
+ S = intllib.Getter()
+else
+ S = function(s) return s end
+end
-- Create detached creative inventory after loading all mods
minetest.after(0.01, function()