default to mt translate, fallback intllib
This commit is contained in:
parent
f442c3ed58
commit
d7b734022d
8 changed files with 3 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue