diff --git a/crops/artichoke.lua b/crops/artichoke.lua index a8e3ae7..6a986aa 100644 --- a/crops/artichoke.lua +++ b/crops/artichoke.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:artichoke", 4) -- crop definition local def = { + description = S("Artichoke") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_artichoke_1.png"}, paramtype = "light", diff --git a/crops/asparagus.lua b/crops/asparagus.lua index 6af267d..5cd4d02 100644 --- a/crops/asparagus.lua +++ b/crops/asparagus.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:asparagus", 1) -- crop definition local def = { + description = S("Asparagus") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_asparagus_1.png"}, paramtype = "light", diff --git a/crops/barley.lua b/crops/barley.lua index 3f5487d..ca65456 100644 --- a/crops/barley.lua +++ b/crops/barley.lua @@ -42,6 +42,7 @@ minetest.register_craftitem("farming:barley", { -- crop definition local def = { + description = S("Barley") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_barley_1.png"}, paramtype = "light", diff --git a/crops/beans.lua b/crops/beans.lua index 2d0eb8f..22ca1bd 100644 --- a/crops/beans.lua +++ b/crops/beans.lua @@ -139,6 +139,7 @@ minetest.register_node("farming:beanpole", { -- crop definition local def = { + description = S("Green Beans") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_beanpole_1.png"}, visual_scale = 1.90, diff --git a/crops/beetroot.lua b/crops/beetroot.lua index eef43d3..149b978 100644 --- a/crops/beetroot.lua +++ b/crops/beetroot.lua @@ -20,6 +20,7 @@ farming.add_eatable("farming:beetroot", 1) -- crop definition local def = { + description = S("Beetroot") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_beetroot_1.png"}, paramtype = "light", diff --git a/crops/blackberry.lua b/crops/blackberry.lua index 9df38af..2d308ac 100644 --- a/crops/blackberry.lua +++ b/crops/blackberry.lua @@ -22,6 +22,7 @@ farming.add_eatable("farming:blackberry", 1) -- crop definition local def = { + description = S("Blackberry") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_blackberry_1.png"}, paramtype = "light", diff --git a/crops/blueberry.lua b/crops/blueberry.lua index 864ed26..85bbeeb 100644 --- a/crops/blueberry.lua +++ b/crops/blueberry.lua @@ -21,6 +21,7 @@ farming.add_eatable("farming:blueberries", 1) -- ctop definition local def = { + description = S("Blueberry") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_blueberry_1.png"}, paramtype = "light", diff --git a/crops/cabbage.lua b/crops/cabbage.lua index a90e7f0..c72c43f 100644 --- a/crops/cabbage.lua +++ b/crops/cabbage.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:cabbage", 1) -- crop definition local def = { + description = S("Cabbage") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_cabbage_1.png"}, paramtype = "light", diff --git a/crops/carrot.lua b/crops/carrot.lua index 8220cf7..26f69c9 100644 --- a/crops/carrot.lua +++ b/crops/carrot.lua @@ -23,6 +23,7 @@ farming.add_eatable("farming:carrot", 4) -- crop definition local def = { + description = S("Carrot") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_carrot_1.png"}, paramtype = "light", diff --git a/crops/chili.lua b/crops/chili.lua index 831a77f..00ae994 100644 --- a/crops/chili.lua +++ b/crops/chili.lua @@ -20,6 +20,7 @@ farming.add_eatable("farming:chili_pepper", 2) -- crop definition local def = { + description = S("Chili Pepper") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_chili_1.png"}, paramtype = "light", diff --git a/crops/cocoa.lua b/crops/cocoa.lua index 75a9b62..9f35174 100644 --- a/crops/cocoa.lua +++ b/crops/cocoa.lua @@ -69,6 +69,7 @@ minetest.register_craftitem("farming:cocoa_beans_raw", { -- crop definition local def = { + description = S("Cocoa Beans") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_cocoa_1.png"}, paramtype = "light", diff --git a/crops/coffee.lua b/crops/coffee.lua index cb5bd9c..e1f254b 100644 --- a/crops/coffee.lua +++ b/crops/coffee.lua @@ -16,6 +16,7 @@ minetest.register_craftitem("farming:coffee_beans", { -- crop definition local def = { + description = S("Coffee") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_coffee_1.png"}, paramtype = "light", diff --git a/crops/corn.lua b/crops/corn.lua index 2ede7da..b56d9c8 100644 --- a/crops/corn.lua +++ b/crops/corn.lua @@ -24,6 +24,7 @@ farming.add_eatable("farming:corn", 3) -- crop definition local def = { + description = S("Corn") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_corn_1.png"}, paramtype = "light", diff --git a/crops/cotton.lua b/crops/cotton.lua index 1ce1583..bc1d142 100644 --- a/crops/cotton.lua +++ b/crops/cotton.lua @@ -42,6 +42,7 @@ minetest.register_craftitem("farming:cotton", { -- crop definition local def = { + description = S("Cotton") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_cotton_1.png"}, paramtype = "light", diff --git a/crops/cucumber.lua b/crops/cucumber.lua index def49c2..66d3867 100644 --- a/crops/cucumber.lua +++ b/crops/cucumber.lua @@ -24,6 +24,7 @@ farming.add_eatable("farming:cucumber", 4) -- crop definition local def = { + description = S("Cucumber") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_cucumber_1.png"}, paramtype = "light", diff --git a/crops/eggplant.lua b/crops/eggplant.lua index 8df39d9..941e6ee 100644 --- a/crops/eggplant.lua +++ b/crops/eggplant.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:eggplant", 3) -- crop definition local def = { + description = S("Eggplant") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_eggplant_1.png"}, paramtype = "light", diff --git a/crops/garlic.lua b/crops/garlic.lua index 91fcb0d..51cd03c 100644 --- a/crops/garlic.lua +++ b/crops/garlic.lua @@ -16,6 +16,7 @@ minetest.register_craftitem("farming:garlic_clove", { -- crop definition local def = { + description = S("Garlic") .. S(" Crop"), drawtype = "plantlike", tiles = {"crops_garlic_plant_1.png"}, paramtype = "light", diff --git a/crops/ginger.lua b/crops/ginger.lua index 03e1534..103f1e0 100644 --- a/crops/ginger.lua +++ b/crops/ginger.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:ginger", 1) -- crop definition local def = { + description = S("Ginger") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_ginger_1.png"}, paramtype = "light", diff --git a/crops/grapes.lua b/crops/grapes.lua index fa65c08..6e0fd6d 100644 --- a/crops/grapes.lua +++ b/crops/grapes.lua @@ -137,6 +137,7 @@ minetest.register_node("farming:trellis", { -- crop definition local def = { + description = S("Grapes") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_grapes_1.png"}, visual_scale = 1.9, diff --git a/crops/hemp.lua b/crops/hemp.lua index 0ddd5c6..4bb595b 100644 --- a/crops/hemp.lua +++ b/crops/hemp.lua @@ -42,6 +42,7 @@ minetest.register_craftitem("farming:hemp_leaf", { -- crop definition local def = { + description = S("Hemp") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_hemp_1.png"}, paramtype = "light", diff --git a/crops/lettuce.lua b/crops/lettuce.lua index 6f25b04..a950d0f 100644 --- a/crops/lettuce.lua +++ b/crops/lettuce.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:lettuce", 2) -- crop definition local def = { + description = S("Lettuce") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_lettuce_1.png"}, paramtype = "light", diff --git a/crops/melon.lua b/crops/melon.lua index 0cedc77..b123eb0 100644 --- a/crops/melon.lua +++ b/crops/melon.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:melon_slice", 2) -- crop definition local def = { + description = S("Melon") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_melon_1.png"}, paramtype = "light", diff --git a/crops/mint.lua b/crops/mint.lua index ad5c78d..9894e7e 100644 --- a/crops/mint.lua +++ b/crops/mint.lua @@ -42,6 +42,7 @@ minetest.register_craftitem("farming:mint_leaf", { -- crop definition local def = { + description = S("Mint") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_mint_1.png"}, paramtype = "light", diff --git a/crops/onion.lua b/crops/onion.lua index 4ffee32..1c56b4f 100644 --- a/crops/onion.lua +++ b/crops/onion.lua @@ -25,6 +25,7 @@ farming.add_eatable("farming:onion", 1) -- crop definition local def = { + description = S("Onion") .. S(" Crop"), drawtype = "plantlike", tiles = {"crops_onion_plant_1.png"}, paramtype = "light", diff --git a/crops/parsley.lua b/crops/parsley.lua index 8461e5e..4be7ab9 100644 --- a/crops/parsley.lua +++ b/crops/parsley.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:parsley", 1) -- crop definition local def = { + description = S("Parsley") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_parsley_1.png"}, paramtype = "light", diff --git a/crops/peas.lua b/crops/peas.lua index 550209a..467d08e 100644 --- a/crops/peas.lua +++ b/crops/peas.lua @@ -25,6 +25,7 @@ minetest.register_alias("farming:peas", "farming:pea_pod") -- crop definition local def = { + description = S("Pea") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_pea_1.png"}, paramtype = "light", diff --git a/crops/pepper.lua b/crops/pepper.lua index 47a131c..2147929 100644 --- a/crops/pepper.lua +++ b/crops/pepper.lua @@ -62,6 +62,7 @@ minetest.register_craft({ -- crop definition local def = { + description = S("Pepper") .. S(" Crop"), drawtype = "plantlike", tiles = {"crops_pepper_plant_1.png"}, paramtype = "light", diff --git a/crops/pineapple.lua b/crops/pineapple.lua index ef2cda4..3f18eed 100644 --- a/crops/pineapple.lua +++ b/crops/pineapple.lua @@ -38,6 +38,7 @@ minetest.register_node("farming:pineapple", { -- crop definition local def = { + description = S("Pineapple") .. S(" Crop"), drawtype = "plantlike", visual_scale = 1.5, tiles = {"farming_pineapple_1.png"}, diff --git a/crops/potato.lua b/crops/potato.lua index adb50a9..1f76493 100644 --- a/crops/potato.lua +++ b/crops/potato.lua @@ -36,6 +36,7 @@ farming.add_eatable("farming:potato", 1) -- crop definition local def = { + description = S("Potato") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_potato_1.png"}, paramtype = "light", diff --git a/crops/pumpkin.lua b/crops/pumpkin.lua index 0156895..de3fe08 100644 --- a/crops/pumpkin.lua +++ b/crops/pumpkin.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:pumpkin_slice", 2) -- crop definition local def = { + description = S("Pumpkin") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_pumpkin_1.png"}, paramtype = "light", diff --git a/crops/raspberry.lua b/crops/raspberry.lua index 573384b..210225d 100644 --- a/crops/raspberry.lua +++ b/crops/raspberry.lua @@ -22,6 +22,7 @@ farming.add_eatable("farming:raspberries", 1) -- crop definition local def = { + description = S("Raspberry") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_raspberry_1.png"}, paramtype = "light", diff --git a/crops/rhubarb.lua b/crops/rhubarb.lua index de3232c..15ff9df 100644 --- a/crops/rhubarb.lua +++ b/crops/rhubarb.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:rhubarb", 1) -- crop definition local def = { + description = S("Rhubarb") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_rhubarb_1.png"}, paramtype = "light", diff --git a/crops/rice.lua b/crops/rice.lua index a00fa04..66c0c04 100644 --- a/crops/rice.lua +++ b/crops/rice.lua @@ -51,6 +51,7 @@ minetest.register_craft({ -- crop definition local def = { + description = S("Rice") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_rice_1.png"}, paramtype = "light", diff --git a/crops/soy.lua b/crops/soy.lua index 6fe5d2b..78e9390 100644 --- a/crops/soy.lua +++ b/crops/soy.lua @@ -20,6 +20,7 @@ minetest.register_alias("farming:soy_beans", "farming:soy_pod") -- crop definition local def = { + description = S("Soy") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_soy_1.png"}, paramtype = "light", diff --git a/crops/spinach.lua b/crops/spinach.lua index 87a06e3..e84f976 100644 --- a/crops/spinach.lua +++ b/crops/spinach.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:spinach", 1) -- crop definition local def = { + description = S("Spinach") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_spinach_1.png"}, paramtype = "light", diff --git a/crops/strawberry.lua b/crops/strawberry.lua index ad8a2c2..9d49485 100644 --- a/crops/strawberry.lua +++ b/crops/strawberry.lua @@ -19,6 +19,7 @@ farming.add_eatable("ethereal:strawberry", 1) -- crop definition local def = { + description = S("Strawberry") .. S(" Crop"), drawtype = "plantlike", tiles = {"ethereal_strawberry_1.png"}, paramtype = "light", diff --git a/crops/sunflower.lua b/crops/sunflower.lua index 9e4f392..9738d5e 100644 --- a/crops/sunflower.lua +++ b/crops/sunflower.lua @@ -51,6 +51,7 @@ minetest.register_craft({ -- crop definition local def = { + description = S("Sunflower") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_sunflower_1.png"}, paramtype = "light", diff --git a/crops/tomato.lua b/crops/tomato.lua index 1e770dd..b97246c 100644 --- a/crops/tomato.lua +++ b/crops/tomato.lua @@ -24,6 +24,7 @@ farming.add_eatable("farming:tomato", 4) -- crop definition local def = { + description = S("Tomato") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_tomato_1.png"}, paramtype = "light", diff --git a/crops/vanilla.lua b/crops/vanilla.lua index 96c6b03..307cd46 100644 --- a/crops/vanilla.lua +++ b/crops/vanilla.lua @@ -19,6 +19,7 @@ farming.add_eatable("farming:vanilla", 1) -- crop definition local def = { + description = S("Vanilla") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_vanilla_1.png"}, paramtype = "light", diff --git a/crops/wheat.lua b/crops/wheat.lua index 381ea0c..c00208b 100644 --- a/crops/wheat.lua +++ b/crops/wheat.lua @@ -41,6 +41,7 @@ minetest.register_craftitem("farming:wheat", { -- crop definition local def = { + description = S("Wheat") .. S(" Crop"), drawtype = "plantlike", tiles = {"farming_wheat_1.png"}, paramtype = "light", diff --git a/init.lua b/init.lua index 09720c9..e4fae44 100644 --- a/init.lua +++ b/init.lua @@ -12,7 +12,7 @@ local S = minetest.get_translator("farming") farming = { mod = "redo", - version = "20240906", + version = "20240907", path = minetest.get_modpath("farming"), select = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}}, select_final = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -2.5/16, 0.5}}, @@ -606,8 +606,10 @@ farming.register_plant = function(name, def) next_plant = mname .. ":" .. pname .. "_" .. (i + 1) end + local desc = pname:gsub("^%l", string.upper) + minetest.register_node(node_name, { - description = pname:gsub("^%l", string.upper) .. " Crop", + description = S(desc) .. S(" Crop"), drawtype = "plantlike", waving = 1, tiles = {mname .. "_" .. pname .. "_" .. i .. ".png"}, diff --git a/locale/farming.en.tr b/locale/farming.en.tr index 746a41e..a18bd89 100644 --- a/locale/farming.en.tr +++ b/locale/farming.en.tr @@ -1,4 +1,5 @@ # textdomain: farming + Crop= Artichoke= Asparagus= Barley Seed=