From ec1fecdf360118dce9d7a14a56534e31c41da391 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann <10477760+JadedCtrl@users.noreply.github.com> Date: Thu, 4 Jan 2024 19:13:08 -0600 Subject: [PATCH] Make X Bows tab-name translatable --- api.lua | 6 +++--- locale/template.txt | 1 + locale/x_bows.sk.tr | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api.lua b/api.lua index 8238368..7b019a6 100644 --- a/api.lua +++ b/api.lua @@ -2243,7 +2243,7 @@ end ---@param self XBowsQuiver function XBowsQuiver.sfinv_register_page(self) sfinv.register_page('x_bows:quiver_page', { - title = 'X Bows', + title = S('X Bows'), get = function(this, player, context) local formspec = { ---arrow @@ -2300,7 +2300,7 @@ end ---Register i3 page function XBowsQuiver.i3_register_page(self) i3.new_tab('x_bows_quiver_page', { - description = 'X Bows', + description = S('X Bows'), slots = true, formspec = function(player, data, fs) local formspec = { @@ -2410,7 +2410,7 @@ function XBowsQuiver.ui_register_page(self) unified_inventory.register_button('x_bows:quiver_page', { type = 'image', image = "x_bows_bow_wood_charged.png", - tooltip = 'X Bows', + tooltip = S('X Bows'), }) end diff --git a/locale/template.txt b/locale/template.txt index 109876a..df119e7 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -8,6 +8,7 @@ Charge Time= Faster Arrows= Arrow Damage= No Ammo= +X Bows= Arrows= Quiver= Empty= diff --git a/locale/x_bows.sk.tr b/locale/x_bows.sk.tr index be7c233..b91302a 100644 --- a/locale/x_bows.sk.tr +++ b/locale/x_bows.sk.tr @@ -8,6 +8,7 @@ Charge Time=Doba nabíjania Faster Arrows=Rýchlejšie šípy Arrow Damage=Poškodenie šípom No Ammo=Žiadne strelivo +X Bows= Arrows=Šípy Quiver=Púzdro Empty=Prázdne