Update mod_congratsonlevel.cpp
I aligned the code, and actually, our communication is done through AI translation. I initially thought your mention of alignment referred to the unification of the level display function calls. Thank you for the reminder. I'm not a professional programmer and haven't received formal training, so I don't have good code alignment habits. Thanks again for your reminder!~
This commit is contained in:
parent
4fe199845e
commit
ae5e5d3b28
1 changed files with 24 additions and 40 deletions
|
|
@ -183,20 +183,14 @@ public:
|
|||
case LOCALE_deDE:
|
||||
case LOCALE_zhCN:
|
||||
{
|
||||
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF级|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 "
|
||||
<< player->GetName()
|
||||
<< " |cffFFFFFF已达到 |cff4CFF00"
|
||||
<< static_cast<int>(player->GetLevel()) << " 级|cffFFFFFF!";
|
||||
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF级|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFF已达到 |cff4CFF00" << static_cast<int>(player->GetLevel()) << " 级|cffFFFFFF!";
|
||||
break;
|
||||
}
|
||||
}
|
||||
case LOCALE_zhTW:
|
||||
{
|
||||
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF級|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 "
|
||||
<< player->GetName()
|
||||
<< " |cffFFFFFF已達到 |cff4CFF00"
|
||||
<< static_cast<int>(player->GetLevel()) << " 級|cffFFFFFF!";
|
||||
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF級|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFF已達到 |cff4CFF00" << static_cast<int>(player->GetLevel()) << " 級|cffFFFFFF!";
|
||||
break;
|
||||
}
|
||||
}
|
||||
case LOCALE_ruRU:
|
||||
{
|
||||
ss << "|cffFFFFFF[ |cffFF0000C|cffFFA500O|cffFFFF00N|cff00FF00G|cff00FFFFR|cff6A5ACDA|cffFF00FFT|cff98FB98S|cffFF0000! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFFhas reached |cff4CFF00Level " << static_cast<int>(player->GetLevel()) << "|cffFFFFFF!";
|
||||
|
|
@ -225,23 +219,15 @@ public:
|
|||
case LOCALE_frFR:
|
||||
case LOCALE_deDE:
|
||||
case LOCALE_zhCN: // 简体中文
|
||||
{
|
||||
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF级|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 "
|
||||
<< player->GetName()
|
||||
<< " |cffFFFFFF已达到 |cff4CFF00"
|
||||
<< static_cast<int>(player->GetLevel())
|
||||
<< " 级|cffFFFFFF!";
|
||||
{
|
||||
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF级|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFF已达到 |cff4CFF00" << static_cast<int>(player->GetLevel()) << " 级|cffFFFFFF!";
|
||||
break;
|
||||
}
|
||||
case LOCALE_zhTW: // 繁体中文
|
||||
{
|
||||
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF級|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 "
|
||||
<< player->GetName()
|
||||
<< " |cffFFFFFF已達到 |cff4CFF00"
|
||||
<< static_cast<int>(player->GetLevel())
|
||||
<< " 級|cffFFFFFF!";
|
||||
}
|
||||
case LOCALE_zhTW: // 繁体中文
|
||||
{
|
||||
ss << "|cffFFFFFF[ |cffFF0000恭|cffFFA500喜|cffFFFF00你|cff00FF00升|cff00FFFF級|cff6A5ACD啦|cffFF00FF! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFF已達到 |cff4CFF00" << static_cast<int>(player->GetLevel()) << " 級|cffFFFFFF!";
|
||||
break;
|
||||
}
|
||||
}
|
||||
case LOCALE_ruRU:
|
||||
{
|
||||
ss << "|cffFFFFFF[ |cffFF0000C|cffFFA500O|cffFFFF00N|cff00FF00G|cff00FFFFR|cff6A5ACDA|cffFF00FFT|cff98FB98S|cffFF0000! |cffFFFFFF] : |cff4CFF00 " << player->GetName() << " |cffFFFFFFhas reached |cff4CFF00Level " << static_cast<int>(player->GetLevel()) << "|cffFFFFFF!";
|
||||
|
|
@ -266,17 +252,15 @@ case LOCALE_zhTW: // 繁体中文
|
|||
case LOCALE_frFR:
|
||||
case LOCALE_deDE:
|
||||
case LOCALE_zhCN: // 简体中文
|
||||
{
|
||||
ss2 << "恭喜达到等级 " << static_cast<int>(player->GetLevel()) << "," << player->GetName()
|
||||
<< "!您获得了 " << money << " 钱币和一些宝藏!";
|
||||
{
|
||||
ss2 << "恭喜达到等级 " << static_cast<int>(player->GetLevel()) << "," << player->GetName() << "!您获得了 " << money << " 钱币和一些宝藏!";
|
||||
break;
|
||||
}
|
||||
case LOCALE_zhTW: // 繁体中文
|
||||
{
|
||||
ss2 << "恭喜達到等級 " << static_cast<int>(player->GetLevel()) << "," << player->GetName()
|
||||
<< "!您獲得了 " << money << " 錢幣和一些寶藏!";
|
||||
}
|
||||
case LOCALE_zhTW: // 繁体中文
|
||||
{
|
||||
ss2 << "恭喜達到等級 " << static_cast<int>(player->GetLevel()) << "," << player->GetName() << "!您獲得了 " << money << " 錢幣和一些寶藏!";
|
||||
break;
|
||||
}
|
||||
}
|
||||
case LOCALE_ruRU:
|
||||
{
|
||||
ss2 << "Congrats on Level " << static_cast<int>(player->GetLevel()) << " " << player->GetName() << "! You've been awarded " << money << " Copper and a few treasures!";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue