vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | -- This load method is different from the one Ace(d) addons should use. It has to |
2 | -- be done this way here, because the ace object isn't created yet, so |
||
3 | -- ace:LoadTranslation() can't be called. |
||
4 | local loader = getglobal("Ace_Locals_"..GetLocale()) |
||
5 | if( loader ) then loader() |
||
6 | else |
||
7 | |||
8 | -- All text inside quotes is translatable, except for 'method' lines. |
||
9 | |||
10 | SLASH_RELOAD1 = "/rl" |
||
11 | SLASH_RELOAD2 = "/reload" |
||
12 | |||
13 | ACE_NAME = "Ace" |
||
14 | ACE_DESCRIPTION = "AddOn development and management toolkit." |
||
15 | ACE_VERSION_MISMATCH = "|cffff6060[Ace mismatch]|r" |
||
16 | |||
17 | -- Various text strings |
||
18 | ACE_TEXT_COMMANDS = "Commands" |
||
19 | ACE_TEXT_ALL = "all" |
||
20 | ACE_TEXT_OF = "of" |
||
21 | ACE_TEXT_AUTHOR = "Author" |
||
22 | ACE_TEXT_EMAIL = "Email" |
||
23 | ACE_TEXT_RELEASED = "Released" |
||
24 | ACE_TEXT_WEBSITE = "Website" |
||
25 | ACE_TEXT_MEM_USAGE = "Memory usage (MB)" |
||
26 | ACE_TEXT_TOTAL_ADDONS = "Total Addons" |
||
27 | ACE_TEXT_TOTAL_LOADED = "Currently loaded addons" |
||
28 | ACE_TEXT_ACE_ADDONS_LOADED = "Ace addons loaded" |
||
29 | ACE_TEXT_ACE_REGISTERED = "Registered Ace applications" |
||
30 | ACE_TEXT_OTHERS_LOADED = "Other addons loaded" |
||
31 | ACE_TEXT_NOT_LOADED = "Addons not loaded" |
||
32 | ACE_TEXT_LOADMSG = "Startup load message type" |
||
33 | ACE_TEXT_NOW_SET_TO = "now set to" |
||
34 | ACE_TEXT_DEFAULT = "default" |
||
35 | |||
36 | ACE_MAP_STANDBY = {[0]="Now active.", [1]="Standing by."} |
||
37 | ACE_MAP_LOADMSG = {[0]="Summary", addon="Addon", none="None"} |
||
38 | |||
39 | ACE_DISPLAY_OPTION = "[|cfff5f530%s|r]" |
||
40 | |||
41 | -- Load message locals |
||
42 | ACE_LOAD_MSG_SUMMARY = "|cffffff78Ace Initialization Complete|r\n".. |
||
43 | "|cffffff78"..ACE_TEXT_ACE_REGISTERED..":|r %s\n".. |
||
44 | "|cffffff78Profile loaded:|r %s\n".. |
||
45 | "|cffffff78Type|r |cffd8c7ff/ace|r |cffffff78for more information|r" |
||
46 | |||
47 | -- Addon locals |
||
48 | ACE_ADDON_LOADED = "|cffffff78%s v%s|r |cffffffffby|r |cffd8c7ff%s|r |cffffffffis now loaded.|r" |
||
49 | ACE_ADDON_CHAT_COMMAND = "|cffffff78(%s)" |
||
50 | ACE_ADDON_STANDBY = "|cffff5050(standby)|r" |
||
51 | |||
52 | -- Addon Categories |
||
53 | ACE_CATEGORY_AUDIO = "Audio" |
||
54 | ACE_CATEGORY_BARS = "Interface Bars" |
||
55 | ACE_CATEGORY_BATTLEGROUNDS = "Battlegrounds" |
||
56 | ACE_CATEGORY_CHAT = "Chat/Communications" |
||
57 | ACE_CATEGORY_CLASS = "Class Enhancement" |
||
58 | ACE_CATEGORY_COMBAT = "Combat/Casting" |
||
59 | ACE_CATEGORY_COMPILATIONS = "Compilations" |
||
60 | ACE_CATEGORY_DEVELOPMENT = "Development Tools" |
||
61 | ACE_CATEGORY_GUILD = "Guild" |
||
62 | ACE_CATEGORY_INTERFACE = "Interface Enhancements" |
||
63 | ACE_CATEGORY_INVENTORY = "Inventory/Item Enhancements" |
||
64 | ACE_CATEGORY_MAP = "Map Enhancements" |
||
65 | ACE_CATEGORY_OTHERS = "Others" |
||
66 | ACE_CATEGORY_PROFESSIONS = "Professions" |
||
67 | ACE_CATEGORY_QUESTS = "Quest Enhancements" |
||
68 | ACE_CATEGORY_RAID = "Raid Assistance" |
||
69 | |||
70 | -- Profile locals |
||
71 | ACE_PROFILE_DEFAULT = "default" |
||
72 | ACE_PROFILE_LOADED_CHAR = "An individual profile has been loaded for %s." |
||
73 | ACE_PROFILE_LOADED_CLASS = "The %s class profile has been loaded for %s." |
||
74 | ACE_PROFILE_LOADED_DEFAULT = "The default profile has been loaded for %s." |
||
75 | |||
76 | -- Information locals |
||
77 | ACE_INFO_HEADER = "|cffffff78Ace Information|r" |
||
78 | ACE_INFO_NUM_ADDONS = "Addons loaded" |
||
79 | ACE_INFO_PROFILE_LOADED = "Profile loaded" |
||
80 | |||
81 | -- Chat handler locals |
||
82 | ACE_COMMANDS = {"/ace"} |
||
83 | |||
84 | ACE_CMD_OPT_HELP = "?" |
||
85 | ACE_CMD_OPT_HELP_DESC = "Display extra information about this addon." |
||
86 | ACE_CMD_OPT_STANDBY = "standby" |
||
87 | ACE_CMD_OPT_STANDBY_DESC = "Toggle the addon's standby mode." |
||
88 | ACE_CMD_OPT_REPORT = "report" |
||
89 | ACE_CMD_OPT_REPORT_DESC = "Display the status of all settings." |
||
90 | ACE_CMD_OPT_INVALID = "Invalid option '%s' entered." |
||
91 | ACE_CMD_OPT_LIST_ADDONS = "Addon List" |
||
92 | ACE_CMD_OPT_LOAD_IS_LOADED = "%s is already loaded." |
||
93 | ACE_CMD_OPT_LOAD_ERROR = "%s could not be loaded because it is %s." |
||
94 | ACE_CMD_OPT_LOAD_LOADED = "%s is now loaded." |
||
95 | ACE_CMD_OPT_AUTO_OFF_MSG = "%s will no longer be loaded on demand at game start." |
||
96 | ACE_CMD_ERROR = "|cffff6060[error]|r" |
||
97 | |||
98 | ACE_CMD_ADDON_NOTFOUND = "No addon named '%s' was found." |
||
99 | ACE_CMD_ADDON_ENABLED = "%s has been enabled. You must reload the game to load this addon." |
||
100 | ACE_CMD_ADDON_ENABLED_ALL = "All addons have been enabled. You must reload the game to load ".. |
||
101 | "previously unloaded addons." |
||
102 | ACE_CMD_ADDON_DISABLED = "%s has been disabled but will remain loaded until you reload the game." |
||
103 | ACE_CMD_ADDON_DISABLED_ALL = "All addons except Ace itself have been disabled but will remain loaded ".. |
||
104 | "until you reload the game." |
||
105 | |||
106 | ACE_CMD_PROFILE_ADDON_ADDED = "%s has been added. Active profile: %s." |
||
107 | ACE_CMD_PROFILE_ALL_ADDED = "All addons have been added. Active profile: %s." |
||
108 | ACE_CMD_PROFILE_ALL = "all" |
||
109 | ACE_CMD_PROFILE_NO_PROFILE = "%s has no profiling options available." |
||
110 | |||
111 | ACE_CMD_USAGE_ADDON_DESC = "|cffffff78[%s v%s]|r : %s" |
||
112 | ACE_CMD_USAGE_HEADER = "|cffffff78Usage:|r |cffd8c7ff%s|r %s" |
||
113 | ACE_CMD_USAGE_OPT_DESC = " - |cffffff78%s:|r %s" |
||
114 | ACE_CMD_USAGE_OPT_SEP = " | " |
||
115 | ACE_CMD_USAGE_OPT_OPEN = "[" |
||
116 | ACE_CMD_USAGE_OPT_CLOSE = "]" |
||
117 | ACE_CMD_USAGE_OPTION = "|cffd8c7ff%s %s|r %s" |
||
118 | ACE_CMD_USAGE_NOINFO = "No further information" |
||
119 | |||
120 | ACE_CMD_RESULT = "|cffffff78%s:|r %s" |
||
121 | |||
122 | ACE_CMD_REPORT_STATUS = "Status" |
||
123 | ACE_CMD_REPORT_LINE = "%s [|cfff5f530%s|r]" |
||
124 | ACE_CMD_REPORT_LINE_PRE = " - " |
||
125 | ACE_CMD_REPORT_LINE_INDENT = " " |
||
126 | |||
127 | ACE_CMD_REPORT_NO_VAL = "|cffc7c7c7no value|r" |
||
128 | |||
129 | ACE_CMD_OPTIONS = { |
||
130 | { |
||
131 | option = "enable", |
||
132 | desc = "Enable an addon.", |
||
133 | method = "EnableAddon" |
||
134 | }, |
||
135 | { |
||
136 | option = "disable", |
||
137 | desc = "Disable an addon.", |
||
138 | method = "DisableAddon" |
||
139 | }, |
||
140 | { |
||
141 | option = "info", |
||
142 | desc = "Display addon and current profile information.", |
||
143 | method = "DisplayInfo" |
||
144 | }, |
||
145 | { |
||
146 | option = "list", |
||
147 | desc = "List currently loaded addons. You may optionally follow this command ".. |
||
148 | "with the name of an addon to search for.", |
||
149 | method = "ListAddons", |
||
150 | args = { |
||
151 | { |
||
152 | option = "ace", |
||
153 | desc = "List only currently loaded Ace addons.", |
||
154 | method = "ListAddonsAce" |
||
155 | }, |
||
156 | { |
||
157 | option = "other", |
||
158 | desc = "List all other loaded addons.", |
||
159 | method = "ListAddonsOther" |
||
160 | }, |
||
161 | { |
||
162 | option = "loadable", |
||
163 | desc = "List all addons that are available to be loaded.", |
||
164 | method = "ListAddonsLoadable" |
||
165 | } |
||
166 | } |
||
167 | }, |
||
168 | { |
||
169 | option = "load", |
||
170 | desc = "Load an addon if it is not currently loaded and if it is set to be loaded ".. |
||
171 | "on demand.", |
||
172 | input = 1, |
||
173 | method = "LoadAddon", |
||
174 | args = { |
||
175 | { |
||
176 | option = "auto", |
||
177 | desc = "Load the addon and set it to be automatically loaded at game start.", |
||
178 | method = "LoadAddonAuto" |
||
179 | }, |
||
180 | { |
||
181 | option = "off", |
||
182 | desc = "Turn off the automatic loading at game start of an on demand addon.", |
||
183 | method = "LoadAddonOff" |
||
184 | } |
||
185 | } |
||
186 | }, |
||
187 | { |
||
188 | option = "loadmsg", |
||
189 | desc = "Change the displaying of load messages at game startup or reload.", |
||
190 | args = { |
||
191 | { |
||
192 | option = "addon", |
||
193 | desc = "Display a load message for each addon.", |
||
194 | method = "ChangeLoadMsgAddon" |
||
195 | }, |
||
196 | { |
||
197 | option = "none", |
||
198 | desc = "Do not display any load messages at all.", |
||
199 | method = "ChangeLoadMsgNone" |
||
200 | }, |
||
201 | { |
||
202 | option = "sum", |
||
203 | desc = "Display a short summary message.", |
||
204 | method = "ChangeLoadMsgSum" |
||
205 | } |
||
206 | }, |
||
207 | }, |
||
208 | { |
||
209 | option = "profile", |
||
210 | desc = "Load one of three profiles: char, class, or default. If the profile doesn't ".. |
||
211 | "exist, it will be created empty. Your character and class profiles will ".. |
||
212 | "continue to use default addon settings until you populate it. Once you ".. |
||
213 | "place an addon in a profile, any changes you make to that addon's settings ".. |
||
214 | "will be specific to the current profile.", |
||
215 | args = { |
||
216 | { |
||
217 | option = "char", |
||
218 | desc = "Load a profile specific to this character. Enter 'all' or a specific ".. |
||
219 | "addon name to populate this profile.", |
||
220 | method = "UseProfileChar", |
||
221 | }, |
||
222 | { |
||
223 | option = "class", |
||
224 | desc = "Load a profile specific to this character's class. Enter 'all' or ".. |
||
225 | "a specific addon name to populate this profile.", |
||
226 | method = "UseProfileClass" |
||
227 | }, |
||
228 | { |
||
229 | option = ACE_PROFILE_DEFAULT, |
||
230 | desc = "Load the default profile for this character. This profile is ".. |
||
231 | "automatically populated with each addon.", |
||
232 | method = "UseProfileDefault" |
||
233 | }, |
||
234 | }, |
||
235 | } |
||
236 | } |
||
237 | |||
238 | end |
||
239 | |||
240 | |||
241 | loader = nil |