From 43e73e2856ea1e10a7c1f8edf285f7e6678f813a Mon Sep 17 00:00:00 2001 From: PrairieAstronomer Date: Thu, 9 Jun 2022 09:47:24 -0600 Subject: [PATCH] Updated Translate Template and fixed the fish bucket definitions to work with the translation --- mods/ITEMS/mcl_fishing/init.lua | 8 ++++---- mods/ITEMS/mcl_fishing/locale/template.txt | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_fishing/init.lua b/mods/ITEMS/mcl_fishing/init.lua index 39919dbd3..7a5c7d701 100644 --- a/mods/ITEMS/mcl_fishing/init.lua +++ b/mods/ITEMS/mcl_fishing/init.lua @@ -525,10 +525,10 @@ for _, fish in ipairs(fish_names) do end, source_take = {"extra_mobs:" .. fish}, inventory_image = fish .. "_bucket.png", - name = S("Bucket of " .. fish), - longdesc = S("This bucket is filled with water and " .. fish .. "."), - usagehelp = S("Place it to empty the bucket and place a " .. fish .. ". Obtain by right clicking on a " .. fish .. " fish with a bucket of water."), - tt_help = S("Places a water source and " .. fish .. "."), + name = S("Bucket of @1", S(fish)), + longdesc = S("This bucket is filled with water and @1.", S(fish)), + usagehelp = S("Place it to empty the bucket and place a @1. Obtain by right clicking on a @2 fish with a bucket of water.", S(fish), S(fish)), + tt_help = S("Places a water source and a @1 fish.", S(fish)), extra_check = function(pos, placer) return true, true end, diff --git a/mods/ITEMS/mcl_fishing/locale/template.txt b/mods/ITEMS/mcl_fishing/locale/template.txt index a1544666b..200f5e145 100644 --- a/mods/ITEMS/mcl_fishing/locale/template.txt +++ b/mods/ITEMS/mcl_fishing/locale/template.txt @@ -16,3 +16,9 @@ Pufferfish= Pufferfish are a common species of fish and can be obtained by fishing. They can technically be eaten, but they are very bad for humans. Eating a pufferfish only restores 1 hunger point and will poison you very badly (which drains your health non-fatally) and causes serious food poisoning (which increases your hunger).= Catches fish in water= Very poisonous= +cod= +salmon= +Bucket of @1= +This bucket is filled with water and @1.= +Place it to empty the bucket and place a @1. Obtain by right clicking on a @2 fish with a bucket of water.= +Places a water source and a @1 fish.=