From 5c0497e14b57a6ee420f4383e3cf72ac5a445064 Mon Sep 17 00:00:00 2001 From: John Plaxco Date: Sun, 23 Dec 2018 07:35:05 -0500 Subject: Fix error message capitalization for web services. Capitalize the first letter of error message sentences in this file to be consistent with other error messages in this file and across the project. [Dirk Hohndel: edit to remove the changes to the .ts files] Signed-off-by: John Plaxco Signed-off-by: Dirk Hohndel --- desktop-widgets/subsurfacewebservices.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'desktop-widgets/subsurfacewebservices.cpp') diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp index d62cd8552..643c0270f 100644 --- a/desktop-widgets/subsurfacewebservices.cpp +++ b/desktop-widgets/subsurfacewebservices.cpp @@ -154,7 +154,7 @@ bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, { static const char errPrefix[] = "divelog.de-upload:"; if (!amount_selected) { - report_error(tr("no dives were selected").toUtf8()); + report_error(tr("No dives were selected").toUtf8()); return false; } @@ -164,7 +164,7 @@ bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, xslt = get_stylesheet("divelogs-export.xslt"); if (!xslt) { qDebug() << errPrefix << "missing stylesheet"; - report_error(tr("stylesheet to export to divelogs.de is not found").toUtf8()); + report_error(tr("Stylesheet to export to divelogs.de is not found").toUtf8()); return false; } @@ -174,7 +174,7 @@ bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, if (!zip) { char buffer[1024]; zip_error_to_str(buffer, sizeof buffer, error_code, errno); - report_error(tr("failed to create zip file for upload: %s").toUtf8(), buffer); + report_error(tr("Failed to create zip file for upload: %s").toUtf8(), buffer); return false; } @@ -485,7 +485,7 @@ void DivelogsDeWebServices::prepareDivesForUpload(bool selected) /* generate a random filename and create/open that file with zip_open */ QString filename = QDir::tempPath() + "/import-" + QString::number(qrand() % 99999999) + ".dld"; if (!amount_selected) { - report_error(tr("no dives were selected").toUtf8()); + report_error(tr("No dives were selected").toUtf8()); return; } if (prepare_dives_for_divelogs(filename, selected)) { -- cgit v1.2.3-70-g09d2