refactor(DB/acore_string): Rename locale columns (#2929)
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1587630388241612100');
|
||||||
|
|
||||||
|
ALTER TABLE `acore_string`
|
||||||
|
CHANGE `content_loc1` `locale_koKR` TEXT,
|
||||||
|
CHANGE `content_loc2` `locale_frFR` TEXT,
|
||||||
|
CHANGE `content_loc3` `locale_deDE` TEXT,
|
||||||
|
CHANGE `content_loc4` `locale_zhCN` TEXT,
|
||||||
|
CHANGE `content_loc5` `locale_zhTW` TEXT,
|
||||||
|
CHANGE `content_loc6` `locale_esES` TEXT,
|
||||||
|
CHANGE `content_loc7` `locale_esMX` TEXT,
|
||||||
|
CHANGE `content_loc8` `locale_ruRU` TEXT;
|
||||||
@@ -7756,7 +7756,7 @@ bool ObjectMgr::LoadAcoreStrings()
|
|||||||
uint32 oldMSTime = getMSTime();
|
uint32 oldMSTime = getMSTime();
|
||||||
|
|
||||||
_acoreStringStore.clear(); // for reload case
|
_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)
|
if (!result)
|
||||||
{
|
{
|
||||||
sLog->outString(">> Loaded 0 acore strings. DB table `acore_strings` is empty.");
|
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();
|
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>";
|
return "<error>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user