forked from mtcontrib/3d_armor
Change intllib for v5 minetest.get_translator
This commit is contained in:
committed by
Buckaroo Banzai
parent
979516c13d
commit
4dc9a81ec2
@ -5,14 +5,12 @@ local last_punch_time = {}
|
||||
local pending_players = {}
|
||||
local timer = 0
|
||||
|
||||
-- support for i18n
|
||||
armor_i18n = { }
|
||||
armor_i18n.gettext, armor_i18n.ngettext = dofile(modpath.."/intllib.lua")
|
||||
|
||||
-- local functions
|
||||
local S = armor_i18n.gettext
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
local F = minetest.formspec_escape
|
||||
|
||||
armor.get_translator = S
|
||||
|
||||
dofile(modpath.."/api.lua")
|
||||
|
||||
-- integration test
|
||||
|
Reference in New Issue
Block a user