Skip to content

Commit

Permalink
Add localization
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed Oct 1, 2024
1 parent 0b2e175 commit be2fa18
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion SkilletNewsData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ Skillet.NewsData = {
data = {
{ header = "EasyMenu", body = "Replace EasyMenu calls" },
{ header = "Sorting", body = "Add more error checks" },
{ header = "Plugins", body = "Auctionator sort error checks" },
{ header = "Plugins", body = "Auctionator error checks" },
{ header = "Tooltips", body = "Use GameTooltip instead of SkilletTradeskillTooltip" },
{ header = "Localization", body = "Add localization to some error strings" },
},
},
},
Expand Down
9 changes: 5 additions & 4 deletions SkilletQueue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ function Skillet:ProcessQueue(altMode)
required = required + 1
end -- for
if required == 0 then
DA.MARK3("Required reagent(s) missing")
DA.MARK3(L["Required reagents missing"])
end
end
if command.optionalReagents then
Expand Down Expand Up @@ -737,15 +737,15 @@ function Skillet:ProcessQueue(altMode)
-- if self.recipeTransaction:HasMetQuantityRequirements() then
C_TradeSkillUI.CraftRecipe(command.recipeID, command.count, reagentInfoTbl, recipeLevel)
-- else
-- DA.MARK3("Insufficient (Required) Materials available")
-- DA.MARK3(L["Insufficient materials available"])
-- end
end
end
else
--
-- C_TradeSkillUI.GetCraftableCount failed
--
DA.MARK3("Insufficient Materials available, count= "..tostring(command.count)..", numAvailable= "..tostring(numAvailable))
DA.MARK3(L["Insufficient materials available"].." count= "..tostring(command.count)..", numAvailable= "..tostring(numAvailable))
self.queuecasting = false
end
elseif command.recipeType == Enum.TradeskillRecipeType.Enchant then
Expand Down Expand Up @@ -1043,7 +1043,8 @@ end
function Skillet:StopCast(spellID)
if self.enabledState then
name = C_Spell.GetSpellName(spellID)
DA.MARK3("StopCast("..tostring(spellID).."), "..tostring(name))
--DA.DEBUG(0,"StopCast("..tostring(spellID).."), "..tostring(name))
DA.MARK3(0,L["Crafting error"]..tostring(spellID).."), "..tostring(name))
self.queuecasting = false
self.processingSpell = nil
self.processingSpellID = nil
Expand Down
2 changes: 1 addition & 1 deletion UI/MainFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,7 @@ end
--
function Skillet:StartQueue_OnClick(button, mouse)
if self.queuecasting then
DA.MARK3("Cancel incomplete processing")
DA.MARK3(L["Cancel incomplete processing"])
self:CancelCast()
self.queuecasting = false
else
Expand Down

0 comments on commit be2fa18

Please sign in to comment.