From d6b281bcab7a4fc3304e395d07164b15264950f0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Apr 2019 13:05:36 +0200 Subject: [PATCH 1/4] Change translation system to MT 5.0.0 --- depends.txt | 1 - init.lua | 7 +------ locale/de.txt | 1 - locale/hbhunger.de.tr | 2 ++ locale/hbhunger.it.tr | 2 ++ locale/hbhunger.ms.tr | 2 ++ locale/hbhunger.pt.tr | 2 ++ locale/it.txt | 1 - locale/ms.txt | 1 - locale/pt.txt | 1 - locale/template.txt | 3 ++- 11 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 locale/de.txt create mode 100644 locale/hbhunger.de.tr create mode 100644 locale/hbhunger.it.tr create mode 100644 locale/hbhunger.ms.tr create mode 100644 locale/hbhunger.pt.tr delete mode 100644 locale/it.txt delete mode 100644 locale/ms.txt delete mode 100644 locale/pt.txt diff --git a/depends.txt b/depends.txt index 6bd271b..34410af 100644 --- a/depends.txt +++ b/depends.txt @@ -1,5 +1,4 @@ hudbars -intllib? default? flowers? animalmaterials? diff --git a/init.lua b/init.lua index cadaa89..10a4581 100644 --- a/init.lua +++ b/init.lua @@ -1,9 +1,4 @@ -local S -if (minetest.get_modpath("intllib")) then - S = intllib.Getter() -else - S = function ( s ) return s end -end +local S = minetest.get_translator("hbhunger") if minetest.settings:get_bool("enable_damage") then diff --git a/locale/de.txt b/locale/de.txt deleted file mode 100644 index 3a06d93..0000000 --- a/locale/de.txt +++ /dev/null @@ -1 +0,0 @@ -Satiation = Sättigung diff --git a/locale/hbhunger.de.tr b/locale/hbhunger.de.tr new file mode 100644 index 0000000..4223564 --- /dev/null +++ b/locale/hbhunger.de.tr @@ -0,0 +1,2 @@ +# textdomain:hbhunger +Satiation=Sättigung diff --git a/locale/hbhunger.it.tr b/locale/hbhunger.it.tr new file mode 100644 index 0000000..b99dc61 --- /dev/null +++ b/locale/hbhunger.it.tr @@ -0,0 +1,2 @@ +# textdomain:hbhunger +Satiation=Sazietà diff --git a/locale/hbhunger.ms.tr b/locale/hbhunger.ms.tr new file mode 100644 index 0000000..67f08f7 --- /dev/null +++ b/locale/hbhunger.ms.tr @@ -0,0 +1,2 @@ +# textdomain:hbhunger +Satiation=Kekenyangan diff --git a/locale/hbhunger.pt.tr b/locale/hbhunger.pt.tr new file mode 100644 index 0000000..82be594 --- /dev/null +++ b/locale/hbhunger.pt.tr @@ -0,0 +1,2 @@ +# textdomain:hbhunger +Satiation=Saciedade diff --git a/locale/it.txt b/locale/it.txt deleted file mode 100644 index 94dbc2e..0000000 --- a/locale/it.txt +++ /dev/null @@ -1 +0,0 @@ -Satiation = Sazietà diff --git a/locale/ms.txt b/locale/ms.txt deleted file mode 100644 index 5cee0d9..0000000 --- a/locale/ms.txt +++ /dev/null @@ -1 +0,0 @@ -Satiation = Kekenyangan diff --git a/locale/pt.txt b/locale/pt.txt deleted file mode 100644 index 44fe452..0000000 --- a/locale/pt.txt +++ /dev/null @@ -1 +0,0 @@ -Satiation = Saciedade diff --git a/locale/template.txt b/locale/template.txt index 37a578d..84ad832 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1 +1,2 @@ -Satiation +# textdomain:hbhunger +Satiation= From f293d3c7fe6e4c82229765623426f8b42243e169 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Apr 2019 13:06:56 +0200 Subject: [PATCH 2/4] Move metadata to mod.conf --- depends.txt | 31 ------------------------------- description.txt | 1 - mod.conf | 3 +++ 3 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 depends.txt delete mode 100644 description.txt diff --git a/depends.txt b/depends.txt deleted file mode 100644 index 34410af..0000000 --- a/depends.txt +++ /dev/null @@ -1,31 +0,0 @@ -hudbars -default? -flowers? -animalmaterials? -bucket? -bushes? -bushes_classic? -cooking? -creatures? -docfarming? -dwarves? -ethereal? -farming? -farming_plus? -ferns? -fishing? -fruit? -glooptest? -jkanimals? -jkfarming? -jkwine? -kpgmobs? -mobfcooking? -mobs? -moretrees? -mtfoods? -mush45? -mushroom? -seaplants? -pizza? -nssm? diff --git a/description.txt b/description.txt deleted file mode 100644 index 77e6159..0000000 --- a/description.txt +++ /dev/null @@ -1 +0,0 @@ -Adds a simple hunger meachanic with satiation, food poisoning and different healing. diff --git a/mod.conf b/mod.conf index dc67cd6..da6c465 100644 --- a/mod.conf +++ b/mod.conf @@ -1 +1,4 @@ name = hbhunger +description = Adds a simple hunger meachanic with satiation, food poisoning and different healing. +depends = hudbars +optional_depends = default, flowers, animalmaterials, bucket, bushes, bushes_classic, cooking, creatures, docfarming, dwarves, ethereal, farming, farming_plus, ferns, fishing, fruit, glooptest, jkanimals, jkfarming, jkwine, kpgmobs, mobfcooking, mobs, moretrees, mtfoods, mush45, mushroom, seaplants, pizza, nssm From da66d0a1af9e8b62de369d24148675d3992fbba5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Apr 2019 13:07:11 +0200 Subject: [PATCH 3/4] Remove old changelog --- old_changelog.txt | 54 ----------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 old_changelog.txt diff --git a/old_changelog.txt b/old_changelog.txt deleted file mode 100644 index 32db368..0000000 --- a/old_changelog.txt +++ /dev/null @@ -1,54 +0,0 @@ -OLD CHANGELOG -------------- - -0.1.0 ------ -Initial release - -0.2.0 ------ -- Change “saturation” to “satiation” -- Rename global table to “hbhunger” to avoid collisions -- General cleanup - -0.3.0 ------ -- Play simple eating sound when something is eaten - -0.3.1 ------ -- Add Ethereal orange -- Fix exhaus variable - -0.3.2 ------ -- Fix another crash - -0.4.0 ------ -- Generic eating functionality, items using the minetest.item_eat are automatically supported -- Change health bar and icon when poisoned -- Special support for red and brown mushroom from Minetest Game [flowers] -- Special support for [pizza] -- Special support for beans from Farming Redo [farming] -- Fix crash when poisoned player leaves server -- Changed license to LGPL v2.1 - -0.4.1 ------ -- Add foods from Not So Simple Mobs [nssm] - -0.5.0 ------ -- Fix custom sound not working -- Add Portuguese translation - -0.5.1 ------ -- Fix incompability problem with pipeworks mod - -0.5.2 ------ -- Fix mod not working with both intllib and mod security enabled -- Add missing screenshot -- Rewrite README and use Markdown format From 957decb6aca3e9d87216cc9bf919ffd8b871ab75 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Apr 2019 13:09:58 +0200 Subject: [PATCH 4/4] Version 1.0.0 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d9de6b..d729969 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Hunger with HUD bar [`hbhunger`] -* Version: 0.7.1 +* Version: 1.0.0 ## Using the mod This mod adds a mechanic for hunger. This mod depends on the HUD bars mod [`hudbars`], version 1.4.1 or any later version -starting with “1.”. +starting with “1.” or “2.”. ## About hunger This mod adds a hunger mechanic to the game. Players get a new attribute called “satiation”: