mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
7a0e26609b
commit
5c0497e14b
1 changed files with 4 additions and 4 deletions
|
@ -154,7 +154,7 @@ bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile,
|
||||||
{
|
{
|
||||||
static const char errPrefix[] = "divelog.de-upload:";
|
static const char errPrefix[] = "divelog.de-upload:";
|
||||||
if (!amount_selected) {
|
if (!amount_selected) {
|
||||||
report_error(tr("no dives were selected").toUtf8());
|
report_error(tr("No dives were selected").toUtf8());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile,
|
||||||
xslt = get_stylesheet("divelogs-export.xslt");
|
xslt = get_stylesheet("divelogs-export.xslt");
|
||||||
if (!xslt) {
|
if (!xslt) {
|
||||||
qDebug() << errPrefix << "missing stylesheet";
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile,
|
||||||
if (!zip) {
|
if (!zip) {
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
zip_error_to_str(buffer, sizeof buffer, error_code, errno);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -485,7 +485,7 @@ void DivelogsDeWebServices::prepareDivesForUpload(bool selected)
|
||||||
/* generate a random filename and create/open that file with zip_open */
|
/* generate a random filename and create/open that file with zip_open */
|
||||||
QString filename = QDir::tempPath() + "/import-" + QString::number(qrand() % 99999999) + ".dld";
|
QString filename = QDir::tempPath() + "/import-" + QString::number(qrand() % 99999999) + ".dld";
|
||||||
if (!amount_selected) {
|
if (!amount_selected) {
|
||||||
report_error(tr("no dives were selected").toUtf8());
|
report_error(tr("No dives were selected").toUtf8());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (prepare_dives_for_divelogs(filename, selected)) {
|
if (prepare_dives_for_divelogs(filename, selected)) {
|
||||||
|
|
Loading…
Reference in a new issue