Skip to content

Commit 12140cf

Browse files
cagnuleinclaude
andcommitted
Translate Stop/Start/Pause button labels in homeform.cpp
The top bar button texts were using QStringLiteral instead of tr(), preventing translation of the Start, Stop and Pause labels. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 544795f commit 12140cf

31 files changed

Lines changed: 14631 additions & 206270 deletions

src/homeform.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5662,7 +5662,7 @@ QString homeform::stopText() {
56625662

56635663
QSettings settings;
56645664
if (settings.value(QZSettings::top_bar_enabled, QZSettings::default_top_bar_enabled).toBool()) {
5665-
return QStringLiteral("Stop");
5665+
return tr("Stop");
56665666
}
56675667
return QLatin1String("");
56685668
}
@@ -5674,9 +5674,9 @@ QString homeform::startText() {
56745674
QSettings settings;
56755675
if (settings.value(QZSettings::top_bar_enabled, QZSettings::default_top_bar_enabled).toBool()) {
56765676
if (paused || stopped) {
5677-
return QStringLiteral("Start");
5677+
return tr("Start");
56785678
} else {
5679-
return QStringLiteral("Pause");
5679+
return tr("Pause");
56805680
}
56815681
}
56825682
return QLatin1String("");

0 commit comments

Comments
 (0)