summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar John Plaxco <john@johnplaxco.com>2018-12-23 07:35:05 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-23 10:55:46 -0800
commit5c0497e14b57a6ee420f4383e3cf72ac5a445064 (patch)
tree088f4e28640e93367a00f5157cdd9da2b254a465 /desktop-widgets/subsurfacewebservices.cpp
parent7a0e26609b1e310efbb73b3541301db2a181fa17 (diff)
downloadsubsurface-5c0497e14b57a6ee420f4383e3cf72ac5a445064.tar.gz
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 <john@johnplaxco.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/subsurfacewebservices.cpp')
-rw-r--r--desktop-widgets/subsurfacewebservices.cpp8
1 files changed, 4 insertions, 4 deletions
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)) {