Fixed localisation issue for learnt recipes.
Wobin [04-20-14 - 01:32]
Fixed localisation issue for learnt recipes.
diff --git a/SousChef.lua b/SousChef.lua
index 65ef3cf..6fee61f 100644
--- a/SousChef.lua
+++ b/SousChef.lua
@@ -159,7 +159,7 @@ local function AddTradingSlot(row, result)
rankIcon:SetHidden(true)
- if EndsWith(result.name, GetString(SI_ITEMTYPE29)) then
+ if EndsWith(result.name, GetString(SI_ITEMTYPE29):lower()) then
local match = Cookbook[result.name:lower():gsub(" ","")]
local gmatch = settings.Cookbook[result.name:lower():gsub(" ","")]
if (match and settings.checkKnown == "known") or
@@ -192,7 +192,7 @@ local function ParseRecipes()
for recipeIndex = 1, count do
if GetRecipeInfo(listIndex, recipeIndex) then
-- Store the recipes known
- local recipeName = (GetRecipeResultItemInfo(listIndex, recipeIndex)):gsub(" ",""):lower() .. "recipe"
+ local recipeName = (GetRecipeResultItemInfo(listIndex, recipeIndex).. GetString(SI_ITEMTYPE29)):gsub(" ",""):lower()
Cookbook[recipeName] = true
if not settings.Cookbook[recipeName] then
settings.Cookbook[recipeName] = {}