Add russian locale

Poorly... But it'll do for now
This commit is contained in:
2025-01-09 20:58:17 +01:00
parent 12e0c23ea9
commit abb8540c12
6 changed files with 132 additions and 9 deletions

View File

@@ -95,7 +95,7 @@ function shared.DeathReporter.Init()
local msg = {
channel = "CHANNEL",
data = Heimdall_Data.config.deathReporter.masterChannel,
message = string.format("%s killed %s with %s in %s [%s](%2.2f, %2.2f)",
message = string.format(shared.L.en.deathReporterDeath,
source,
destination,
spellName,
@@ -107,6 +107,20 @@ function shared.DeathReporter.Init()
print(string.format("[%s] Adding message to queue: %s", ModuleName, msg.message))
end
table.insert(shared.messenger.queue, msg)
---@type Message
msg = {
channel = "CHANNEL",
data = Heimdall_Data.config.deathReporter.masterChannel .. "ru",
message = string.format(shared.L.ru.deathReporterDeath,
source,
destination,
spellName,
location,
tostring(GetCurrentMapAreaID()),
x * 100, y * 100)
}
table.insert(shared.messenger.queue, msg)
end)
end