forked from nalc/awards
Update to new intllib API.
This commit is contained in:
committed by
rubenwardy
parent
7fd56ac3d0
commit
1049280eeb
11
api.lua
11
api.lua
@ -14,10 +14,8 @@
|
||||
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
--
|
||||
|
||||
-- The global award namespace
|
||||
awards = {
|
||||
show_mode = "hud"
|
||||
}
|
||||
local S = awards.gettext
|
||||
|
||||
dofile(minetest.get_modpath("awards").."/api_helpers.lua")
|
||||
|
||||
-- Table Save Load Functions
|
||||
@ -29,11 +27,6 @@ function awards.save()
|
||||
end
|
||||
end
|
||||
|
||||
local S = function(s) return s end
|
||||
function awards.set_intllib(locale)
|
||||
S = locale
|
||||
end
|
||||
|
||||
function awards.init()
|
||||
awards.players = awards.load()
|
||||
awards.def = {}
|
||||
|
Reference in New Issue
Block a user