This repository was archived by the owner on Oct 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLocales.lua
More file actions
66 lines (55 loc) · 1.93 KB
/
Locales.lua
File metadata and controls
66 lines (55 loc) · 1.93 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
---@type Ellyb
local Ellyb = Ellyb(...);
-- We are using Ellyb.loc here to store the locale table so we get code completion from the IDE
-- The table will be replaced by the complete Localization system, with metatable lookups for the localization keys
---@class loc : Ellyb_Localization
local loc = {
-- System
MODIFIERS_CTRL = "Ctrl",
MODIFIERS_ALT = "Alt",
MODIFIERS_SHIFT = "Shift",
MODIFIERS_MAC_CTRL = "Command",
MODIFIERS_MAC_ALT = "Option",
MODIFIERS_MAC_SHIFT = "Shift",
CLICK = "Click",
RIGHT_CLICK = "Right-Click",
LEFT_CLICK = "Left-Click",
MIDDLE_CLICK = "Middle-Click",
DOUBLE_CLICK = "Double-Click",
-- Popups
COPY_URL_POPUP_TEXT = [[
You can copy this link by using the %s keyboard shortcut and then paste the link inside your browser using the %s shortcut.
]],
-- Patreon supporters
---@language HTML
PATREON_SUPPORTERS = [[This is add-on is being maintained and updated thanks to the help of <a href="ellypse_patreon">|cfff96854Ellype's Patreon supporters|r</a>:
%s
]],
};
loc = Ellyb.Localization(loc);
Ellyb.loc = loc;
Ellyb.loc:RegisterNewLocale(Ellyb.Enum.LOCALES.ENGLISH, "English", {});
Ellyb.loc:RegisterNewLocale(Ellyb.Enum.LOCALES.FRENCH, "Français", {
-- System
MODIFIERS_CTRL = "Contrôle",
MODIFIERS_ALT = "Alt",
MODIFIERS_SHIFT = "Maj",
MODIFIERS_MAC_CTRL = "Commande",
MODIFIERS_MAC_ALT = "Option",
MODIFIERS_MAC_SHIFT = "Maj",
CLICK = "Clic",
RIGHT_CLICK = "Clic droit",
LEFT_CLICK = "Clic gauche",
MIDDLE_CLICK = "Clic milieu",
DOUBLE_CLICK = "Double clic",
-- Popups
COPY_URL_POPUP_TEXT = [[
Vous pouvez copier ce lien en utilisant le raccourci clavier %s pour ensuite le coller dans votre navigateur web avec le raccourci clavier %s.
]],
-- Patreon supporters
---@language HTML
PATREON_SUPPORTERS = [[Cet add-on est maintenu et mis-à-jour grâce au soutien des <a href="ellypse_patreon">|cfff96854supporters du Patreon de Ellypse|r</a>:
%s
]],
})
Ellyb.loc:SetCurrentLocale(GetLocale(), true);