Add more localizations

Add more localization..
This commit is contained in:
2025-01-10 11:21:05 +01:00
parent e433bc3319
commit 2726955034
5 changed files with 129 additions and 15 deletions

View File

@@ -73,12 +73,28 @@ function shared.Whoer.Init()
end,
---@return string
NotifyRu = function(self)
local ruClass = shared.L.ru.classes[self.class]
if not ruClass then
print(string.format("[%s] Class %s not found in ru.classes", ModuleName, self.class))
end
local ruRace = shared.L.ru.races[self.race]
if not ruRace then
print(string.format("[%s] Race %s not found in ru.races", ModuleName, self.race))
end
local faction = shared.raceMap[self.race]
local ruFaction = shared.L.ru.factions[faction]
if not ruFaction then
print(string.format("[%s] Faction %s not found in ru.factions", ModuleName, faction))
end
local text = string.format(shared.L.ru.whoerNew,
self.name,
self.stinky and "(!!!!)" or "",
self.class,
self.race,
tostring(shared.raceMap[self.race]),
ruClass or self.class,
ruRace or self.race,
ruFaction or faction,
self.guild,
self.zone,
self.firstSeen,