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

@@ -73,7 +73,7 @@ function shared.CombatAlerter.Init()
local msg = {
channel = "CHANNEL",
data = Heimdall_Data.config.combatAlerter.masterChannel,
message = string.format("I am in combat with %s at %s (%s) at [%s](%2.2f, %2.2f)",
message = string.format(shared.L.en.combatAlerterInCombat,
source,
zone, subZone,
tostring(GetCurrentMapAreaID()),
@@ -85,6 +85,19 @@ function shared.CombatAlerter.Init()
print(string.format("[%s] Queuing alert message: '%s'", ModuleName, msg.message))
end
table.insert(shared.messenger.queue, msg)
---@type Message
msg = {
channel = "CHANNEL",
data = Heimdall_Data.config.combatAlerter.masterChannel .. "ru",
message = string.format(shared.L.ru.combatAlerterInCombat,
source,
zone, subZone,
tostring(GetCurrentMapAreaID()),
x * 100, y * 100
),
}
table.insert(shared.messenger.queue, msg)
elseif Heimdall_Data.config.combatAlerter.debug then
print(string.format("[%s] Source not in stinky list, ignoring: %s", ModuleName, source))
end