feat: localization

This commit is contained in:
Vati
2026-04-09 01:46:07 +04:00
parent 5797e0f15f
commit c1ff6ee4be
14 changed files with 453 additions and 180 deletions
+4 -4
View File
@@ -299,7 +299,7 @@ local function FinalizeReplacement()
waitingForLocks = false
onLocksCleared = nil
BagReplacer.inProgress = false
addon:Print("Bag replaced successfully!")
addon:Print(Guda_L["Bag replaced successfully!"])
-- Invalidate bag scanner cache BEFORE update so it does a full rescan
-- (bag slot count changed, incremental update can't handle that)
@@ -479,7 +479,7 @@ function BagReplacer:Execute(targetBagID, invSlot)
-- Guard: already in progress
if self.inProgress then
addon:DebugSort("[BagReplacer] Blocked: replacement already in progress")
addon:Print("Cannot replace bag: another replacement is in progress.")
addon:Print(Guda_L["Cannot replace bag: another replacement is in progress."])
return
end
@@ -487,14 +487,14 @@ function BagReplacer:Execute(targetBagID, invSlot)
local SortEngine = addon.Modules.SortEngine
if SortEngine and SortEngine.sortingInProgress then
addon:DebugSort("[BagReplacer] Blocked: sorting in progress")
addon:Print("Cannot replace bag while sorting is in progress.")
addon:Print(Guda_L["Cannot replace bag while sorting is in progress."])
return
end
-- Guard: combat
if UnitAffectingCombat("player") then
addon:DebugSort("[BagReplacer] Blocked: in combat")
addon:Print("Cannot replace bag during combat.")
addon:Print(Guda_L["Cannot replace bag during combat."])
return
end
+3 -3
View File
@@ -1779,7 +1779,7 @@ function SortEngine:SortBankPass()
propertyCache = {}
if not addon.Modules.BankScanner:IsBankOpen() then
addon:Print("Bank must be open to sort!")
addon:Print(Guda_L["Bank must be open to sort!"])
return 0
end
@@ -1849,7 +1849,7 @@ end
function SortEngine:SortBank()
if not addon.Modules.BankScanner:IsBankOpen() then
addon:Print("Bank must be open to sort!")
addon:Print(Guda_L["Bank must be open to sort!"])
return 0
end
@@ -1935,7 +1935,7 @@ end
function SortEngine:ExecuteSort(sortFunction, analyzeFunction, updateFrame, sortType)
-- Check if sorting is already in progress
if self.sortingInProgress then
addon:Print("Sorting already in progress, please wait...")
addon:Print(Guda_L["Sorting already in progress, please wait..."])
return false, "sorting in progress"
end