Skip to content

Commit

Permalink
Untraslated string
Browse files Browse the repository at this point in the history
Fixed version of #4027
  • Loading branch information
MaksVasilev authored and amtriathlon committed Aug 28, 2021
1 parent d7c1b66 commit 01beed8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/Charts/Overview.cpp
Expand Up @@ -487,8 +487,8 @@ OverviewConfigDialog::OverviewConfigDialog(ChartSpaceItem*item) : QDialog(NULL),

// buttons
QHBoxLayout *buttons = new QHBoxLayout();
remove = new QPushButton("Remove", this);
ok = new QPushButton("Close", this);
remove = new QPushButton(tr("Remove"), this);
ok = new QPushButton(tr("Close"), this);
ok->setDefault(true);

buttons->addWidget(remove);
Expand Down
10 changes: 5 additions & 5 deletions src/Gui/AthleteView.cpp
Expand Up @@ -133,7 +133,7 @@ AthleteCard::AthleteCard(ChartSpace *parent, QString path) : ChartSpaceItem(pare
loadprogress = 100;
anchor=true;
setShowConfig(true);
button->setText("Close");
button->setText(tr("Close"));
button->hide();

// watch metric updates
Expand Down Expand Up @@ -220,7 +220,7 @@ AthleteCard::opening(QString name, Context*context)
if (name == path) {
this->context = context;
loadprogress = 100;
button->setText("Close");
button->setText(tr("Close"));
button->hide();
connect(context,SIGNAL(loadProgress(QString,double)), this, SLOT(loadProgress(QString,double)));
connect(context,SIGNAL(loadDone(QString,Context*)), this, SLOT(loadDone(QString,Context*)));
Expand Down Expand Up @@ -268,7 +268,7 @@ AthleteCard::closing(QString name, Context *)
setShowConfig(false);
this->context = NULL;
loadprogress = 0;
button->setText("Open");
button->setText(tr("Open"));
update();
}
}
Expand All @@ -291,8 +291,8 @@ AthleteCard::itemPaint(QPainter *painter, const QStyleOptionGraphicsItem *, QWid
if (/*maxy == 0 && */last != QDateTime() || count == 0) {
QRectF rectf = QRectF(ROWHEIGHT,geometry().height()-(ROWHEIGHT*5), geometry().width()-(ROWHEIGHT*2), ROWHEIGHT*1.5);
QString message;
if (count == 0) message = "No activities.";
else message = QString("Last workout %1 days ago").arg(last.daysTo(QDateTime::currentDateTime()));
if (count == 0) message = tr("No activities.");
else message = QString(tr("Last workout %1 days ago")).arg(last.daysTo(QDateTime::currentDateTime()));
painter->setFont(parent->midfont);
painter->setPen(QColor(150,150,150));
painter->drawText(rectf, message, Qt::AlignHCenter | Qt::AlignVCenter);
Expand Down
8 changes: 4 additions & 4 deletions src/Gui/Pages.cpp
Expand Up @@ -856,7 +856,7 @@ RemotePage::RemotePage(QWidget *parent, Context *context) : QWidget(parent), con
foreach (RemoteCmd nativeCmd, nativeCmds) {

QComboBox *comboBox = new QComboBox(this);
comboBox->addItem("<unset>");
comboBox->addItem(tr("<unset>"));

// populate the combo box with all possible ANT commands
foreach(RemoteCmd antCmd, antCmds) {
Expand Down Expand Up @@ -1271,7 +1271,7 @@ ColorsPage::ColorsPage(QWidget *parent) : QWidget(parent)
QFont font=baseFont;
font.setPointSizeF(baseFont.pointSizeF() * scale);
fonttext = new QLabel(this);
fonttext->setText("The quick brown fox jumped over the lazy dog");
fonttext->setText(tr("The quick brown fox jumped over the lazy dog"));
fonttext->setFont(font);
fonttext->setFixedHeight(30 * dpiYFactor);
fonttext->setFixedWidth(330 * dpiXFactor);
Expand Down Expand Up @@ -3294,7 +3294,7 @@ MeasuresConfigPage::removeMeasuresFieldClicked()
///
MeasuresSettingsDialog::MeasuresSettingsDialog(QWidget *parent, QString &symbol, QString &name) : QDialog(parent), symbol(symbol), name(name)
{
setWindowTitle("Measures Group");
setWindowTitle(tr("Measures Group"));
setAttribute(Qt::WA_DeleteOnClose);
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::Tool);

Expand Down Expand Up @@ -3349,7 +3349,7 @@ void MeasuresSettingsDialog::okClicked()
///
MeasuresFieldSettingsDialog::MeasuresFieldSettingsDialog(QWidget *parent, MeasuresField &field) : QDialog(parent), field(field)
{
setWindowTitle("Measures Field");
setWindowTitle(tr("Measures Field"));
setAttribute(Qt::WA_DeleteOnClose);
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::Tool);

Expand Down
12 changes: 6 additions & 6 deletions src/Train/RemoteControl.cpp
Expand Up @@ -86,32 +86,32 @@ RemoteControl::RemoteControl()

remoteCmd.setCmdId(GC_REMOTE_CMD_START);
remoteCmd.setCmdStr(GC_REMOTE_START);
remoteCmd.setDisplayStr("Start");
remoteCmd.setDisplayStr(tr("Start"));
_nativeCmdList.append(remoteCmd);

remoteCmd.setCmdId(GC_REMOTE_CMD_STOP);
remoteCmd.setCmdStr(GC_REMOTE_STOP);
remoteCmd.setDisplayStr("Stop");
remoteCmd.setDisplayStr(tr("Stop"));
_nativeCmdList.append(remoteCmd);

remoteCmd.setCmdId(GC_REMOTE_CMD_LAP);
remoteCmd.setCmdStr(GC_REMOTE_LAP);
remoteCmd.setDisplayStr("Lap");
remoteCmd.setDisplayStr(tr("Lap"));
_nativeCmdList.append(remoteCmd);

remoteCmd.setCmdId(GC_REMOTE_CMD_HIGHER);
remoteCmd.setCmdStr(GC_REMOTE_HIGHER);
remoteCmd.setDisplayStr("Higher");
remoteCmd.setDisplayStr(tr("Higher"));
_nativeCmdList.append(remoteCmd);

remoteCmd.setCmdId(GC_REMOTE_CMD_LOWER);
remoteCmd.setCmdStr(GC_REMOTE_LOWER);
remoteCmd.setDisplayStr("Lower");
remoteCmd.setDisplayStr(tr("Lower"));
_nativeCmdList.append(remoteCmd);

remoteCmd.setCmdId(GC_REMOTE_CMD_CALIBRATE);
remoteCmd.setCmdStr(GC_REMOTE_CALIBRATE);
remoteCmd.setDisplayStr("Calibrate");
remoteCmd.setDisplayStr(tr("Calibrate"));
_nativeCmdList.append(remoteCmd);

//
Expand Down
2 changes: 2 additions & 0 deletions src/Train/RemoteControl.h
Expand Up @@ -79,6 +79,8 @@ class CmdMap

class RemoteControl
{
Q_DECLARE_TR_FUNCTIONS(RemoteControl)

private:
QList<CmdMap> _cmdMaps;
QList<RemoteCmd> _antCmdList;
Expand Down

0 comments on commit 01beed8

Please sign in to comment.