Add more localizations
Add more localization..
This commit is contained in:
@@ -157,14 +157,14 @@ function shared.Spotter.Init()
|
||||
SetMapToCurrentZone()
|
||||
SetMapByID(GetCurrentMapAreaID())
|
||||
local text = string.format(shared.L.en.spotterSpotted,
|
||||
hostile and "Hostile" or "Friendly",
|
||||
hostile and shared.L.en.tidbits.hostile or shared.L.en.tidbits.friendly,
|
||||
name,
|
||||
class,
|
||||
stinky and string.format("(%s)", "!!!!") or "",
|
||||
race,
|
||||
faction,
|
||||
FormatHP(hp),
|
||||
FormatHP(maxHp),
|
||||
string.gsub(FormatHP(hp), "M", "kk"),
|
||||
string.gsub(FormatHP(maxHp), "M", "kk"),
|
||||
location,
|
||||
tostring(GetCurrentMapAreaID()),
|
||||
x * 100, y * 100)
|
||||
@@ -181,16 +181,38 @@ function shared.Spotter.Init()
|
||||
}
|
||||
table.insert(shared.messenger.queue, msg)
|
||||
|
||||
local ruClass = shared.L.ru.classes[class]
|
||||
if not ruClass then
|
||||
print(string.format("[%s] Class %s not found in ru.classes", ModuleName, class))
|
||||
end
|
||||
local ruRace = shared.L.ru.races[race]
|
||||
if not ruRace then
|
||||
print(string.format("[%s] Race %s not found in ru.races", ModuleName, race))
|
||||
end
|
||||
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 zone, subzone = GetZoneText(), GetSubZoneText()
|
||||
local ruZone = shared.L.ru.zones[zone]
|
||||
if not ruZone then
|
||||
print(string.format("[%s] Zone %s not found in ru.zones", ModuleName, zone))
|
||||
end
|
||||
local ruSubzone = shared.L.ru.zones[subzone]
|
||||
if not ruSubzone then
|
||||
print(string.format("[%s] Subzone %s not found in ru.zones", ModuleName, subzone))
|
||||
end
|
||||
|
||||
text = string.format(shared.L.ru.spotterSpotted,
|
||||
hostile and "Hostile" or "Friendly",
|
||||
hostile and shared.L.ru.tidbits.hostile or shared.L.ru.tidbits.friendly,
|
||||
name,
|
||||
class,
|
||||
ruClass or class,
|
||||
stinky and string.format("(%s)", "!!!!") or "",
|
||||
race,
|
||||
faction,
|
||||
ruRace or race,
|
||||
ruFaction or faction,
|
||||
FormatHP(hp),
|
||||
FormatHP(maxHp),
|
||||
location,
|
||||
string.format("%s (%s)", ruZone or zone, ruSubzone or subzone),
|
||||
tostring(GetCurrentMapAreaID()),
|
||||
x * 100, y * 100)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user