-
Notifications
You must be signed in to change notification settings - Fork 14
/
modmain.lua
61 lines (49 loc) · 1.67 KB
/
modmain.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
env._G = GLOBAL
mods = _G.rawget(_G, "mods")
if not mods then
mods = {}
_G.rawset(_G, "mods", mods)
end
_G.mods = mods
PrefabFiles = {
"russian_assets"
}
local IsBeta = modinfo.is_beta
local IsLive = MODROOT:find("workshop-") ~= nil
local SteamID = IsBeta and "2286791724" or "1240565842"
mods.RussianLanguagePack = {
modinfo = modinfo,
StorePath = MODROOT,
mod_phrases = {},
mod_announce = {},
debug = nil,
print = function(...) if mods.RussianLanguagePack.debug then print("[RLP_DEBUG]", ...) end end,
UpdateLogFileName = "updatelog.txt",
MainPOfilename = "DST.po",
ModsPOfilename = "MODS.po",
TranslationTypes = {Full = "1", FontsOnly = "0"},
ModTranslationTypes = {Enabled = "1", Disabled = "0"},
CurrentTranslationType = nil,
IsModTranslEnabled = nil,
SteamID = SteamID,
Repository = "https://github.com/CunningFox146/RLP/tree/"..(IsBeta and "wip" or "master"),
SteamURL = "http://steamcommunity.com/sharedfiles/filedetails/?id="..SteamID,
DiscordURL = "https://discord.gg/eHEgH3xSF8",
SelectedLanguage = "ru",
--Склонения
AdjectiveCaseTags = {
nominative = "nom", --Именительный Кто/что
accusative = "acc", --Винительный Кого/что
dative = "dat", --Дательный Кому/чему
ablative = "abl", --Творительный Кем/чем
genitive = "gen", --Родительный Кого/чего
vocative = "voc", --Звательный
locative = "loc", --Предложный О ком/о чём
instrumental = "ins"--unused
},
DefaultActionCase = "accusative",
IsBeta = IsBeta,
IsLive = IsLive,
}
print("About to load RLP ver. ", modinfo.version)
modimport("scripts/rlp_main.lua")