-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathLocalization.lua
More file actions
195 lines (190 loc) · 9.85 KB
/
Copy pathLocalization.lua
File metadata and controls
195 lines (190 loc) · 9.85 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
194
195
-- Retrieve addon folder name, and our local, private namespace.
---@type string
local addonName = ...
---@class addon
local addon = select(2, ...)
-- Lua API
-----------------------------------------------------------
-- Upvalue any lua functions used here.
local pairs = pairs
-- WoW API
-----------------------------------------------------------
-- Upvalue any WoW functions used here.
local _G = _G
local GetLocale = _G.GetLocale
-- Localization system.
-----------------------------------------------------------
-- Do not modify the function,
-- just the locales in the table below!
---@type table<string, string>
local L = (function(tbl, defaultLocale)
local gameLocale = GetLocale() -- The locale currently used by the game client.
local L = tbl[gameLocale] or tbl[defaultLocale] -- Get the localization for the current locale, or use your default.
-- Replace the boolean 'true' with the key,
-- to simplify locale creation and reduce space needed.
for i in pairs(L) do
if (L[i] == true) then
L[i] = i
end
end
-- If the game client is in another locale than your default,
-- fill in any missing localization in the client's locale
-- with entries from your default locale.
if (gameLocale ~= defaultLocale) then
for i, msg in pairs(tbl[defaultLocale]) do
if (not L[i]) then
-- Replace the boolean 'true' with the key,
-- to simplify locale creation and reduce space needed.
L[i] = (msg == true) and i or msg
end
end
end
return L
end)({
-- ENTER YOUR LOCALIZATION HERE!
-----------------------------------------------------------
-- * Note that you MUST include a full table for your primary/default locale!
-- * Entries where the value (to the right) is the boolean 'true',
-- will use the key (to the left) as the value instead!
["enUS"] = {
[addonName] = true,
["Action Bars"] = true,
["Bags"] = true,
["Micro Menu"] = true,
["Fade Times"] = true,
["Transparency"] = true,
["Action Bar 1"] = true,
["Action Bar 2"] = true,
["Action Bar 3"] = true,
["Action Bar 4"] = true,
["Action Bar 5"] = true,
["Action Bar 6"] = true,
["Action Bar 7"] = true,
["Action Bar 8"] = true,
["Stance Bar"] = true,
["Pet Action Bar"] = true,
["Bags Bar"] = true,
["Micro Buttons"] = true,
["Link Action Bars"] = true,
["Show while Skyriding"] = true,
["Show Vehicle Exit Button"] = true,
["Toggle mouseover for the main action bar"] = true,
["Toggle mouseover for the bottom left action bar"] = true,
["Toggle mouseover for the bottom right action bar"] = true,
["Toggle mouseover for the right action bar"] = true,
["Toggle mouseover for the left action bar"] = true,
["Toggle mouseover for the action bar 6"] = true,
["Toggle mouseover for the action bar 7"] = true,
["Toggle mouseover for the action bar 8"] = true,
["Toggle mouseover for the stance bar"] = true,
["Toggle mouseover for the pet action bar"] = true,
["Toggle mouseover for the bags bar"] = true,
["Toggle mouseover for the micro menu buttons"] = true,
["Link all action bars to show/hide together"] = true,
["Show main action bar while skyriding. Requires a reload to take effect."] = true,
["Always show the vehicle exit button when mounted on a vehicle or taxi. Requires a reload to take effect."] = true,
["Fade-in delay"] = true,
["Fade-out delay"] = true,
["Fade-in duration"] = true,
["Fade-out duration"] = true,
["Delay before the action bar fades in"] = true,
["Delay before the action bar fades out"] = true,
["Duration of the fade-in animation"] = true,
["Duration of the fade-out animation"] = true,
["Fade-in transparency"] = true,
["Fade-out transparency"] = true,
["Transparency of the action bar when fully faded in"] = true,
["Transparency of the action bar when fully faded out"] = true,
["Auras"] = true,
["Buff Frame"] = true,
["Debuff Frame"] = true,
["Toggle mouseover for the buff frame"] = true,
["Toggle mouseover for the debuff frame"] = true,
["Profiles"] = true,
["New Profile"] = true,
["Create a new profile as a copy of the current one"] = true,
["Delete Profile"] = true,
["Delete the current profile (not available for Default)"] = true,
["Character Profile"] = true,
["Set which profile this character uses"] = true,
["(Use global default)"] = true,
["Global Default Profile"] = true,
["Set the default profile for characters with no specific assignment"] = true,
["Enter a name for the new profile:"] = true,
["Delete profile \"%s\"?"] = true,
["Create"] = true,
},
["deDE"] = {},
["esES"] = {},
["esMX"] = {},
["frFR"] = {},
["itIT"] = {},
["koKR"] = {},
["ptPT"] = {},
["ruRU"] = {
[addonName] = true,
["Action Bars"] = "Панели команд",
["Bags"] = "Сумки",
["Micro Menu"] = "Микроменю",
["Fade Times"] = "Время затухания",
["Transparency"] = "Прозрачность",
["Action Bar 1"] = "Панель команд 1",
["Action Bar 2"] = "Панель команд 2",
["Action Bar 3"] = "Панель команд 3",
["Action Bar 4"] = "Панель команд 4",
["Action Bar 5"] = "Панель команд 5",
["Action Bar 6"] = "Панель команд 6",
["Action Bar 7"] = "Панель команд 7",
["Action Bar 8"] = "Панель команд 8",
["Stance Bar"] = "Панель стоек",
["Pet Action Bar"] = "Панель команд питомца",
["Bags Bar"] = "Панель сумок",
["Micro Buttons"] = "Кнопки микроменю",
["Link Action Bars"] = "Связать панели команд",
["Show while Skyriding"] = "Показывать при полёте на драконе",
["Show Vehicle Exit Button"] = "Показывать кнопку выхода из транспорта",
["Toggle mouseover for the main action bar"] = "Появление основной панели команд при наведении мыши",
["Toggle mouseover for the bottom left action bar"] = "Появление нижней левой панели при наведении мыши",
["Toggle mouseover for the bottom right action bar"] = "Появление нижней правой панели при наведении мыши",
["Toggle mouseover for the right action bar"] = "Появление правой панели при наведении мыши",
["Toggle mouseover for the left action bar"] = "Появление левой панели при наведении мыши",
["Toggle mouseover for the action bar 6"] = "Появление панели команд 6 при наведении мыши",
["Toggle mouseover for the action bar 7"] = "Появление панели команд 7 при наведении мыши",
["Toggle mouseover for the action bar 8"] = "Появление панели команд 8 при наведении мыши",
["Toggle mouseover for the stance bar"] = "Появление панели стоек при наведении мыши",
["Toggle mouseover for the pet action bar"] = "Появление панели команд питомца при наведении мыши",
["Toggle mouseover for the bags bar"] = "Появление панели сумок при наведении мыши",
["Toggle mouseover for the micro menu buttons"] = "Появление микроменю при наведении мыши",
["Link all action bars to show/hide together"] = "Связать все панели команд — показывать/скрывать одновременно",
["Show main action bar while skyriding. Requires a reload to take effect."] =
"Показывать основную панель команд при полёте на драконе. Требуется перезагрузка интерфейса.",
["Always show the vehicle exit button when mounted on a vehicle or taxi. Requires a reload to take effect."] =
"Всегда показывать кнопку выхода из транспорта (машина, такси и т.д.). Требуется перезагрузка интерфейса.",
["Fade-in delay"] = "Задержка появления",
["Fade-out delay"] = "Задержка исчезновения",
["Fade-in duration"] = "Длительность появления",
["Fade-out duration"] = "Длительность исчезновения",
["Delay before the action bar fades in"] = "Задержка перед появлением панели команд",
["Delay before the action bar fades out"] = "Задержка перед исчезновением панели команд",
["Duration of the fade-in animation"] = "Продолжительность анимации появления",
["Duration of the fade-out animation"] = "Продолжительность анимации исчезновения",
["Fade-in transparency"] = "Прозрачность при появлении",
["Fade-out transparency"] = "Прозрачность при исчезновении",
["Transparency of the action bar when fully faded in"] =
"Прозрачность панели команд в полностью видимом состоянии",
["Transparency of the action bar when fully faded out"] =
"Прозрачность панели команд в полностью скрытом состоянии",
["Auras"] = "Ауры",
["Buff Frame"] = "Баффы",
["Debuff Frame"] = "Дебаффы",
["Toggle mouseover for the buff frame"] = "Появление баффов при наведении мыши",
["Toggle mouseover for the debuff frame"] = "Появление дебаффов при наведении мыши",
},
["zhCN"] = {},
["zhTW"] = {}
-- The primary/default locale of your addon.
-- * You should change this code to your default locale.
-- * Note that you MUST include a full table for your primary/default locale!
}, "enUS")
-- Make it available addon-wide
addon.L = L