diff options
author | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-02-21 04:45:45 -0300 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2017-02-23 22:48:13 +0000 |
commit | 1049280eeba4d78fed1fdc15a89a5e3d2ecd7357 (patch) | |
tree | b2a95f5ad8ef98c81cd48faa7dfaa5610d910a7c /init.lua | |
parent | 7fd56ac3d0730482ea9af086c0e8630ac3426af7 (diff) |
Update to new intllib API.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 = { |