From d6b281bcab7a4fc3304e395d07164b15264950f0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Apr 2019 13:05:36 +0200 Subject: [PATCH] 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=