mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-08 11:17:30 +01:00
default to mt translate, fallback intllib
This commit is contained in:
parent
f442c3ed58
commit
d7b734022d
@ -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
|
||||
|
||||
|
3
init.lua
3
init.lua
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user