Mercurial > wow > reagentmaker
diff ReagentMaker.lua @ 65:60871b43531d
Add localization
author | contrebasse |
---|---|
date | Fri, 13 May 2011 02:17:52 +0200 |
parents | 512660b07eda |
children | 32ec6417874a |
line wrap: on
line diff
--- a/ReagentMaker.lua Wed May 11 19:03:02 2011 +0200 +++ b/ReagentMaker.lua Fri May 13 02:17:52 2011 +0200 @@ -129,7 +129,7 @@ if #(A.data[reagentID]) == 1 and not A.data[reagentID].spell then local numMakable, reagentIndex = A.numMakable(reagentID) if not numMakable then - A.Error("The recipe to make the reagent seems to be hidden, it is not makable.") + A.Error(L["The recipe to make the reagent seems to be hidden, it is not makable."]) return end if numMakable>0 then @@ -142,7 +142,7 @@ if (not A.data[reagentID].manyReagents) and A.data[A.data[reagentID][1][1]] then A.externalCraftWindow(A.data[reagentID][1][1],reagentID) else - A.Error("You do not have enough reagents to craft ["..(GetItemInfo(reagentID) or "item #"..reagentID).."]") + A.Error(L["You do not have enough reagents to craft [%s]"]:format(GetItemInfo(reagentID) or "item #"..reagentID)) end return else @@ -224,7 +224,7 @@ A.tooltipRecipe:SetPoint("BOTTOMLEFT",GameTooltip,"BOTTOMRIGHT") else -- Shouldn't happend, but just in case... - A.Error("Recipe link not found for "..reagentID) + A.Error(L["Recipe link not found for %s"]:format(reagentID)) end end