From f42d9a11f33b432bfc469eb4bbf02d39b2dd175c Mon Sep 17 00:00:00 2001 From: Albirew Date: Sun, 7 Jan 2024 22:42:21 +0100 Subject: [PATCH] added compatibility for WotLK (by KVLtv) --- SellFrame.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/SellFrame.lua b/SellFrame.lua index 7b9a79c..0d28eae 100644 --- a/SellFrame.lua +++ b/SellFrame.lua @@ -973,9 +973,16 @@ function AuctionLite:CreateSellFrame() SellPerItemButtonText:SetText(L["per item"]); SellPerStackButtonText:SetText(L["per stack"]); - SellShortAuctionButtonText:SetText(L["%dh"]:format(2)); - SellMediumAuctionButtonText:SetText(L["%dh"]:format(8)); - SellLongAuctionButtonText:SetText(L["%dh"]:format(24)); + local version, major, minor = strmatch(GetBuildInfo(), '([%d]*)%.([%d]*)%.([%d]*)') + if version >= "3" then + SellShortAuctionButtonText:SetText(L["%dh"]:format(12)); + SellMediumAuctionButtonText:SetText(L["%dh"]:format(24)); + SellLongAuctionButtonText:SetText(L["%dh"]:format(48)); + else + SellShortAuctionButtonText:SetText(L["%dh"]:format(2)); + SellMediumAuctionButtonText:SetText(L["%dh"]:format(8)); + SellLongAuctionButtonText:SetText(L["%dh"]:format(24)); + end -- Set button text and adjust arrows. SellItemNameButton:SetText(L["Competing Auctions"]);