forked from jp-ganis/JPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jplocal.lua
executable file
·163 lines (154 loc) · 5.57 KB
/
jplocal.lua
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
---------------------------
-- TABLES
---------------------------
--[[
-- Declare this near the top of your addon
local L = setmetatable({}, {__index=function(L,key) return key end})
-- Later when you want to add a locale, change the declaration of L to include the new language in the base table
local L = setmetatable(GetLocale() == "frFR" and {
["Hello World"] = "Bonjour la Terre",
} or {}, {__index=function(L,key) return key end})
]]
--[[
local function defaultFunc(L, key)
return key
end
MyLocalizationTable = setmetatable({}, {__index=defaultFunc})
local L = MyLocalizationTable
if GetLocale() == "frFR" then
L["Hello World"] = "Bonjour la Terre"
end
]]
--[[
if (GetLocale() == "frFR") then
MyLocalizationTable = setmetatable({
["Hello World"] = "Bonjour la Terre",
["Smite"] = "Brulure",
}, {
__index = function(t, index) return index end
})
end
local L = MyLocalizationTable
]]
do
if (GetLocale() == "frFR") then
MyLocalizationTable = setmetatable({
-- Spells for crowd Control
["Strikes"] = "Effraie",
["Roots"] = "Immobilise",
["Transforms"] = "Transforme",
["Forces"] = "Force",
["Seduces"] = "Séduit",
-- Spells for healtable
["Renew"] = "Rénovation",
["Heal"] = "Soins",
["Greater Heal"] = "Soins supérieurs",
["Penance"] = "Pénitence",
["Flash Heal"] = "Soins rapides",
-- DeBuff to dispel
["Death Coil"] = "Voile mortel",
["Dragon's Breath"] = "Souffle du dragon",
["Polymorph"] = "Métamorphose",
["Frost Nova"] = "Nova de givre",
["Fear"] = "Peur",
["Psychic Scream"] = "Cri psychique",
["Freeze"] = "Gel",
["Deep Freeze"] = "Congélation",
["Howl of Terror"] = "Hurlement de terreur",
["Counterspell"] = "Contresort",
["Entangling Roots"] = "Sarments",
["Hammer of Justice"] = "Marteau de justice",
["Cyclone"] = "Cyclone",
["Chilled"] = "Transi",
["Earthbind"] = "Lien à la terre",
["Ring of Frost"] = "Anneau de givre",
["Living Bomb"] = "Bombe vivante",
["Combustion"] = "Combustion",
["Repentance"] = "Repentir",
["Freezing Trap"] = "Piège givrant",
-- Buff to dispel
["Archangel"] = "Archange",
["Frost Armor"] = "Armure de givre",
["Power Word: Shield"] = "Mot de pouvoir : Bouclier",
["Fear Ward"] = "Gardien de peur",
["Hand of Protection"] = "Main de protection",
["Incanter's Ward"] = "Protection de l’incantateur",
["Avenging Wrath"] = "Courroux vengeur",
["Predatory Swiftness"] = "Rapidité du prédateur",
["Ice Barrier"] = "Barrière de glace",
-- Stun debuff
["Silenced Improved Counterspell"] = "Réduit au silence - Contresort amélioré",
["Fist of Justice"] = "Poing de la justice",
["Silence"] = "Silence",
["Garrote"] = "Garrot",
["Garrote - Silence"] = "Garrot - Silence",
["Can't do that while silenced"] = "Impossible lorsque vous êtes réduit(e) au silence",
["Can't do that while stunned"] = "Impossible lorsque vous êtes étourdi(e)", -- "Impossible lorsque vous êtes assomé(e)",
["Can't do that while horrified"] = "Impossible lorsque vous êtes horrifié(e)",
["Can't do that while disoriented"] = "Impossible lorsque vous êtes désorienté(e)",
["Can't do that while banished"] = "Impossible lorsque vous êtes banni(e)",
["Can't do that while fleeing"] = "Impossible lorsque vous êtes en fuite" ,
["Can't do that while asleep"] = "Impossible lorsque vous êtes endormi(e)" ,
-- localization for jps.lua & jps.data & Rotations
["You are facing the wrong way!"] = "Vous ne faites pas face à la bonne direction !",
["Target not in line of sight"] = "Cible hors du champ de vision",
["Target needs to be in front of you."] = "Les cibles doivent être devant vous.",
["Out of range"] = "Hors de portée",
["Your vision of the target is obscured"] = "Votre vision de la cible est obscurci(e)",
["Release Aberrations"] = "Libération des aberrations",
["Murglesnout"] = "Murgouilla",
["Golden Carp"] = "Carpe dorée",
["Drink"] = "Boisson",
["Polymorph"] = "Métamorphose",
-- Localization for Class & Spec
["Training Dummy"]= "Mannequin d'entraînement",
["Raider's Training Dummy"] = "Mannequin d'entraînement d'écumeur de raids",
["Dungeoneer's Training Dummy"] ="",
["Healing Dummy"] ="",
["Combat Dummy"] ="",
["Advanced Target Dummy"] ="",
["Dummy"] ="Mannequin",
["Discipline"] = "Discipline",
["Holy"] = "Sacré",
["Restoration"] = "Restauration",
["Mistweaver"] = "Tisse-brume",
["Priest"] = "Prêtre",
["Druid"] = "Druide",
["Paladin"] = "Paladin",
["Mage"] = "Mage",
["Warlock"] = "Démoniste",
["Shaman"] = "Shaman",
["Warrior"] = "Guerrier",
["Paladin"] = "Paladin",
["Death Knight"] = "Chevalier de la mort",
["Hunter"] = "Chasseur",
["Rogue"] = "Voleur",
["Use"] = "Utiliser",
} , {__index = function(t, index) return index end})
elseif (GetLocale() == "deDE") then
MyLocalizationTable = setmetatable({
-- localization for jps.lua & jps.data & Rotations
["Drink"] = "Trinken",
-- Localization for Class & Spec
["Dummy"] ="Trainingsattrappe",
["Discipline"] = "Disziplin",
["Holy"] = "Heilig",
["Restoration"] = "Wiederherstellungs",
["Mistweaver"] = "Nebelwiker",
["Priest"] = "Priester",
["Druid"] = "Druide",
["Paladin"] = "Paladin",
["Mage"] = "Magier",
["Warlock"] = "Hexenmeister",
["Shaman"] = "Schamane",
["Warrior"] = "Krieger",
["Paladin"] = "Paladin",
["Death Knight"] = "Todesritter",
["Hunter"] = "Jäger",
["Rogue"] = "Schurke",
["Use"] = "Benutzen",
} , {__index = function(t, index) return index end})
else
MyLocalizationTable = setmetatable({}, {__index = function(t, index) return index end})
end
end