mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
refactor(DB/acore_string): Rename locale columns (#2929)
This commit is contained in:
@@ -7756,7 +7756,7 @@ bool ObjectMgr::LoadAcoreStrings()
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
_acoreStringStore.clear(); // for reload case
|
||||
QueryResult result = WorldDatabase.PQuery("SELECT entry, content_default, content_loc1, content_loc2, content_loc3, content_loc4, content_loc5, content_loc6, content_loc7, content_loc8 FROM acore_string");
|
||||
QueryResult result = WorldDatabase.PQuery("SELECT entry, content_default, locale_koKR, locale_frFR, locale_deDE, locale_zhCN, locale_zhTW, locale_esES, locale_esMX, locale_ruRU FROM acore_string");
|
||||
if (!result)
|
||||
{
|
||||
sLog->outString(">> Loaded 0 acore strings. DB table `acore_strings` is empty.");
|
||||
@@ -7795,7 +7795,7 @@ char const* ObjectMgr::GetAcoreString(uint32 entry, LocaleConstant locale) const
|
||||
return ts->Content[DEFAULT_LOCALE].c_str();
|
||||
}
|
||||
|
||||
sLog->outErrorDb("Trinity string entry %u not found in DB.", entry);
|
||||
sLog->outErrorDb("Acore string entry %u not found in DB.", entry);
|
||||
|
||||
return "<error>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user