diff --git a/locales/deDE.lua b/locales/deDE.lua index ab1efc0a..50ba15cb 100644 --- a/locales/deDE.lua +++ b/locales/deDE.lua @@ -68,6 +68,12 @@ L["talking"] = "Spricht" -- L["Me"] = "" ---}}} +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts L["None"] = "Keine" L["Solo"] = "Allein" diff --git a/locales/enUS.lua b/locales/enUS.lua index 7c3132aa..0f965bc6 100644 --- a/locales/enUS.lua +++ b/locales/enUS.lua @@ -72,6 +72,12 @@ L["Me"] = true L["combat"] = true ---}}} +--{{{ Summon +L["Pending"] = true +L["Accepted"] = true +L["Declined"] = true +---}}} + --Layouts L["None"] = true L["Solo"] = true diff --git a/locales/esES.lua b/locales/esES.lua index 1f1c72c3..6f6146e7 100644 --- a/locales/esES.lua +++ b/locales/esES.lua @@ -72,6 +72,12 @@ L["Me"] = "Yo" L["combat"] = "Combate" --}} +--{{{ Summon +L["Pending"] = "Pendiente" +L["Accepted"] = "Aceptado" +L["Declined"] = "Rechazado" +---}}} + --Layouts L["None"] = "Ninguno" L["Solo"] = "Solo" diff --git a/locales/esMX.lua b/locales/esMX.lua index df6cf554..97b27ff1 100644 --- a/locales/esMX.lua +++ b/locales/esMX.lua @@ -68,6 +68,12 @@ L["Revived"] = "Revivido" -- L["Me"] = "" ---}}} +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts L["None"] = "Ninguno" L["Solo"] = "Solo" diff --git a/locales/frFR.lua b/locales/frFR.lua index a50ed3ca..89b2b981 100644 --- a/locales/frFR.lua +++ b/locales/frFR.lua @@ -68,6 +68,12 @@ L["talking"] = "Parle" -- L["Me"] = "" ---}}} +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts L["None"] = "Aucun" L["Solo"] = "Seul" diff --git a/locales/itIT.lua b/locales/itIT.lua index 7e627a22..53e8e546 100644 --- a/locales/itIT.lua +++ b/locales/itIT.lua @@ -39,6 +39,12 @@ L["vehicle"] = "veicolo" L["X"] = "X" L["Me"] = "Io" +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts L["None"] = "Nessuno" L["Solo"] = "Solo" diff --git a/locales/koKR.lua b/locales/koKR.lua index fe0075ae..fad39fe9 100644 --- a/locales/koKR.lua +++ b/locales/koKR.lua @@ -68,6 +68,12 @@ L["Revived"] = "부활" -- L["Me"] = "" ---}}} +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts L["None"] = "없음" L["Solo"] = "솔로잉" diff --git a/locales/ptBR.lua b/locales/ptBR.lua index 29a04883..56d75f47 100644 --- a/locales/ptBR.lua +++ b/locales/ptBR.lua @@ -68,6 +68,12 @@ L["Revived"] = "Reviver" -- L["Me"] = "" ---}}} +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts L["None"] = "Nada" L["Solo"] = "Sozinho" diff --git a/locales/ruRU.lua b/locales/ruRU.lua index 75db966e..b58bdacc 100644 --- a/locales/ruRU.lua +++ b/locales/ruRU.lua @@ -68,6 +68,12 @@ L["talking"] = "Говорит" -- L["Me"] = "" ---}}} +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts -- L["None"] = "" L["Solo"] = "Соло" diff --git a/locales/zhCN.lua b/locales/zhCN.lua index 4728f711..46fbc11c 100644 --- a/locales/zhCN.lua +++ b/locales/zhCN.lua @@ -68,6 +68,12 @@ L["Revived"] = "已复活" -- L["Me"] = "" ---}}} +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts L["None"] = "无" L["Solo"] = "单人" diff --git a/locales/zhTW.lua b/locales/zhTW.lua index b9c0f40f..b27b4687 100644 --- a/locales/zhTW.lua +++ b/locales/zhTW.lua @@ -68,6 +68,12 @@ L["Revived"] = "已復活" -- L["Me"] = "" ---}}} +--{{{ Summon +-- L["Pending"] = "" +-- L["Accepted"] = "" +-- L["Declined"] = "" +---}}} + --Layouts L["None"] = "無" L["Solo"] = "單人" diff --git a/modules/StatusSummon.lua b/modules/StatusSummon.lua index 1017df67..d3a07d3c 100644 --- a/modules/StatusSummon.lua +++ b/modules/StatusSummon.lua @@ -1,10 +1,18 @@ if Grid2.isClassic then return end +local L = LibStub:GetLibrary("AceLocale-3.0"):GetLocale("Grid2") + local status = Grid2.statusPrototype:new("summon") local HasIncomingSummon = C_IncomingSummon.HasIncomingSummon local IncomingSummonStatus = C_IncomingSummon.IncomingSummonStatus +local texts = { + [1] = L["Pending"], + [2] = L["Accepted"], + [3] = L["Declined"], +} + function status:INCOMING_SUMMON_CHANGED(_, unit) self:UpdateIndicators(unit) end @@ -48,8 +56,12 @@ function status:GetTexCoord(unit) end end +function status:GetText(unit) + return texts[ IncomingSummonStatus(unit) ] or "" +end + Grid2.setupFunc["summon"] = function(baseKey, dbx) - Grid2:RegisterStatus(status, {"color", "icon"}, baseKey, dbx) + Grid2:RegisterStatus(status, {"text", "color", "icon"}, baseKey, dbx) return status end