Update to new intllib API.

This commit is contained in:
Diego Martínez
2017-02-21 04:45:45 -03:00
committed by rubenwardy
parent 7fd56ac3d0
commit 1049280eeb
7 changed files with 89 additions and 87 deletions

11
api.lua
View File

@ -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 = {}