diff options
author | Florian Jung <flo@windfisch.org> | 2011-09-16 14:50:34 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-09-16 14:50:34 +0000 |
commit | 663b022ab88acc47a5df898aa8df10d2e6422ba1 (patch) | |
tree | e808adc272cb15357840c504fa83038ffeed2f91 /muse2/muse/app.cpp | |
parent | cc28402b688bd757a6ffe32f582b0c0c967a677a (diff) |
fixed wrong usages of tr() like:
QString::toNumber(num) + ( num > 1 ? tr("parts") : tr("part")) or
tr("file ")+ filename +tr(" could not be loaded")
and commited scripts to find such errors
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r-- | muse2/muse/app.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index 3d52e4f2..7c716464 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -1218,7 +1218,7 @@ void MusE::loadProjectFile1(const QString& name, bool songTemplate, bool loadAll } else { QMessageBox::critical(this, QString("MusE"), - tr("Unknown File Format: ") + ex); + tr("Unknown File Format: %1").arg(ex)); setUntitledProject(); } if (!songTemplate) { @@ -1348,7 +1348,7 @@ void MusE::setUntitledProject() QString name("untitled"); MusEGlobal::museProject = "./"; //QFileInfo(name).absolutePath(); project.setFile(name); - setWindowTitle(tr("MusE: Song: ") + project.completeBaseName()); + setWindowTitle(tr("MusE: Song: %1").arg(project.completeBaseName())); } //--------------------------------------------------------- @@ -1756,7 +1756,7 @@ bool MusE::saveAs() ok = save(name, true); if (ok) { project.setFile(name); - setWindowTitle(tr("MusE: Song: ") + project.completeBaseName()); + setWindowTitle(tr("MusE: Song: %1").arg(project.completeBaseName())); addProject(name); } else @@ -2651,7 +2651,7 @@ MusE::lash_idle_cb () int ok = save (ss.toAscii(), false); if (ok) { project.setFile(ss.toAscii()); - setWindowTitle(tr("MusE: Song: ") + project.completeBaseName()); + setWindowTitle(tr("MusE: Song: %1").arg(project.completeBaseName())); addProject(ss.toAscii()); MusEGlobal::museProject = QFileInfo(ss.toAscii()).absolutePath(); } |