From 7a0c456638522c703711e32f0a46900d7e4c4685 Mon Sep 17 00:00:00 2001 From: randomei Date: Wed, 22 Nov 2023 09:29:44 +0300 Subject: [PATCH] Fix broken translations (#124) * Fix broken translation --- armor_admin/init.lua | 2 +- armor_bronze/init.lua | 5 ++--- armor_cactus/init.lua | 4 ++-- armor_crystal/init.lua | 5 ++--- armor_diamond/init.lua | 4 ++-- armor_gold/init.lua | 4 ++-- armor_mithril/init.lua | 4 ++-- armor_nether/init.lua | 4 ++-- armor_steel/init.lua | 4 ++-- armor_wood/init.lua | 4 ++-- 10 files changed, 19 insertions(+), 21 deletions(-) diff --git a/armor_admin/init.lua b/armor_admin/init.lua index ec56879..40a6e1d 100644 --- a/armor_admin/init.lua +++ b/armor_admin/init.lua @@ -5,7 +5,7 @@ -- support for i18n -local S = armor.get_translator +local S = minetest.get_translator(minetest.get_current_modname()) --- Admin Helmet -- diff --git a/armor_bronze/init.lua b/armor_bronze/init.lua index d23dffb..ebdc4c2 100644 --- a/armor_bronze/init.lua +++ b/armor_bronze/init.lua @@ -5,8 +5,7 @@ -- support for i18n -local S = armor.get_translator - +local S = minetest.get_translator(minetest.get_current_modname()) --- Bronze -- -- Requires setting `armor_material_bronze`. @@ -178,4 +177,4 @@ if armor.materials.bronze then {m, "", m}, }, }) -end \ No newline at end of file +end diff --git a/armor_cactus/init.lua b/armor_cactus/init.lua index 9944139..aaece5c 100644 --- a/armor_cactus/init.lua +++ b/armor_cactus/init.lua @@ -5,7 +5,7 @@ -- support for i18n -local S = armor.get_translator +local S = minetest.get_translator(minetest.get_current_modname()) --- Cactus -- @@ -180,4 +180,4 @@ if armor.materials.cactus then {m, "", m}, }, }) -end \ No newline at end of file +end diff --git a/armor_crystal/init.lua b/armor_crystal/init.lua index d845fc2..aa9a76a 100644 --- a/armor_crystal/init.lua +++ b/armor_crystal/init.lua @@ -5,8 +5,7 @@ -- support for i18n -local S = armor.get_translator - +local S = minetest.get_translator(minetest.get_current_modname()) --- Crystal -- @@ -167,4 +166,4 @@ if armor.materials.crystal then {m, "", m}, }, }) -end \ No newline at end of file +end diff --git a/armor_diamond/init.lua b/armor_diamond/init.lua index 8fc2d0c..c92cf0e 100644 --- a/armor_diamond/init.lua +++ b/armor_diamond/init.lua @@ -5,7 +5,7 @@ -- support for i18n -local S = armor.get_translator +local S = minetest.get_translator(minetest.get_current_modname()) --- Diamond -- @@ -163,4 +163,4 @@ if armor.materials.diamond then {m, "", m}, }, }) -end \ No newline at end of file +end diff --git a/armor_gold/init.lua b/armor_gold/init.lua index 287f307..a8bb01f 100644 --- a/armor_gold/init.lua +++ b/armor_gold/init.lua @@ -5,7 +5,7 @@ -- support for i18n -local S = armor.get_translator +local S = minetest.get_translator(minetest.get_current_modname()) --- Gold @@ -180,4 +180,4 @@ if armor.materials.gold then {m, "", m}, }, }) -end \ No newline at end of file +end diff --git a/armor_mithril/init.lua b/armor_mithril/init.lua index 8e134f1..cdec0db 100644 --- a/armor_mithril/init.lua +++ b/armor_mithril/init.lua @@ -5,7 +5,7 @@ -- support for i18n -local S = armor.get_translator +local S = minetest.get_translator(minetest.get_current_modname()) --- Mithril -- @@ -159,4 +159,4 @@ if armor.materials.mithril then {m, "", m}, }, }) -end \ No newline at end of file +end diff --git a/armor_nether/init.lua b/armor_nether/init.lua index f761a21..3e20ee3 100644 --- a/armor_nether/init.lua +++ b/armor_nether/init.lua @@ -5,7 +5,7 @@ -- support for i18n -local S = armor.get_translator +local S = minetest.get_translator(minetest.get_current_modname()) --- Nether @@ -165,4 +165,4 @@ if armor.materials.nether then }, }) -end \ No newline at end of file +end diff --git a/armor_steel/init.lua b/armor_steel/init.lua index a104e71..d8cbc0b 100644 --- a/armor_steel/init.lua +++ b/armor_steel/init.lua @@ -5,7 +5,7 @@ -- support for i18n -local S = armor.get_translator +local S = minetest.get_translator(minetest.get_current_modname()) --- Steel -- @@ -178,4 +178,4 @@ if armor.materials.steel then {m, "", m}, }, }) -end \ No newline at end of file +end diff --git a/armor_wood/init.lua b/armor_wood/init.lua index 0496e77..f9b6b82 100644 --- a/armor_wood/init.lua +++ b/armor_wood/init.lua @@ -5,7 +5,7 @@ -- support for i18n -local S = armor.get_translator +local S = minetest.get_translator(minetest.get_current_modname()) --- Wood -- @@ -183,4 +183,4 @@ if armor.materials.wood then {m, "", m}, }, }) -end \ No newline at end of file +end