forked from fusionpit/ClassTrainerPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalization.lua
More file actions
27 lines (24 loc) · 734 Bytes
/
Copy pathLocalization.lua
File metadata and controls
27 lines (24 loc) · 734 Bytes
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
local _, ctp = ...
local GetLocale = GetLocale
local localeText = {
enUS = {
IGNORED = "Ignored",
TRAIN_ALL = "Train All",
IGNOREALLRANKS = "Ignore all ranks",
TOTAL_COST_TOOLTIP_FORMAT = "Total cost for %d |4spell:spells;: %s",
TOTAL_COST_LEARNED_FORMAT = "You learned %d |4spell:spells; at a cost of %s",
NOT_ENOUGH_ERROR = "You don't have enough money to train everything!",
},
frFR = {
IGNORED = "Ignoré",
TRAIN_ALL = "Tout entrainer"
}
}
ctp.L = localeText["enUS"]
local locale = GetLocale()
if (locale == "enUS" or locale == "enGB" or localeText[locale] == nil) then
return
end
for k, v in pairs(localeText[locale]) do
ctp.L[k] = v
end