use Sentence case for error messages

This commit is contained in:
lasconic 2015-03-04 12:18:09 +01:00
parent 3aa4860af0
commit a7326606d6
6 changed files with 12 additions and 12 deletions

View file

@ -203,7 +203,7 @@ void FluidGui::soundFontAddClicked()
if (!loaded) {
QMessageBox::warning(this,
tr("MuseScore"),
tr("cannot load SoundFont %1").arg(sfPath));
tr("Cannot load SoundFont %1").arg(sfPath));
}
else {
soundFonts->insertItem(0, sfName);

View file

@ -1543,7 +1543,7 @@ void MuseScore::exportFile()
lastSaveCopyDirectory = fi.absolutePath();
if (fi.suffix().isEmpty())
QMessageBox::critical(this, tr("MuseScore: Export"), tr("cannot determine file type"));
QMessageBox::critical(this, tr("MuseScore: Export"), tr("Cannot determine file type"));
else
saveAs(cs, true, fn, fi.suffix());
}
@ -1603,7 +1603,7 @@ bool MuseScore::exportParts()
QString ext = fi.suffix();
if (ext.isEmpty()) {
QMessageBox::critical(this, tr("MuseScore: Export Parts"), tr("cannot determine file type"));
QMessageBox::critical(this, tr("MuseScore: Export Parts"), tr("Cannot determine file type"));
return false;
}
@ -1762,7 +1762,7 @@ bool MuseScore::saveAs(Score* cs, bool saveCopy, const QString& path, const QStr
return false;
}
if (!rv && !MScore::noGui)
QMessageBox::critical(this, tr("MuseScore:"), tr("cannot write into ") + fn);
QMessageBox::critical(this, tr("MuseScore:"), tr("Cannot write into ") + fn);
return rv;
}
@ -2105,7 +2105,7 @@ bool MuseScore::saveAs(Score* cs, bool saveCopy)
if (fi.suffix().isEmpty()) {
if (!MScore::noGui)
QMessageBox::critical(mscore, tr("MuseScore: Save As"), tr("cannot determine file type"));
QMessageBox::critical(mscore, tr("MuseScore: Save As"), tr("Cannot determine file type"));
return false;
}
return saveAs(cs, saveCopy, fn, fi.suffix());
@ -2145,7 +2145,7 @@ bool MuseScore::saveSelection(Score* cs)
QString ext = fi.suffix();
if (ext.isEmpty()) {
QMessageBox::critical(mscore, tr("MuseScore: Save Selection"), tr("cannot determine file type"));
QMessageBox::critical(mscore, tr("MuseScore: Save Selection"), tr("Cannot determine file type"));
return false;
}
bool rv = true;

View file

@ -763,7 +763,7 @@ bool ScoreView::saveFotoAs(bool printMode, const QRectF& r)
}
if (ext.isEmpty()) {
QMessageBox::critical(mscore, tr("MuseScore: Save As"), tr("cannot determine file type"));
QMessageBox::critical(mscore, tr("MuseScore: Save As"), tr("Cannot determine file type"));
return false;
}

View file

@ -420,7 +420,7 @@ void PluginCreator::savePlugin()
QFile f(path);
QFileInfo fi(f);
if(fi.suffix() != "qml" ) {
QMessageBox::critical(mscore, tr("MuseScore: Save Plugin"), tr("cannot determine file type"));
QMessageBox::critical(mscore, tr("MuseScore: Save Plugin"), tr("Cannot determine file type"));
return;
}

View file

@ -2508,13 +2508,13 @@ void ScoreView::normalPaste()
PasteStatus status = _score->cmdPaste(ms,this);
switch (status) {
case PasteStatus::NO_DEST:
errorMessage->showMessage(tr("no destination to paste"), "pasteDestination");
errorMessage->showMessage(tr("No destination to paste"), "pasteDestination");
break;
case PasteStatus::DEST_TUPLET:
errorMessage->showMessage(tr("cannot paste into tuplet"), "pasteTuplet");
errorMessage->showMessage(tr("Cannot paste into tuplet"), "pasteTuplet");
break;
case PasteStatus::TUPLET_CROSSES_BAR:
errorMessage->showMessage(tr("tuplet cannot cross barlines"), "tupletCrossBar");
errorMessage->showMessage(tr("Tuplet cannot cross barlines"), "tupletCrossBar");
_score->undo()->current()->unwind();
break;
default:

View file

@ -214,7 +214,7 @@ void ZerberusGui::onSoundFontLoaded()
if (!loaded) {
QMessageBox::warning(this,
tr("MuseScore"),
tr("cannot load SoundFont %1").arg(_loadedSfPath));
tr("Cannot load SoundFont %1").arg(_loadedSfPath));
}
else {
QListWidgetItem* item = new QListWidgetItem;