wrap UI strings with tr()

This commit is contained in:
2026-06-05 16:31:54 +02:00
parent 900b5fdec1
commit 17e9913c98
9 changed files with 72 additions and 72 deletions

View File

@@ -30,11 +30,11 @@ void ArenaWidget::buildLayout(const std::string& arenaName)
titleRow->addStretch();
m_inspectButton = new QPushButton("Inspect", this);
m_inspectButton = new QPushButton(tr("Inspect"), this);
connect(m_inspectButton, &QPushButton::clicked, this, &ArenaWidget::inspectRequested);
titleRow->addWidget(m_inspectButton);
m_startButton = new QPushButton("Start", this);
m_startButton = new QPushButton(tr("Start"), this);
connect(m_startButton, &QPushButton::clicked, this, &ArenaWidget::startRequested);
titleRow->addWidget(m_startButton);
@@ -94,7 +94,7 @@ void ArenaWidget::updateStatus(const ArenaStatus& status)
if (status.finished && status.winnerTeam == ti)
{
header->setText("[WON] " + QString::fromStdString(team.name));
header->setText(tr("[WON] %1").arg(QString::fromStdString(team.name)));
}
else
{