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:
jamssismy 2025-02-28 11:29:09 +08:00 committed by GitHub
parent 4fe199845e
commit ae5e5d3b28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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!";
break;
}
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!";
break;
}
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!";
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!";
break;
}
{
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!";
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 << " 钱币和一些宝藏!";
break;
}
case LOCALE_zhTW: // 繁体中文
{
ss2 << "恭喜達到等級 " << static_cast<int>(player->GetLevel()) << "" << player->GetName()
<< "!您獲得了 " << money << " 錢幣和一些寶藏!";
break;
}
{
ss2 << "恭喜达到等级 " << static_cast<int>(player->GetLevel()) << "" << player->GetName() << "!您获得了 " << money << " 钱币和一些宝藏!";
break;
}
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!";