default to mt translate, fallback intllib

This commit is contained in:
TenPlus1 2020-07-13 15:03:56 +01:00
parent f442c3ed58
commit d7b734022d
8 changed files with 3 additions and 1 deletions

@ -59,6 +59,7 @@ Change log:
- 2.9 - Added MineClone2 recipes for protection block but no official support as yet
- 3.0 - Added PlayerFactions support, 'protector_hud_interval' setting and listing in advanced settings for mod values.
- 3.1 - Ability to hide protection blocks using /protector_hide and /protector_show , italian local added (thanks Hamlet)
- 3.2 - Defaults to Minetest translation if found, otherwise intllib fallback if loaded, locale files updated for both.
Lucky Blocks: 10

@ -10,8 +10,9 @@ default = default or {
-- Load support for intllib.
local MP = minetest.get_modpath(minetest.get_current_modname())
local S = dofile(MP .. "/intllib.lua")
local F = minetest.formspec_escape
local S = minetest.get_translator and minetest.get_translator("protector") or
dofile(MP .. "/intllib.lua")
-- Load support for factions
local factions_available = minetest.global_exists("factions")