Skip to content

Commit 778cccf

Browse files
committed
i18n hooks updated
1 parent 68008b6 commit 778cccf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

app/gui/qt/mainwindow.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ MainWindow::MainWindow(QApplication &app, QSplashScreen* splash)
381381
startupPane->setReadOnly(true);
382382
startupPane->setFixedSize(600, 615);
383383
startupPane->setWindowIcon(QIcon(":images/icon-smaller.png"));
384-
startupPane->setWindowTitle("Welcome to Sonic Pi");
384+
startupPane->setWindowTitle(tr("Welcome to Sonic Pi"));
385385
addUniversalCopyShortcuts(startupPane);
386386
QString html;
387387

@@ -968,14 +968,14 @@ void MainWindow::reloadServerCode()
968968

969969
void MainWindow::enableCheckUpdates()
970970
{
971-
statusBar()->showMessage(tr("Enabling update checking...."), 2000);
971+
statusBar()->showMessage(tr("Enabling update checking..."), 2000);
972972
Message msg("/enable-update-checking");
973973
sendOSC(msg);
974974
}
975975

976976
void MainWindow::disableCheckUpdates()
977977
{
978-
statusBar()->showMessage(tr("Disabling update checking...."), 2000);
978+
statusBar()->showMessage(tr("Disabling update checking..."), 2000);
979979
Message msg("/disable-update-checking");
980980
sendOSC(msg);
981981
}
@@ -1105,7 +1105,7 @@ void MainWindow::changeRPSystemVol(int val)
11051105
//do nothing
11061106
val = val;
11071107
#elif defined(Q_OS_MAC)
1108-
statusBar()->showMessage(tr("Updating System Volume."), 2000);
1108+
statusBar()->showMessage(tr("Updating System Volume..."), 2000);
11091109
//do nothing, just print out what it would do on RPi
11101110
float v = (float) val;
11111111
float vol_float = pow(v/100.0, (float)1./3.) * 100.0;
@@ -1121,7 +1121,7 @@ void MainWindow::changeRPSystemVol(int val)
11211121
float vol_float = std::pow(v/100.0, (float)1./3.) * 100.0;
11221122
std::ostringstream ss;
11231123
ss << vol_float;
1124-
statusBar()->showMessage(tr("Updating System Volume."), 2000);
1124+
statusBar()->showMessage(tr("Updating System Volume..."), 2000);
11251125
QString prog = "amixer cset numid=1 " + QString::fromStdString(ss.str()) + '%';
11261126
p->start(prog);
11271127
#endif
@@ -1144,13 +1144,13 @@ void MainWindow::setRPSystemAudioHeadphones()
11441144
#if defined(Q_OS_WIN)
11451145
//do nothing
11461146
#elif defined(Q_OS_MAC)
1147-
statusBar()->showMessage(tr("Switching To Headphone Audio Output."), 2000);
1147+
statusBar()->showMessage(tr("Switching To Headphone Audio Output..."), 2000);
11481148
//do nothing, just print out what it would do on RPi
11491149
QString prog = "amixer cset numid=3 1";
11501150
std::cout << "[GUI] - " << prog.toStdString() << std::endl;
11511151
#else
11521152
//assuming Raspberry Pi
1153-
statusBar()->showMessage(tr("Switching To Headphone Audio Output."), 2000);
1153+
statusBar()->showMessage(tr("Switching To Headphone Audio Output..."), 2000);
11541154
QProcess *p = new QProcess();
11551155
QString prog = "amixer cset numid=3 1";
11561156
p->start(prog);
@@ -1163,13 +1163,13 @@ void MainWindow::setRPSystemAudioHDMI()
11631163
#if defined(Q_OS_WIN)
11641164
//do nothing
11651165
#elif defined(Q_OS_MAC)
1166-
statusBar()->showMessage(tr("Switching To HDMI Audio Output."), 2000);
1166+
statusBar()->showMessage(tr("Switching To HDMI Audio Output..."), 2000);
11671167
//do nothing, just print out what it would do on RPi
11681168
QString prog = "amixer cset numid=3 2";
11691169
std::cout << "[GUI] - " << prog.toStdString() << std::endl;
11701170
#else
11711171
//assuming Raspberry Pi
1172-
statusBar()->showMessage(tr("Switching To HDMI Audio Output."), 2000);
1172+
statusBar()->showMessage(tr("Switching To HDMI Audio Output..."), 2000);
11731173
QProcess *p = new QProcess();
11741174
QString prog = "amixer cset numid=3 2";
11751175
p->start(prog);
@@ -1182,13 +1182,13 @@ void MainWindow::setRPSystemAudioAuto()
11821182
//do nothing
11831183

11841184
#elif defined(Q_OS_MAC)
1185-
statusBar()->showMessage(tr("Switching To Default Audio Output."), 2000);
1185+
statusBar()->showMessage(tr("Switching To Default Audio Output..."), 2000);
11861186
//do nothing, just print out what it would do on RPi
11871187
QString prog = "amixer cset numid=3 0";
11881188
std::cout << "[GUI] - " << prog.toStdString() << std::endl;
11891189
#else
11901190
//assuming Raspberry Pi
1191-
statusBar()->showMessage(tr("Switching To Default Audio Output."), 2000);
1191+
statusBar()->showMessage(tr("Switching To Default Audio Output..."), 2000);
11921192
QProcess *p = new QProcess();
11931193
QString prog = "amixer cset numid=3 0";
11941194
p->start(prog);
@@ -1497,7 +1497,7 @@ void MainWindow::toggleRecording() {
14971497

14981498
void MainWindow::createStatusBar()
14991499
{
1500-
statusBar()->showMessage(tr("Ready"));
1500+
statusBar()->showMessage(tr("Ready..."));
15011501
}
15021502

15031503
void MainWindow::readSettings() {
@@ -1576,7 +1576,7 @@ void MainWindow::loadFile(const QString &fileName, SonicPiScintilla* &text)
15761576
QApplication::setOverrideCursor(Qt::WaitCursor);
15771577
text->setText(in.readAll());
15781578
QApplication::restoreOverrideCursor();
1579-
statusBar()->showMessage(tr("File loaded"), 2000);
1579+
statusBar()->showMessage(tr("File loaded..."), 2000);
15801580
}
15811581

15821582
bool MainWindow::saveFile(const QString &fileName, SonicPiScintilla* text)
@@ -1601,7 +1601,7 @@ bool MainWindow::saveFile(const QString &fileName, SonicPiScintilla* text)
16011601
out << code;
16021602
QApplication::restoreOverrideCursor();
16031603

1604-
statusBar()->showMessage(tr("File saved"), 2000);
1604+
statusBar()->showMessage(tr("File saved..."), 2000);
16051605
return true;
16061606
}
16071607

0 commit comments

Comments
 (0)