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:
committed by
rubenwardy
parent
7fd56ac3d0
commit
1049280eeb
17
init.lua
17
init.lua
@ -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 = {
|
||||
|
Reference in New Issue
Block a user