Add more localizations
Add more localization..
This commit is contained in:
@@ -95,7 +95,7 @@ function shared.DeathReporter.Init()
|
||||
local msg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.deathReporter.masterChannel,
|
||||
message = string.format(shared.L.en.deathReporterDeath,
|
||||
message = string.format(shared.L.en.killed,
|
||||
source,
|
||||
destination,
|
||||
spellName,
|
||||
@@ -107,16 +107,25 @@ function shared.DeathReporter.Init()
|
||||
print(string.format("[%s] Adding message to queue: %s", ModuleName, msg.message))
|
||||
end
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
local zone, subZone = GetZoneText(), GetSubZoneText()
|
||||
if not shared.L.ru.zones[zone] then
|
||||
print(string.format("[%s] Zone %s not found in ru.zones", ModuleName, zone))
|
||||
end
|
||||
zone = shared.L.ru.zones[zone] or zone
|
||||
if not shared.L.ru.zones[subZone] then
|
||||
print(string.format("[%s] Subzone %s not found in ru.zones", ModuleName, subZone))
|
||||
end
|
||||
subZone = shared.L.ru.zones[subZone] or subZone
|
||||
|
||||
---@type Message
|
||||
msg = {
|
||||
channel = "CHANNEL",
|
||||
data = Heimdall_Data.config.deathReporter.masterChannel .. "ru",
|
||||
message = string.format(shared.L.ru.deathReporterDeath,
|
||||
message = string.format(shared.L.ru.killed,
|
||||
source,
|
||||
destination,
|
||||
spellName,
|
||||
location,
|
||||
string.format("%s (%s)", zone, subZone),
|
||||
tostring(GetCurrentMapAreaID()),
|
||||
x * 100, y * 100)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user