-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod_localization.lua
63 lines (58 loc) · 1.82 KB
/
mod_localization.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
local module = ... or D:module("environment_selector")
module:add_localization_string("es_loc_default_environment", {
english = "Default Environment",
french = "Météo par défaut",
})
module:add_localization_string("es_loc_random_environment", {
english = "Random Environment",
french = "Météo aléatoire",
})
local levels = {
"bank",
"heat_street",
"apartment",
"bridge",
"diamond_heist",
"slaughter_house",
"suburbia",
"secret_stash",
"hospital",
}
local level_names = {
english = {
["bank"] = "First World Bank",
["heat_street"] = "Heat Street",
["apartment"] = "Panic Room",
["bridge"] = "Green Bridge",
["diamond_heist"] = "Diamond Heist",
["slaughter_house"] = "Slaughter House",
["suburbia"] = "Counterfeit",
["secret_stash"] = "Undercover",
["hospital"] = "No Mercy",
},
french = {
["bank"] = "First World Bank",
["heat_street"] = "Ca chauffe dans la rue",
["apartment"] = "Pièce de sûreté",
["bridge"] = "Pont Vert",
["diamond_heist"] = "Vol de diamants",
["slaughter_house"] = "Abattoir",
["suburbia"] = "Contrefacon",
["secret_stash"] = "En sous-marin",
["hospital"] = "No Mercy",
},
}
for _, level in pairs(levels) do
module:add_localization_string("es_loc_" .. level .. "_environment", {
english = string.format("%s Environment", level_names["english"][level]),
french = string.format("Météo de %s", level_names["french"][level]),
})
module:add_localization_string("es_loc_rain_on_" .. level, {
english = string.format("Rain on %s", level_names["english"][level]),
french = string.format("La pluie sur %s", level_names["french"][level]),
})
module:add_localization_string("es_loc_lightning_on_" .. level, {
english = string.format("Lightnings on %s", level_names["english"][level]),
french = string.format("Éclairs sur %s", level_names["french"][level]),
})
end