diff options
author | Wuzzy <almikes@aol.com> | 2017-07-06 03:11:56 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2017-07-06 03:12:07 +0200 |
commit | aa5fef12986993e818a36b5983ceba19c57d9243 (patch) | |
tree | 3850cb68421f73d37e894344c7e9f4900bab922f | |
parent | f19a85c5375f47ca9faab2312e7ff45b4cc115d4 (diff) |
Replace deprecated intllib call:
- 'Getter' with 'make_gettext_pair' if available
Thanks, AntumDeluge!
-rw-r--r-- | init.lua | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,6 +1,10 @@ local S -if (minetest.get_modpath("intllib")) then - S = intllib.Getter() +if minetest.global_exists("intllib") then + if intllib.make_gettext_pair then + S = intllib.make_gettext_pair() + else + S = intllib.Getter() + end else S = function ( s ) return s end end |