Repository navigation
Expand file tree
/
Copy pathLocale.lua
More file actions
305 lines (285 loc) · 15.1 KB
/
Copy pathLocale.lua
File metadata and controls
305 lines (285 loc) · 15.1 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
local addonName, ns = ...
-- English is the base. Other client languages only override the texts that differ;
-- if a translation is missing, the English text is used.
local L = {
-- Tooltip
rested = "Rested",
perHour = "XP/h",
levelUpReady = "Ready to level up!",
restingNow = "You are resting and gaining rested XP.",
tooltipTitle = "Experience",
tooltipXP = "Current",
tooltipRemaining = "Still needed",
tooltipQuests = "Completed quests (%d)",
tooltipSession = "This session",
tooltipKills = "Kills to level",
hintResetSession = "Ctrl-click: reset session",
hintOptions = "Right-click: settings",
hintToggleInfo = "Click: show/hide info text",
-- Short action texts next to the mouse icons (ns.ClickHint)
actionToggleInfo = "Show/hide info text",
actionResetSession = "Reset session",
actionOptions = "Settings",
actionDragMinimap = "Drag around the minimap",
actionDragMove = "Drag to move",
actionResetPosition = "Back above the action bars",
hintMinimapLeft = "Left-click: settings",
hintMinimapRight = "Right-click: show/hide info text",
hintMinimapDrag = "Drag: move around the minimap",
byAuthor = "by %s", -- branding: deliberately English in every language
aboutLine = "%s · version %s",
-- Text building blocks (bar text and info text)
itemLabelLevel = "Level",
itemLabelXP = "XP",
itemLabelRemaining = "To go",
itemLabelPercent = "Progress",
itemLabelQuests = "Quests",
itemLabelRested = "Rested",
itemLabelRate = "XP/h",
itemLabelTime = "Level up",
itemLabelKills = "Kills",
itemLabelSession = "Session",
itemUnknown = "–",
infoDragHint = "Shift-drag: move",
infoResetHint = "Shift-right-click: back above the action bars",
infoMoveTip = "These stats can be moved",
infoShown = "Info text shown.",
infoHidden = "Info text hidden. Click the experience bar to show it again.",
-- Chat
sessionReset = "Session statistics reset.",
settingsReset = "All settings reset to defaults.",
helpOptions = "open settings",
helpReset = "reset session statistics",
helpPerf = "measure CPU time and memory",
notInCombat = "Settings can't be opened during combat.",
perfCPU = "CPU per frame: %.4f ms (session %.4f ms, peak %.3f ms, frames over 1 ms: %d)",
perfAllAddOns = "All addons combined: %.4f ms per frame",
perfMemory = "Memory: %.1f KB",
-- Settings: building blocks (same list for bar text and info text)
optItemLevel = "Level",
optItemXP = "Current XP",
optItemXPTip = "e.g. XP 2,059 / 16,000",
optItemRemaining = "Missing XP",
optItemRemainingTip = "How much XP you still need for the next level.",
optItemPercent = "Progress in percent",
optItemQuests = "Quest XP",
optItemQuestsTip = "XP from completed quests that haven't been turned in yet.",
optItemRested = "Rested XP",
optItemRate = "XP per hour",
optItemTime = "Time to level",
optItemTimeTip = "Projected from your XP per hour.",
optItemKills = "Kills to level",
optItemKillsTip = "Estimated from the XP of your last kills. Quest turn-ins are excluded, and rested XP is taken into account: kills give double XP until it runs out.",
optItemSession = "XP this session",
-- Settings: main page (bar)
optSectionLook = "Appearance",
optStyle = "Style",
optStyleTip = "Modern: a thicker bar in the XPForever look. Classic: looks like Blizzard's experience bar but keeps all XPForever features. In Classic, height and segments don't apply.",
optStyleModern = "Modern",
optStyleClassic = "Classic",
stylePromptHint = "Right-click the bar or type |cffffd100/xpf|r for settings",
helpStyle = "choose Modern or Classic style",
optHeight = "Height",
optHeightTip = "Height of the experience bar in pixels.",
optSegments = "Show segments",
optSegmentsTip = "Divides the bar into 20 sections (5% each), like the original.",
optPercent = "Show percentage",
optPercentTip = "Shows your progress in the middle of the bar. Makes room while the bar text is shown.",
optAnimate = "Animations",
optAnimateTip = "The bar fills smoothly and gained XP lights up briefly.",
optSectionPreview = "Preview on the bar",
optQuestXP = "Show quest XP",
optQuestXPTip = "Shows after your XP how much your completed quests will give once turned in.",
optRestedXP = "Show rested XP",
optRestedXPTip = "Shows how far your rested bonus reaches.",
optRestIndicator = "Highlight while resting",
optRestIndicatorTip = "Golden glow and “Zzz” while you gain rested XP in an inn or a city.",
optRestGlow = "Glow while resting",
optRestGlowTip = "Lets the frame of the bar glow softly. Turn it off to only show the “Zzz”.",
optSectionMouse = "Mouse",
optTooltip = "Show tooltip",
optTooltipTip = "Shows all details on mouseover. Ctrl-click the bar to reset the session, right-click to open these settings.",
optMinimap = "Show minimap button",
optMinimapTip = "Round button at the minimap edge; drag it to move it. XPForever is also listed in the addon menu at the minimap.",
optSectionBarText = "Text on the bar",
optBarText = "Show",
optBarTextTip = "When the line of text appears on the bar. Choose its contents below.",
optBarTextHover = "On mouseover",
optBarTextAlways = "Always",
optBarTextNever = "Never",
-- Settings: colors
optColorsCategory = "Colors",
optSectionColors = "Colors",
optColorXP = "Experience",
optColorQuest = "Quest XP",
optColorRested = "Rested XP",
optQuestOpacity = "Quest XP opacity",
optRestedOpacity = "Rested XP opacity",
optOpacityTip = "At 100% the bar shows exactly the chosen color. Lower values keep the preview subtle.",
optGradient = "Shaded fill",
optGradientTip = "Darkens all fills towards the bottom for a slight 3D look. Turn off to show the colors exactly as chosen.",
-- Settings: info text
optInfoCategory = "Info Text",
optSectionInfoGeneral = "General",
optInfoEnabled = "Show info text",
optInfoEnabledTip = "A line of text with your most important values, e.g. above your action bars.",
optInfoPosition = "Position",
optInfoPositionTip = "“Above action bars” adapts to your bars automatically. Tip: hold Shift and drag the info text to place it anywhere; Shift-right-click puts it back.",
optInfoPositionAuto = "Above action bars",
optInfoPositionFree = "Free",
optInfoOffset = "Spacing",
optInfoOffsetTip = "Distance to the action bars in pixels.",
optInfoFontSize = "Font size",
optSectionInfoContent = "Contents",
-- Settings: statistics & reset
optStatsCategory = "Statistics & Reset",
optSectionStats = "Calculation",
optRateWindow = "Calculate XP/h over",
optRateWindowTip = "A short period reacts faster to changes. Time without movement, combat or XP gains (3 minutes or more, e.g. AFK) doesn't count.",
optRateWindow10 = "The last 10 minutes",
optRateWindow30 = "The last 30 minutes",
optRateWindowSession = "The whole session",
optSectionReset = "Reset",
optResetSession = "Reset session",
optResetSessionButton = "Reset",
optResetSessionTip = "Resets XP/h, session XP and the kill estimate. Tip: Ctrl-click the experience bar.",
optResetSettings = "Restore defaults",
optResetSettingsButton = "Reset",
optResetSettingsTip = "Resets all XPForever settings. Your session statistics are kept.",
optResetSettingsConfirm = "Reset all XPForever settings to their defaults?\n\nThis can't be undone.",
}
local translations = {}
translations.deDE = {
rested = "Erholt",
levelUpReady = "Level-up bereit!",
restingNow = "Du ruhst dich aus und sammelst Erholung.",
tooltipTitle = "Erfahrung",
tooltipXP = "Aktuell",
tooltipRemaining = "Noch benötigt",
tooltipQuests = "Abgeschlossene Quests (%d)",
tooltipSession = "Diese Sitzung",
tooltipKills = "Kills bis Level-up",
hintResetSession = "Strg-Klick: Sitzung zurücksetzen",
hintOptions = "Rechtsklick: Einstellungen",
hintToggleInfo = "Klick: Info-Text ein/aus",
actionToggleInfo = "Info-Text ein/aus",
actionResetSession = "Sitzung zurücksetzen",
actionOptions = "Einstellungen",
actionDragMinimap = "Um die Minimap ziehen",
actionDragMove = "Ziehen zum Verschieben",
actionResetPosition = "Zurück über die Aktionsleisten",
hintMinimapLeft = "Linksklick: Einstellungen",
hintMinimapRight = "Rechtsklick: Info-Text ein/aus",
hintMinimapDrag = "Ziehen: um die Minimap verschieben",
aboutLine = "%s · Version %s",
itemLabelRemaining = "Noch",
itemLabelPercent = "Fortschritt",
itemLabelRested = "Erholt",
itemLabelTime = "Level-up",
itemLabelSession = "Sitzung",
infoDragHint = "Shift + Ziehen: verschieben",
infoResetHint = "Shift + Rechtsklick: zurück über die Aktionsleisten",
infoMoveTip = "Diese Werte lassen sich verschieben",
infoShown = "Info-Text eingeblendet.",
infoHidden = "Info-Text ausgeblendet. Ein Klick auf die Erfahrungsleiste blendet ihn wieder ein.",
sessionReset = "Sitzungsstatistik zurückgesetzt.",
settingsReset = "Alle Einstellungen auf Standard zurückgesetzt.",
helpOptions = "Einstellungen öffnen",
helpReset = "Sitzungsstatistik zurücksetzen",
helpPerf = "Rechenzeit und Speicher messen",
notInCombat = "Die Einstellungen lassen sich im Kampf nicht öffnen.",
perfCPU = "CPU pro Frame: %.4f ms (Sitzung %.4f ms, Spitze %.3f ms, Frames über 1 ms: %d)",
perfAllAddOns = "Alle Addons zusammen: %.4f ms pro Frame",
perfMemory = "Speicher: %.1f KB",
optItemXP = "Aktuelle XP",
optItemXPTip = "z. B. XP 2.059 / 16.000",
optItemRemaining = "Fehlende XP",
optItemRemainingTip = "Wie viel XP dir bis zum nächsten Level fehlen.",
optItemPercent = "Fortschritt in Prozent",
optItemQuests = "Quest-XP",
optItemQuestsTip = "XP aus abgeschlossenen, noch nicht abgegebenen Quests.",
optItemRested = "Erholungs-XP",
optItemRate = "XP pro Stunde",
optItemTime = "Zeit bis Level-up",
optItemTimeTip = "Hochgerechnet aus deinen XP pro Stunde.",
optItemKills = "Kills bis Level-up",
optItemKillsTip = "Geschätzt aus der XP deiner letzten Kills. Quest-Abgaben werden herausgerechnet, Erholung wird berücksichtigt: Kills geben doppelte XP, bis sie aufgebraucht ist.",
optItemSession = "XP dieser Sitzung",
optSectionLook = "Aussehen",
optStyle = "Stil",
optStyleTip = "Modern: eine dickere Leiste im XPForever-Look. Klassisch: sieht aus wie Blizzards Erfahrungsleiste, behält aber alle Funktionen von XPForever. Im klassischen Stil gelten Höhe und Segmente nicht.",
optStyleClassic = "Klassisch",
stylePromptHint = "Rechtsklick auf die Leiste oder |cffffd100/xpf|r: Einstellungen",
helpStyle = "Stil Modern oder Klassisch wählen",
optHeight = "Höhe",
optHeightTip = "Höhe der Erfahrungsleiste in Pixeln.",
optSegments = "Segmente anzeigen",
optSegmentsTip = "Teilt die Leiste wie im Original in 20 Abschnitte (je 5 %).",
optPercent = "Prozentzahl anzeigen",
optPercentTip = "Zeigt den Fortschritt in der Mitte der Leiste. Macht Platz, solange der Text auf der Leiste zu sehen ist.",
optAnimate = "Animationen",
optAnimateTip = "Die Leiste füllt sich weich, und gewonnene XP leuchten kurz auf.",
optSectionPreview = "Vorschau auf der Leiste",
optQuestXP = "Quest-XP anzeigen",
optQuestXPTip = "Zeigt hinter deiner XP, wie viel dir abgeschlossene, noch nicht abgegebene Quests bringen.",
optRestedXP = "Erholungs-XP anzeigen",
optRestedXPTip = "Zeigt, bis wohin dein Erholungsbonus reicht.",
optRestIndicator = "Hinweis im Erholungsgebiet",
optRestIndicatorTip = "Goldenes Leuchten und „Zzz“, solange du in einem Gasthaus oder einer Stadt Erholung sammelst.",
optRestGlow = "Leuchten im Erholungsgebiet",
optRestGlowTip = "Lässt den Rahmen der Leiste sanft leuchten. Ausgeschaltet bleibt nur das „Zzz“.",
optSectionMouse = "Maus",
optTooltip = "Tooltip anzeigen",
optTooltipTip = "Zeigt beim Darüberfahren alle Details. Strg-Klick auf die Leiste setzt die Sitzung zurück, Rechtsklick öffnet diese Einstellungen.",
optMinimap = "Minimap-Button anzeigen",
optMinimapTip = "Runder Button am Rand der Minimap; zum Verschieben ziehen. XPForever steht außerdem im Addon-Menü an der Minimap.",
optSectionBarText = "Text auf der Leiste",
optBarText = "Anzeigen",
optBarTextTip = "Wann die Textzeile auf der Leiste erscheint. Die Inhalte wählst du darunter.",
optBarTextHover = "Beim Darüberfahren",
optBarTextAlways = "Immer",
optBarTextNever = "Nie",
optColorsCategory = "Farben",
optSectionColors = "Farben",
optColorXP = "Erfahrung",
optColorQuest = "Quest-XP",
optColorRested = "Erholung",
optQuestOpacity = "Deckkraft Quest-XP",
optRestedOpacity = "Deckkraft Erholung",
optOpacityTip = "Bei 100 % zeigt die Leiste genau die gewählte Farbe. Niedrigere Werte halten die Vorschau dezent.",
optGradient = "Farbverlauf",
optGradientTip = "Dunkelt alle Füllungen nach unten leicht ab (3D-Effekt). Ausgeschaltet erscheinen die Farben genau wie gewählt.",
optInfoCategory = "Info-Text",
optSectionInfoGeneral = "Allgemein",
optInfoEnabled = "Info-Text anzeigen",
optInfoEnabledTip = "Eine Textzeile mit deinen wichtigsten Werten, z. B. über den Aktionsleisten.",
optInfoPositionTip = "„Über den Aktionsleisten“ passt sich automatisch an deine Leisten an. Tipp: Mit gedrückter Shift-Taste kannst du den Info-Text frei verschieben, Shift + Rechtsklick setzt ihn zurück.",
optInfoPositionAuto = "Über den Aktionsleisten",
optInfoPositionFree = "Frei verschiebbar",
optInfoOffset = "Abstand",
optInfoOffsetTip = "Abstand zu den Aktionsleisten in Pixeln.",
optInfoFontSize = "Schriftgröße",
optSectionInfoContent = "Inhalte",
optStatsCategory = "Statistik & Zurücksetzen",
optSectionStats = "Berechnung",
optRateWindow = "XP/h berechnen über",
optRateWindowTip = "Ein kurzer Zeitraum reagiert schneller auf Änderungen. Zeit ohne Bewegung, Kampf oder XP-Gewinn (ab 3 Minuten, z. B. AFK) zählt nicht mit.",
optRateWindow10 = "Die letzten 10 Minuten",
optRateWindow30 = "Die letzten 30 Minuten",
optRateWindowSession = "Die ganze Sitzung",
optSectionReset = "Zurücksetzen",
optResetSession = "Sitzung zurücksetzen",
optResetSessionButton = "Zurücksetzen",
optResetSessionTip = "Setzt XP/h, Sitzungs-XP und die Kill-Schätzung zurück. Tipp: Strg-Klick auf die Erfahrungsleiste.",
optResetSettings = "Standardeinstellungen",
optResetSettingsButton = "Zurücksetzen",
optResetSettingsTip = "Setzt alle Einstellungen von XPForever zurück. Deine Sitzungsstatistik bleibt erhalten.",
optResetSettingsConfirm = "Alle Einstellungen von XPForever auf Standard zurücksetzen?\n\nDas lässt sich nicht rückgängig machen.",
}
-- Development: force the addon language (e.g. "enUS" for screenshots on a German client), otherwise nil.
local FORCE_LOCALE = nil
for key, text in pairs(translations[FORCE_LOCALE or GetLocale()] or {}) do
L[key] = text
end
ns.L = L
ns.FORCE_LOCALE = FORCE_LOCALE