Initial commit

This commit is contained in:
pavetr
2026-03-15 14:54:49 +03:00
commit 64f8029c06
4027 changed files with 254888 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
-- ┏━┓┏━┳━━━┳━━━┓───────────────────────
-- ┃┃┗┛┃┃┏━┓┣┓┏┓┃───────────────────────
-- ┃┏┓┏┓┃┗━━┓┃┃┃┃──By MacTavish <3──────
-- ┃┃┃┃┃┣━━┓┃┃┃┃┃───────────────────────
-- ┃┃┃┃┃┃┗━┛┣┛┗┛┃───────────────────────
-- ┗┛┗┛┗┻━━━┻━━━┛───────────────────────
local files = file.Find("msd/language/*", "LUA")
for k, v in ipairs(files) do
if (SERVER) then
include("msd/language/" .. v)
AddCSLuaFile("msd/language/" .. v)
MsgC(Color(174, 0, 255), "[MSD] " .. v .. " language found\n")
else
include("msd/language/" .. v)
end
end
function MSD.GetPhrase(name, ...)
local lang = MSD.Language[MSD.Config.Language] or MSD.Language["en"]
local prase = lang[name]
if not prase then
prase = MSD.Language["en"][name]
end
if not prase then return name end
return string.format(prase, ...)
end