Skip to content

Commit

Permalink
Fix #286666: Error message when no note selected untranslatable + col…
Browse files Browse the repository at this point in the history
…lect_artifacts

Also translate the string for the "Unknown error" case
  • Loading branch information
Jojo-Schmitz committed Jul 8, 2019
1 parent b64f852 commit 855956e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libmscore/mscore.cpp
Expand Up @@ -419,7 +419,7 @@ const char* MScore::errorMessage()
if (e.no == _error)
return e.txt;
}
return "unknown error";
return QT_TRANSLATE_NOOP("error", "Unknown error");
}

//---------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion mscore/musescore.cpp
Expand Up @@ -1929,7 +1929,7 @@ void MuseScore::showError()
static QErrorMessage* msg = 0;
if (msg == 0)
msg = new QErrorMessage(this);
msg->showMessage(tr(MScore::errorMessage()), MScore::errorGroup());
msg->showMessage(qApp->translate("error", MScore::errorMessage()), MScore::errorGroup());
MScore::setError(MS_NO_ERROR);
}

Expand Down

0 comments on commit 855956e

Please sign in to comment.