mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Add support for localized item names (#134)
This commit is contained in:
@@ -143,6 +143,12 @@ public:
|
|||||||
tempStream << std::hex << ItemQualityColors[itemTemplate->Quality];
|
tempStream << std::hex << ItemQualityColors[itemTemplate->Quality];
|
||||||
std::string itemQuality = tempStream.str();
|
std::string itemQuality = tempStream.str();
|
||||||
std::string itemName = itemTemplate->Name1;
|
std::string itemName = itemTemplate->Name1;
|
||||||
|
|
||||||
|
// get locale item name
|
||||||
|
int loc_idex = target->GetSession()->GetSessionDbLocaleIndex();
|
||||||
|
if (ItemLocale const* il = sObjectMgr->GetItemLocale(itemId))
|
||||||
|
ObjectMgr::GetLocaleString(il->Name, loc_idex, itemName);
|
||||||
|
|
||||||
std::string playerName = player->GetName();
|
std::string playerName = player->GetName();
|
||||||
std::string nameLink = handler->playerLink(playerName);
|
std::string nameLink = handler->playerLink(playerName);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user