From 752553571507cd7f04637eb819c5e8a3b3c6ff0d Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 27 Aug 2023 07:59:39 +0100 Subject: [PATCH] update translations (thx Niklp) --- init.lua | 24 +++++++++--------------- locale/template.txt | 24 ++++++++++++------------ mod.conf | 3 ++- 3 files changed, 23 insertions(+), 28 deletions(-) diff --git a/init.lua b/init.lua index 3356f79..10f7fe4 100644 --- a/init.lua +++ b/init.lua @@ -3,14 +3,8 @@ -- License: MIT --- Intllib support -local S -if minetest.get_translator then - S = minetest.get_translator("bees") -else - S = function(s) return s end -end - +-- Translation support +local S = minetest.get_translator("bees") -- -- FUNCTIONS @@ -812,19 +806,19 @@ minetest.register_abm({ -- minetest.register_craftitem("bees:frame_empty", { - description = S("Empty hive frame"), + description = S("Empty Hive Frame"), inventory_image = "bees_frame_empty.png", stack_max = 24 }) minetest.register_craftitem("bees:frame_full", { - description = S("Filled hive frame"), + description = S("Filled Hive Frame"), inventory_image = "bees_frame_full.png", stack_max = 12 }) minetest.register_craftitem("bees:bottle_honey", { - description = S("Honey bottle"), + description = S("Honey Bottle"), inventory_image = "bees_bottle_honey.png", stack_max = 12, on_use = minetest.item_eat(3, "vessels:glass_bottle"), @@ -832,13 +826,13 @@ minetest.register_craftitem("bees:bottle_honey", { }) minetest.register_craftitem("bees:wax", { - description = S("Bees wax"), + description = S("Bees Wax"), inventory_image = "bees_wax.png", stack_max = 48 }) minetest.register_craftitem("bees:honey_comb", { - description = S("honey comb"), + description = S("Honey Comb"), inventory_image = "bees_comb.png", on_use = minetest.item_eat(2), stack_max = 8 @@ -916,7 +910,7 @@ end -- minetest.register_tool("bees:smoker", { - description = S("smoker"), + description = S("Smoker"), inventory_image = "bees_smoker.png", tool_capabilities = { full_punch_interval = 3.0, @@ -965,7 +959,7 @@ minetest.register_tool("bees:smoker", { }) minetest.register_tool("bees:grafting_tool", { - description = S("Grafting tool"), + description = S("Grafting Tool"), inventory_image = "bees_grafting_tool.png", tool_capabilities = { full_punch_interval = 3.0, diff --git a/locale/template.txt b/locale/template.txt index bbe3a90..07f1988 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,21 +1,21 @@ -# Template - -Bees= +# textdomain: bees Honey Extractor= +Bees= Wild Bee Hive= -Artificial Bee Hive= -Industrial Bee Hive= Colony died, not enough flowers in area!= +Artificial Bee Hive= Requires Queen bee to function= -Progress= +progress:= Does not have empty frame(s)= -Queen inserted, now for empty frames= +Queen inserted, now for the empty frames= Bees are aclimating= -Empty hive frame= -Filled hive frame= +Empty Hive Frame= +Filled Hive Frame= Honey Bottle= -Bees wax= -Honey comb= +Bees Wax= +Honey Comb= Queen Bee= Smoker= -Grafting tool= +Grafting Tool= +Industrial Bee Hive= +Bees! Bees for all!= diff --git a/mod.conf b/mod.conf index d82e170..ad873bd 100644 --- a/mod.conf +++ b/mod.conf @@ -1,4 +1,5 @@ name = bees +description = Adds bees and hives to Minetest. depends = default optional_depends = lucky_block -description = Adds bees and hives to Minetest. +min_minetest_version = 5.0