diff --git a/init.lua b/init.lua index 5816b63..6e52a3c 100644 --- a/init.lua +++ b/init.lua @@ -466,8 +466,15 @@ local function get_tooltip(item, info) if info.replace then local def = reg_items[info.replace] - tooltip = add(S("Replaced by @1 on crafting", - clrz("yellow", get_desc(def, info.replace)))) + local desc = clrz("yellow", get_desc(def, info.replace)) + + if info.cooktime then + tooltip = add(S("Replaced by @1 on smelting", desc)) + elseif info.burntime then + tooltip = add(S("Replaced by @1 on burning", desc)) + else + tooltip = add(S("Replaced by @1 on crafting", desc)) + end end return fmt("tooltip[%s;%s]", item, ESC(tooltip)) diff --git a/locale/craftguide.fr.tr b/locale/craftguide.fr.tr index 97357cc..e12308f 100644 --- a/locale/craftguide.fr.tr +++ b/locale/craftguide.fr.tr @@ -6,6 +6,8 @@ Usage @1 of @2=Usage @1 de @2 Recipe @1 of @2=Recette @1 de @2 Burning time: @1=Temps de combustion : @1 Cooking time: @1=Temps de cuisson : @1 +Replaced by @1 on smelting=Remplacé par @1 lors de la cuisson +Replaced by @1 on burning=Remplacé par @1 lors de la combustion Replaced by @1 on crafting=Remplacé par @1 lors de la fabrication This tool cannot be repaired=Cet outil ne peut être réparé Any item belonging to the group(s): @1=Tout item appartenant au(x) groupe(s) : @1 diff --git a/locale/template b/locale/template index 71f41be..bab996a 100644 --- a/locale/template +++ b/locale/template @@ -7,6 +7,8 @@ Usage @1 of @2= Recipe @1 of @2= Burning time: @1= Cooking time: @1= +Replaced by @1 on smelting= +Replaced by @1 on burning= Replaced by @1 on crafting= This tool cannot be repaired= Any item belonging to the group(s): @1=