currency/craftitems.lua
Louis Royer 3417900b98 Use builtin translation system
- This removes `intllib` depends. I used
https://github.com/FaceDeer/update_translations to convert from existing
translation files (plus manual edit).
- Removed translation string from `minetest.log` calls since translated
string are not printed in console.
- Changed formspec in `barter.lua` to allow longer strings to be displayed
(player names, and longer translated strings).
- French translation improvement.
2020-03-01 15:25:24 +01:00

64 lines
1.7 KiB
Lua

local S = minetest.get_translator("currency")
minetest.register_craftitem("currency:minegeld_cent_5", {
description = S("@1 Minegeld cent coin", "5"),
inventory_image = "minegeld_cent_5.png",
stack_max = 1000,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_cent_10", {
description = S("@1 Minegeld cent coin", "10"),
inventory_image = "minegeld_cent_10.png",
stack_max = 1000,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_cent_25", {
description = S("@1 Minegeld cent coin", "25"),
inventory_image = "minegeld_cent_25.png",
stack_max = 1000,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld", {
description = S("@1 Minegeld Note", "1"),
inventory_image = "minegeld.png",
stack_max = 65535,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_5", {
description = S("@1 Minegeld Note", "5"),
inventory_image = "minegeld_5.png",
stack_max = 65535,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_10", {
description = S("@1 Minegeld Note", "10"),
inventory_image = "minegeld_10.png",
stack_max = 65535,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_50", {
description = S("@1 Minegeld Note", "50"),
inventory_image = "minegeld_50.png",
stack_max = 65535,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_100", {
description = S("@1 Minegeld Note", "100"),
inventory_image = "minegeld_100.png",
stack_max = 65535,
groups = {minegeld = 1}
})
minetest.register_craftitem("currency:minegeld_bundle", {
description = S("Bundle of random Minegeld notes"),
inventory_image = "minegeld_bundle.png",
stack_max = 65535,
})