Fix comments and reduce translator's burden.

This commit is contained in:
Mattias Andersson 2014-01-06 23:50:16 +01:00
parent 4cb3775366
commit b0e6062a4a
3 changed files with 4 additions and 11 deletions

View File

@ -1524,7 +1524,7 @@ void Playlist::StopAfter(int row) {
else
stop_after_ = index(row, 0);
// stop_after_.isValid() == true when there there is a stop placed
// stop_after_.isValid() == true when there is a stop placed
// somewhere on the playlist. Emit a StopAfterToggled signal that
// reflects this.
emit StopAfterToggled(stop_after_.isValid());

View File

@ -690,9 +690,7 @@ MainWindow::MainWindow(Application* app,
app_->playlist_manager()->Init(app_->library_backend(), app_->playlist_backend(),
ui_->playlist_sequence, ui_->playlist);
// Connect the playlist signal "StopAfterToggled with the
// StopAfterToggle OSD slot. This must be done after the playlist
// has been initialized.
// This connection must be done after the playlist has been initialized.
connect(app_->playlist_manager()->current(), SIGNAL(StopAfterToggled(bool)),
osd_, SLOT(StopAfterToggle(bool)));

View File

@ -167,13 +167,8 @@ void OSD::Stopped() {
}
void OSD::StopAfterToggle(bool stop) {
if (stop) {
ShowMessage(QCoreApplication::applicationName(),
tr("Stop playing after track: On"));
} else {
ShowMessage(QCoreApplication::applicationName(),
tr("Stop playing after track: Off"));
}
ShowMessage(QCoreApplication::applicationName(),
tr("Stop playing after track: %1").arg(stop ? tr("On") : tr("Off")));
}
void OSD::PlaylistFinished() {