Core/Chat: Load chat language data from db2 and implement serverside chat translations
Port From (https://github.com/TrinityCore/TrinityCore/commit/3b578fc6b95bfc812962fcef7930d8646016d184)
This commit is contained in:
@@ -78,7 +78,7 @@ namespace Game
|
||||
temp.sound = 0;
|
||||
}
|
||||
}
|
||||
if (ObjectManager.GetLanguageDescByID(temp.lang) == null)
|
||||
if (!Global.LanguageMgr.IsLanguageExist(temp.lang))
|
||||
{
|
||||
Log.outError(LogFilter.Sql, "GossipManager: Entry {0}, Group {1} in table `creature_texts` using Language {2} but Language does not exist.", temp.creatureId, temp.groupId, temp.lang);
|
||||
temp.lang = Language.Universal;
|
||||
|
||||
Reference in New Issue
Block a user