1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2025-06-29 14:40:43 +02:00

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

View File

@ -14,20 +14,21 @@
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--
-- The global award namespace
awards = {
show_mode = "hud"
}
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function ( s ) return s end
end
-- Internationalization support.
local S, NS = dofile(minetest.get_modpath("awards").."/intllib.lua")
awards.gettext, awards.ngettext = S, NS
dofile(minetest.get_modpath("awards").."/api.lua")
dofile(minetest.get_modpath("awards").."/chat_commands.lua")
dofile(minetest.get_modpath("awards").."/sfinv.lua")
dofile(minetest.get_modpath("awards").."/unified_inventory.lua")
dofile(minetest.get_modpath("awards").."/triggers.lua")
awards.set_intllib(S)
-- Saint-Maclou
if minetest.get_modpath("moreblocks") then
@ -712,7 +713,7 @@ end
if minetest.get_modpath("farming") then
awards.register_achievement("awards_farmer", {
title = S("Farming Skills Aquired"),
title = S("Farming Skills Acquired"),
description = S("Harvest a fully grown wheat plant."),
icon = "farming_wheat_8.png^awards_level1.png",
trigger = {