diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-07-09 14:10:33 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-07-09 14:10:33 +0100 |
commit | 6c8ea9e5ea8e6dce685b570028c0b9da53cf7e6c (patch) | |
tree | c49610ba059a5877728f43eb6f403388fb259d4e | |
parent | 99b8a2474ce2c4da413adf80e6d11c8529c238e9 (diff) |
update intllib
-rw-r--r-- | init.lua | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -56,8 +56,14 @@ end -- Intllib
local S
-if minetest.get_modpath("intllib") then
- S = intllib.Getter()
+if minetest.global_exists("intllib") then
+ if intllib.make_gettext_pair then
+ -- New method using gettext.
+ S = intllib.make_gettext_pair()
+ else
+ -- Old method using text files.
+ S = intllib.Getter()
+ end
else
S = function(s) return s end
end
|