Skip to content

Commit

Permalink
Add localization context
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew J. Milner <[email protected]>
  • Loading branch information
matterhorn103 committed Nov 8, 2024
1 parent cf8d689 commit aac01fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions avogadro/qtplugins/plugindownloader/downloaderwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,19 @@ void DownloaderWidget::handleRedirect()
// Something went wrong
QString errorString = m_reply->errorString();
m_ui->readmeBrowser->append(
tr("Failed to download from %1: status code %2, %3\n")
tr("Failed to download from %1: status code %2, %3\n",
"After an HTTP request; %1 is a URL, %2 is the HTTP status code, %3 "
"is the error message (if any)")
.arg(m_reply->url().toString())
.arg(statusCode)
.arg(errorString));
}
} else {
QString errorString = m_reply->errorString();
m_ui->readmeBrowser->append(
tr("Failed to download from %1: status code %2, %3\n")
tr("Failed to download from %1: status code %2, %3\n",
"After an HTTP request; %1 is a URL, %2 is the HTTP status code, %3 "
"is the error message (if any)")
.arg(m_reply->url().toString())
.arg(statusCode)
.arg(errorString));
Expand Down

0 comments on commit aac01fd

Please sign in to comment.