diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-05-30 18:53:44 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-05-30 18:53:44 +0200 |
commit | 25d743b7e702613735fb5aeeaff2e14d50c0eb8e (patch) | |
tree | 045849b2ad73168d6e77bb9b95a6cf3859fa2f26 /craftitems.lua | |
parent | e463c23587af4b9be3c42583d3713d729d908aca (diff) | |
parent | bb3fd1a928c730c9a99a341ec4aa9969f99c0195 (diff) |
Merge branch 'master' of https://github.com/minetest-mods/currencyHEADorigin/masterorigin/HEADmaster
Also removed 50 MG note, since it doesn't make much sense on my server.
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,
})
|