UI: Add the "points" unit in some RA-related strings (#10917)

This commit is contained in:
Pierre GRASSER 2024-03-17 23:29:09 +01:00 committed by GitHub
parent 4d2b2e5803
commit d1bff18e0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -747,7 +747,7 @@ void MainWindow::onAchievementsLoginRequested(Achievements::LoginRequestReason r
void MainWindow::onAchievementsLoginSucceeded(const QString& display_name, quint32 points, quint32 sc_points, quint32 unread_messages) void MainWindow::onAchievementsLoginSucceeded(const QString& display_name, quint32 points, quint32 sc_points, quint32 unread_messages)
{ {
const QString message = const QString message =
tr("RA: Logged in as %1 (%2, %3 softcore). %4 unread messages.").arg(display_name).arg(points).arg(sc_points).arg(unread_messages); tr("RA: Logged in as %1 (%2 pts, softcore: %3 pts). %4 unread messages.").arg(display_name).arg(points).arg(sc_points).arg(unread_messages);
m_ui.statusBar->showMessage(message); m_ui.statusBar->showMessage(message);
} }

View File

@ -1742,7 +1742,7 @@ void Achievements::ShowLoginSuccess(const rc_client_t* client)
//: Summary for login notification. //: Summary for login notification.
std::string title = user->display_name; std::string title = user->display_name;
std::string summary = fmt::format(TRANSLATE_FS("Achievements", "Score: {0} ({1} softcore)\nUnread messages: {2}"), user->score, std::string summary = fmt::format(TRANSLATE_FS("Achievements", "Score: {0} pts (softcore: {1} pts)\nUnread messages: {2}"), user->score,
user->score_softcore, user->num_unread_messages); user->score_softcore, user->num_unread_messages);
MTGS::RunOnGSThread([title = std::move(title), summary = std::move(summary), badge_path = std::move(badge_path)]() { MTGS::RunOnGSThread([title = std::move(title), summary = std::move(summary), badge_path = std::move(badge_path)]() {