汉化排行榜
This commit is contained in:
parent
ff5da79d57
commit
a9cd43e52b
@ -59,7 +59,7 @@ enum
|
||||
NET_MAX_PAYLOAD = NET_MAX_PACKETSIZE - 6,
|
||||
NET_MAX_CHUNKHEADERSIZE = 5,
|
||||
NET_PACKETHEADERSIZE = 3,
|
||||
NET_MAX_CLIENTS = 25000,
|
||||
NET_MAX_CLIENTS = 15000,
|
||||
NET_MAX_CONSOLE_CLIENTS = 4,
|
||||
NET_MAX_SEQUENCE = 1 << 10,
|
||||
NET_SEQUENCE_MASK = NET_MAX_SEQUENCE - 1,
|
||||
|
@ -84,8 +84,8 @@ enum
|
||||
|
||||
MAX_SERVER_ADDRESSES = 16,
|
||||
SERVERINFO_MAX_CLIENTS = 128,
|
||||
MAX_CLIENTS = 25000,
|
||||
VANILLA_MAX_CLIENTS = 16,
|
||||
MAX_CLIENTS = 15000,
|
||||
VANILLA_MAX_CLIENTS = 255,
|
||||
MAX_CHECKPOINTS = 25,
|
||||
MIN_TICK = 0,
|
||||
MAX_TICK = 0x6FFFFFFF,
|
||||
|
@ -1347,7 +1347,7 @@ void CGameContext::ConSayTime(IConsole::IResult *pResult, void *pUserData)
|
||||
char aBuf[64];
|
||||
int64_t Time = (int64_t)100 * (float)(pSelf->Server()->Tick() - pChr->m_StartTime) / ((float)pSelf->Server()->TickSpeed());
|
||||
str_time(Time, TIME_HOURS, aBufTime, sizeof(aBufTime));
|
||||
str_format(aBuf, sizeof(aBuf), "%s current race time is %s", aBufName, aBufTime);
|
||||
str_format(aBuf, sizeof(aBuf), "%s 的当前比赛时间是 %s", aBufName, aBufTime);
|
||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "chatresp", aBuf);
|
||||
}
|
||||
|
||||
@ -1392,7 +1392,7 @@ void CGameContext::ConTime(IConsole::IResult *pResult, void *pUserData)
|
||||
char aBuf[64];
|
||||
int64_t Time = (int64_t)100 * (float)(pSelf->Server()->Tick() - pChr->m_StartTime) / ((float)pSelf->Server()->TickSpeed());
|
||||
str_time(Time, TIME_HOURS, aBufTime, sizeof(aBufTime));
|
||||
str_format(aBuf, sizeof(aBuf), "Your time is %s", aBufTime);
|
||||
str_format(aBuf, sizeof(aBuf), "你的时间是 %s", aBufTime);
|
||||
pSelf->SendBroadcast(aBuf, pResult->m_ClientID);
|
||||
}
|
||||
|
||||
@ -1443,9 +1443,9 @@ void CGameContext::ConSetTimerType(IConsole::IResult *pResult, void *pUserData)
|
||||
}
|
||||
|
||||
if(pPlayer->m_TimerType <= CPlayer::TIMERTYPE_SIXUP && pPlayer->m_TimerType >= CPlayer::TIMERTYPE_GAMETIMER)
|
||||
str_format(aBuf, sizeof(aBuf), "Timer is displayed in %s", s_aaMsg[pPlayer->m_TimerType]);
|
||||
str_format(aBuf, sizeof(aBuf), "计时器显示在 %s", s_aaMsg[pPlayer->m_TimerType]);
|
||||
else if(pPlayer->m_TimerType == CPlayer::TIMERTYPE_NONE)
|
||||
str_copy(aBuf, "Timer isn't displayed.");
|
||||
str_copy(aBuf, "未显示计时器");
|
||||
|
||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "chatresp", aBuf);
|
||||
}
|
||||
|
@ -794,7 +794,7 @@ bool CScoreWorker::ShowRank(IDbConnection *pSqlServer, const ISqlData *pGameData
|
||||
if(g_Config.m_SvHideScore)
|
||||
{
|
||||
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
||||
"Your time: %s, better than %d%%", aBuf, BetterThanPercent);
|
||||
"你的用时: %s, 高出 %d%%", aBuf, BetterThanPercent);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -803,13 +803,13 @@ bool CScoreWorker::ShowRank(IDbConnection *pSqlServer, const ISqlData *pGameData
|
||||
if(str_comp_nocase(pData->m_aRequestingPlayer, pData->m_aName) == 0)
|
||||
{
|
||||
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
||||
"%s - %s - better than %d%%",
|
||||
"%s - %s - 高出 %d%%",
|
||||
pData->m_aName, aBuf, BetterThanPercent);
|
||||
}
|
||||
else
|
||||
{
|
||||
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
||||
"%s - %s - better than %d%% - requested by %s",
|
||||
"%s - %s - 高出 %d%% - requested by %s",
|
||||
pData->m_aName, aBuf, BetterThanPercent, pData->m_aRequestingPlayer);
|
||||
}
|
||||
|
||||
@ -891,20 +891,20 @@ bool CScoreWorker::ShowTeamRank(IDbConnection *pSqlServer, const ISqlData *pGame
|
||||
if(g_Config.m_SvHideScore)
|
||||
{
|
||||
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
||||
"Your team time: %s, better than %d%%", aBuf, BetterThanPercent);
|
||||
"你的队伍用时: %s, 高出 %d%%", aBuf, BetterThanPercent);
|
||||
}
|
||||
else
|
||||
{
|
||||
pResult->m_MessageKind = CScorePlayerResult::ALL;
|
||||
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
||||
"%d. %s Team time: %s, better than %d%%, requested by %s",
|
||||
"%d. %s 队伍用时: %s, 高出 %d%%, %s 要求时间",
|
||||
Rank, aFormattedNames, aBuf, BetterThanPercent, pData->m_aRequestingPlayer);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
||||
"%s has no team ranks", pData->m_aName);
|
||||
"%s 没有队伍等级", pData->m_aName);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@ -946,7 +946,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
||||
|
||||
// show top
|
||||
int Line = 0;
|
||||
str_copy(pResult->m_Data.m_aaMessages[Line], "------------ Global Top ------------", sizeof(pResult->m_Data.m_aaMessages[Line]));
|
||||
str_copy(pResult->m_Data.m_aaMessages[Line], "------------ 全球排名 ------------", sizeof(pResult->m_Data.m_aaMessages[Line]));
|
||||
Line++;
|
||||
|
||||
char aTime[32];
|
||||
@ -960,7 +960,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
||||
str_time_float(Time, TIME_HOURS_CENTISECS, aTime, sizeof(aTime));
|
||||
int Rank = pSqlServer->GetInt(3);
|
||||
str_format(pResult->m_Data.m_aaMessages[Line], sizeof(pResult->m_Data.m_aaMessages[Line]),
|
||||
"%d. %s Time: %s", Rank, aName, aTime);
|
||||
"%d. %s 用时: %s", Rank, aName, aTime);
|
||||
|
||||
Line++;
|
||||
}
|
||||
@ -977,7 +977,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
||||
pSqlServer->BindInt(3, 3);
|
||||
|
||||
str_format(pResult->m_Data.m_aaMessages[Line], sizeof(pResult->m_Data.m_aaMessages[Line]),
|
||||
"------------ %s Top ------------", pData->m_aServer);
|
||||
"------------ %s 排行榜 ------------", pData->m_aServer);
|
||||
Line++;
|
||||
|
||||
// show top
|
||||
@ -989,7 +989,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
||||
str_time_float(Time, TIME_HOURS_CENTISECS, aTime, sizeof(aTime));
|
||||
int Rank = pSqlServer->GetInt(3);
|
||||
str_format(pResult->m_Data.m_aaMessages[Line], sizeof(pResult->m_Data.m_aaMessages[Line]),
|
||||
"%d. %s Time: %s", Rank, aName, aTime);
|
||||
"%d. %s 用时: %s", Rank, aName, aTime);
|
||||
Line++;
|
||||
}
|
||||
|
||||
@ -1033,7 +1033,7 @@ bool CScoreWorker::ShowTeamTop5(IDbConnection *pSqlServer, const ISqlData *pGame
|
||||
|
||||
// show teamtop5
|
||||
int Line = 0;
|
||||
str_copy(paMessages[Line++], "------- Team Top 5 -------", sizeof(paMessages[Line]));
|
||||
str_copy(paMessages[Line++], "------- 队伍前5排行榜 -------", sizeof(paMessages[Line]));
|
||||
|
||||
bool End;
|
||||
if(pSqlServer->Step(&End, pError, ErrorSize))
|
||||
@ -1130,7 +1130,7 @@ bool CScoreWorker::ShowPlayerTeamTop5(IDbConnection *pSqlServer, const ISqlData
|
||||
{
|
||||
// show teamtop5
|
||||
int Line = 0;
|
||||
str_copy(paMessages[Line++], "------- Team Top 5 -------", sizeof(paMessages[Line]));
|
||||
str_copy(paMessages[Line++], "------- 队伍前5排行榜 -------", sizeof(paMessages[Line]));
|
||||
|
||||
for(Line = 1; Line < 6; Line++) // print
|
||||
{
|
||||
@ -1237,7 +1237,7 @@ bool CScoreWorker::ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameDat
|
||||
return false;
|
||||
}
|
||||
|
||||
str_copy(paMessages[0], "------------- Last Times -------------", sizeof(paMessages[0]));
|
||||
str_copy(paMessages[0], "------------- 最后一次的时间 -------------", sizeof(paMessages[0]));
|
||||
int Line = 1;
|
||||
|
||||
do
|
||||
@ -1259,10 +1259,10 @@ bool CScoreWorker::ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameDat
|
||||
{
|
||||
if(Stamp == 0) // stamp is 00:00:00 cause it's an old entry from old times where there where no stamps yet
|
||||
str_format(paMessages[Line], sizeof(paMessages[Line]),
|
||||
"%s%s, don't know how long ago", aServerFormatted, aBuf);
|
||||
"%s%s, 许久以前", aServerFormatted, aBuf);
|
||||
else
|
||||
str_format(paMessages[Line], sizeof(paMessages[Line]),
|
||||
"%s%s ago, %s", aServerFormatted, aAgoString, aBuf);
|
||||
"%s%s 前, %s", aServerFormatted, aAgoString, aBuf);
|
||||
}
|
||||
else // last 5 times of the server
|
||||
{
|
||||
@ -1271,12 +1271,12 @@ bool CScoreWorker::ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameDat
|
||||
if(Stamp == 0) // stamp is 00:00:00 cause it's an old entry from old times where there where no stamps yet
|
||||
{
|
||||
str_format(paMessages[Line], sizeof(paMessages[Line]),
|
||||
"%s%s, %s, don't know when", aServerFormatted, aName, aBuf);
|
||||
"%s%s, %s, 许久之前", aServerFormatted, aName, aBuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
str_format(paMessages[Line], sizeof(paMessages[Line]),
|
||||
"%s%s, %s ago, %s", aServerFormatted, aName, aAgoString, aBuf);
|
||||
"%s%s, %s 前, %s", aServerFormatted, aName, aAgoString, aBuf);
|
||||
}
|
||||
}
|
||||
Line++;
|
||||
@ -1361,7 +1361,7 @@ bool CScoreWorker::ShowTopPoints(IDbConnection *pSqlServer, const ISqlData *pGam
|
||||
pSqlServer->BindInt(2, LimitStart);
|
||||
|
||||
// show top points
|
||||
str_copy(paMessages[0], "-------- Top Points --------", sizeof(paMessages[0]));
|
||||
str_copy(paMessages[0], "-------- 最高分数 --------", sizeof(paMessages[0]));
|
||||
|
||||
bool End = false;
|
||||
int Line = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user