diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-02-11 21:24:30 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-02-11 21:24:30 -0700 |
commit | 4c11d3ce2edd0bc0fd45795069ec45e038229360 (patch) | |
tree | 876571f99b94bfed4e895d4553b8fb7e7a6eeeca /craftitems.lua | |
parent | 2be459a49a47a247d3ea947f715007b23dafdde9 (diff) |
add support for intllib and loot mods
Diffstat (limited to 'craftitems.lua')
-rw-r--r-- | craftitems.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/craftitems.lua b/craftitems.lua index 47ad953..a8d7570 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -1,26 +1,30 @@ +-- internationalization boilerplate
+local MP = minetest.get_modpath(minetest.get_current_modname())
+local S, NS = dofile(MP.."/intllib.lua")
+
minetest.register_craftitem("currency:minegeld", {
- description = "1 MineGeld Note",
+ description = S("1 MineGeld Note"),
inventory_image = "minegeld.png",
stack_max = 30000,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_5", {
- description = "5 MineGeld Note",
+ description = S("5 MineGeld Note"),
inventory_image = "minegeld_5.png",
stack_max = 30000,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_10", {
- description = "10 MineGeld Note",
+ description = S("10 MineGeld Note"),
inventory_image = "minegeld_10.png",
stack_max = 30000,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_bundle", {
- description = "Bundle of random Minegeld notes",
+ description = S("Bundle of random Minegeld notes"),
inventory_image = "minegeld_bundle.png",
stack_max = 30000,
})
|