Some hotfixes (missing comma and misnamed local).
F16Gaming [08-08-12 - 18:32]
Some hotfixes (missing comma and misnamed local).
diff --git a/SummonManager.lua b/SummonManager.lua
index ea7c972..99f32a1 100644
--- a/SummonManager.lua
+++ b/SummonManager.lua
@@ -39,7 +39,7 @@ local L = C.LocaleManager
local SM = C.SummonManager
local CM
-local MAX_TIME = 110 -- 1 minute 50 seconds, summons expire after 2 minutes (usually)
+local MAX_DELAY = 110 -- 1 minute 50 seconds, summons expire after 2 minutes (usually)
local LastSummoner
@@ -165,7 +165,7 @@ function SM:GetDelay()
end
return ("%d:%s"):format(minutes, seconds)
end
- return ("%d %s"):format(total, L("SECONDS"))
+ return ("%d %s"):format(total, L("SECONDS"):lower())
end
function SM:GetRawDelay()
@@ -188,7 +188,7 @@ function SM:SetDelay(amount)
end
return "SM_SETDELAY_SUCCESS", {("%d:%s"):format(minutes, seconds)}
else
- return "SM_SETDELAY_SUCCESS", {("%d %s"):format(amount, L("SECONDS"))}
+ return "SM_SETDELAY_SUCCESS", {("%d %s"):format(amount, L("SECONDS"):lower())}
end
end
return "SM_SETDELAY_INSTANT"
diff --git a/locales/enUS.lua b/locales/enUS.lua
index 2537e7a..4320683 100644
--- a/locales/enUS.lua
+++ b/locales/enUS.lua
@@ -124,7 +124,7 @@ local L = {
CM_SET_SM_ISENABLED = "SummonManager is enabled.",
CM_SET_SM_ISDISABLED = "SummonManager is disabled.",
CM_SET_SM_DELAY_CURRENT = "The current delay for summon announcements is %s.",
- CM_SET_SM_DELAY_USAGE = "Usage: set sm delay <delay>"
+ CM_SET_SM_DELAY_USAGE = "Usage: set sm delay <delay>",
CM_SET_SM_USAGE = "Usage: set sm [enable|disable|toggle|delay]",
CM_LOCALE_HELP = "Change locale settings.",
diff --git a/locales/svSE.lua b/locales/svSE.lua
index 240b73a..ede6e08 100644
--- a/locales/svSE.lua
+++ b/locales/svSE.lua
@@ -124,7 +124,7 @@ local L = {
CM_SET_SM_ISENABLED = "SummonManager is enabled.",
CM_SET_SM_ISDISABLED = "SummonManager is disabled.",
CM_SET_SM_DELAY_CURRENT = "The current delay for summon announcements is %s.",
- CM_SET_SM_DELAY_USAGE = "Usage: set sm delay <delay>"
+ CM_SET_SM_DELAY_USAGE = "Usage: set sm delay <delay>",
CM_SET_SM_USAGE = "Användning: set sm [enable|disable|toggle|delay]",
CM_LOCALE_HELP = "Change locale settings.",