-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocales.lua
More file actions
executable file
·193 lines (186 loc) · 8.65 KB
/
Copy pathlocales.lua
File metadata and controls
executable file
·193 lines (186 loc) · 8.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
local _, ns = ...
local L = {}
ns.L = L
setmetatable(L, { __index = function(t, k)
local v = tostring(k)
t[k] = v
return v
end })
-- Global
L.Enabled = _G.VIDEO_OPTIONS_ENABLED
L.Disabled = _G.VIDEO_OPTIONS_DISABLED
L.WarMode = _G.PVP_LABEL_WAR_MODE
L.TolBarad = _G.DUNGEON_FLOOR_TOLBARADWARLOCKSCENARIO0
L.Alliance = _G.FACTION_ALLIANCE
L.Horde = _G.FACTION_HORDE
L.WarbandWide = _G.ITEM_UPGRADE_DISCOUNT_TOOLTIP_ACCOUNT_WIDE
L.Unknown = _G.QUEUED_STATUS_UNKNOWN
-- English
L.Version = "Currently running version %s." -- ns.version
L.Install = "Thanks for installing version |cff%1$s%2$s|r!" -- ns.color, ns.version
L.UpdateFound = "Version %s is now available for download. Please update!" -- sentVersion
L.Help = "This Addon sets alerts for future battles when you're in " .. L.TolBarad .. " and tracks some statistics.|nThere are also some slash commands available:|n/tbw options - Open options window|n/tbw share - Share your timers with group members|n/tbw request - Request timers from group members|n/tbw wins - See your win record across all tracked battles"
L.WMOn = "WM On"
L.WMOff = "WM Off"
L.AlertDetail = "(Control: %s, " .. L.WarMode .. ": %s)"
L.AlertAnnouncePastDuration = "started %s ago."
L.AlertAnnouncePastTime = "started at %s."
L.AlertAnnounceFutureDuration = "starts in %s."
L.AlertAnnounceFutureTime = "starts at %s."
L.AlertPast = "started |cff%s%s|r ago at %s."
L.AlertNow = "has started (at %s)!"
L.AlertFuture = "starts in |cff%s%s|r at %s."
L.AlertPastUnknown = "started and may still be ongoing!"
L.AlertToggleWarmode = "You will have to set " .. L.WarMode .. " to %s to participate!"
L.TimerAlert = L.TolBarad .. " " .. L.AlertDetail
L.TimerRaidWarning = "The Battle for " .. L.TolBarad .. " " .. L.AlertDetail
L.WinRecord = "Win Record"
L.WarningNoInfo = "Unfortunately, " .. L.TolBarad .. " information is unavailable here! You'll have to go to " .. L.TolBarad .. " or ask for a group member to share their data with you."
L.WarningNoInfoPeninsula = "Unfortunately, " .. L.TolBarad .. " information is unavailable on the Peninsula! You'll have to go into " .. L.TolBarad .. " or ask for a group member to share their data with you."
L.WarningNoData = "Your " .. L.TolBarad .. " data doesn't contain any upcoming alerts that you can share."
L.WarningShareDisabled = "You must enable sharing in Options in order to share your " .. L.TolBarad .. " data with group members."
L.WarningRequestUnable = "You must either be in a group or specify a channel (e.g. party, raid, guild) in order to request " .. L.TolBarad .. " data."
L.WarningFastAnnounce = "You must wait %s seconds before announcing your " .. L.TolBarad .. " data again." -- integer
L.WarningFastShare = "You must wait %s seconds before sharing your " .. L.TolBarad .. " data again." -- integer
L.WarningFastRequest = "You must wait %s seconds before requesting " .. L.TolBarad .. " data again." -- integer
L.ReceivedRequest = "Received request from %s in %s"
L.SharedStart = "Send start times %s"
L.DebugEnabled = "Debugging toggle enabled in Addon options. Reload your UI to see it."
L.OpenSettings = "Open Settings"
L.AddonCompartmentTooltip1 = "|cff" .. ns.color .. "Left-Click:|r " .. L.OpenSettings
L.LabelShareGroup = "Share Timers in Group"
L.AddonCompartmentTooltip2 = "|cff" .. ns.color .. "Right-Click:|r " .. L.LabelShareGroup
L.LabelShareWhisper = "Share Timers in Whisper"
L.AddonCompartmentTooltip3 = "|cff" .. ns.color .. "Shift-Click:|r " .. L.LabelShareWhisper
L.LabelAnnounceGroup = "Announce Timers in Group"
L.AddonCompartmentTooltip4 = "|cff" .. ns.color .. "Alt-Click:|r " .. L.LabelAnnounceGroup
L.LabelAnnounceWhisper = "Announce Timers in Whisper"
L.AddonCompartmentTooltip5 = "|cff" .. ns.color .. "Ctrl-Click:|r " .. L.LabelAnnounceWhisper
L.OptionsEnableTooltip = "Enables alerts for battles when Warmode is %s." -- string
L.OptionsWhenTooltip = "Sets up an alert %s the next battle." -- string
L.OptionsHowTooltip = "When important alerts go off, they will be accompanied by a %s."
L.Settings = {
[1] = {
title = "When do you want to be alerted?",
options = {
[1] = {
key = "alertStart",
name = "Start of Battle",
tooltip = L.OptionsWhenTooltip:format("for the start of"),
},
[2] = {
key = "alert1Minute",
name = "1 minute before",
tooltip = L.OptionsWhenTooltip:format("1 minute before"),
},
[3] = {
key = "alert2Minutes",
name = "2 minutes before",
tooltip = L.OptionsWhenTooltip:format("2 minutes before"),
},
[4] = {
key = "alert5Minutes",
name = "5 minutes before",
tooltip = L.OptionsWhenTooltip:format("5 minutes before"),
},
[5] = {
key = "alert10Minutes",
name = "10 minutes before",
tooltip = L.OptionsWhenTooltip:format("10 minutes before"),
},
[6] = {
key = "alertCustomMinutes",
name = "Custom before",
tooltip = L.OptionsWhenTooltip:format("at a custom time before"),
choices = function(container)
container:Add(1, L.Disabled)
for i = 15, 55, 5 do
container:Add(i, ns:DurationFormat(nil, i * 60, 3))
end
end,
},
},
},
[2] = {
title = "How do you want to be alerted?",
options = {
[1] = {
key = "enableWM",
name = "Alerts for Warmode On",
tooltip = L.OptionsEnableTooltip:format("enabled"),
},
[2] = {
key = "enable",
name = "Alerts for Warmode Off",
tooltip = L.OptionsEnableTooltip:format("disabled"),
},
[3] = {
key = "printText",
name = "Chat Messages",
tooltip = L.OptionsHowTooltip:format("chat message"),
},
[4] = {
key = "raidwarning",
name = "Raid Warning Messages",
tooltip = L.OptionsHowTooltip:format("raid warning message"),
},
[5] = {
key = "sound",
name = "Sounds",
tooltip = L.OptionsHowTooltip:format("sound"),
},
},
},
[3] = {
title = "Extra Options:",
options = {
[1] = {
key = "timeFormat",
name = "Time Format",
tooltip = "Choose a short or long time formatting.",
choices = function(container)
container:Add("narrow", ns:DurationFormat(nil, 754, "narrow"))
container:Add("short", ns:DurationFormat(nil, 754, "short"))
container:Add("long", ns:DurationFormat(nil, 754, "long"))
end,
},
[2] = {
key = "printWinsOnEnd",
name = "Display wins/games stats at end",
tooltip = "Prints your win/games record in your chat window when battles end.",
},
[3] = {
key = "warnAboutWMMismatch",
name = "Warn about WM status",
tooltip = "The addon will remind you whenever an alert fires for a battle in a Warmode that doesn't match your current setting.",
},
[4] = {
key = "share",
name = "Sharing",
tooltip = "Enables silently sharing of start times with group members and through some chat channels.",
},
[5] = {
key = "debug",
name = "Debugging",
tooltip = "Enables messages for debugging.",
condition = function()
return TBW_options ~= nil and TBW_options.TBW_allowDebug == true
end,
},
},
},
}
L.DebugToggleOn = "%s = true (%ss timeout)"
L.DebugToggleOff = "%s = false"
L.DebugTimerCheck = "TimerCheck()|n Forced: %s"
L.DebugSetTimers = "SetTimers()|n Warmode: %s|n Timestamp: %s"
L.DebugAnnouncedStart = "Announced start times in %s"
L.DebugRequestedStart = "Requested start times in %s|n%s"
L.DebugSentVersion = "Sent version in %s|n%s"
L.DebugChatMsgAddon = "Event: ChatMsgAddon|nReceived message from %s in %s|n%s"
L.DebugZoneChangedNewArea = "Event: ZoneChangedNewArea|n%s to %s"
L.DebugRaidBossEmote = "Event: RaidBossEmote|n%s"
-- Check locale and apply appropriate changes below
local CURRENT_LOCALE = GetLocale()
-- XXXX
-- if CURRENT_LOCALE == "xxXX" then return end