From aac01fda0c9b54427e1e4c37de641911c4f20d8b Mon Sep 17 00:00:00 2001 From: "Matthew J. Milner" Date: Fri, 8 Nov 2024 22:53:27 +0100 Subject: [PATCH] Add localization context Signed-off-by: Matthew J. Milner --- avogadro/qtplugins/plugindownloader/downloaderwidget.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/avogadro/qtplugins/plugindownloader/downloaderwidget.cpp b/avogadro/qtplugins/plugindownloader/downloaderwidget.cpp index 60d96f7772..5391ab2e04 100644 --- a/avogadro/qtplugins/plugindownloader/downloaderwidget.cpp +++ b/avogadro/qtplugins/plugindownloader/downloaderwidget.cpp @@ -356,7 +356,9 @@ 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)); @@ -364,7 +366,9 @@ void DownloaderWidget::handleRedirect() } 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));