mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-12 17:56:16 +00:00
Futher capitalisation standardisation
Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bff471f98d
commit
42c9699870
4 changed files with 11 additions and 11 deletions
|
@ -390,14 +390,14 @@ void ConfigureDiveComputerDialog::on_backupButton_clicked()
|
||||||
QString filename = existing_filename ?: prefs.default_filename;
|
QString filename = existing_filename ?: prefs.default_filename;
|
||||||
QFileInfo fi(filename);
|
QFileInfo fi(filename);
|
||||||
filename = fi.absolutePath().append(QDir::separator()).append("Backup.xml");
|
filename = fi.absolutePath().append(QDir::separator()).append("Backup.xml");
|
||||||
QString backupPath = QFileDialog::getSaveFileName(this, tr("Backup Dive Computer Settings"),
|
QString backupPath = QFileDialog::getSaveFileName(this, tr("Backup dive computer settings"),
|
||||||
filename, tr("Backup files (*.xml)")
|
filename, tr("Backup files (*.xml)")
|
||||||
);
|
);
|
||||||
if (!backupPath.isEmpty()) {
|
if (!backupPath.isEmpty()) {
|
||||||
populateDeviceDetails();
|
populateDeviceDetails();
|
||||||
getDeviceData();
|
getDeviceData();
|
||||||
if (!config->saveXMLBackup(backupPath, deviceDetails, &device_data)) {
|
if (!config->saveXMLBackup(backupPath, deviceDetails, &device_data)) {
|
||||||
QMessageBox::critical(this, tr("XML Backup Error"),
|
QMessageBox::critical(this, tr("XML backup error"),
|
||||||
tr("An error occurred while saving the backup file.\n%1")
|
tr("An error occurred while saving the backup file.\n%1")
|
||||||
.arg(config->lastError)
|
.arg(config->lastError)
|
||||||
);
|
);
|
||||||
|
@ -415,12 +415,12 @@ void ConfigureDiveComputerDialog::on_restoreBackupButton_clicked()
|
||||||
QString filename = existing_filename ?: prefs.default_filename;
|
QString filename = existing_filename ?: prefs.default_filename;
|
||||||
QFileInfo fi(filename);
|
QFileInfo fi(filename);
|
||||||
filename = fi.absolutePath().append(QDir::separator()).append("Backup.xml");
|
filename = fi.absolutePath().append(QDir::separator()).append("Backup.xml");
|
||||||
QString restorePath = QFileDialog::getOpenFileName(this, tr("Restore Dive Computer Settings"),
|
QString restorePath = QFileDialog::getOpenFileName(this, tr("Restore dive computer settings"),
|
||||||
filename, tr("Backup files (*.xml)")
|
filename, tr("Backup files (*.xml)")
|
||||||
);
|
);
|
||||||
if (!restorePath.isEmpty()) {
|
if (!restorePath.isEmpty()) {
|
||||||
if (!config->restoreXMLBackup(restorePath, deviceDetails)) {
|
if (!config->restoreXMLBackup(restorePath, deviceDetails)) {
|
||||||
QMessageBox::critical(this, tr("XML Restore Error"),
|
QMessageBox::critical(this, tr("XML restore error"),
|
||||||
tr("An error occurred while restoring the backup file.\n%1")
|
tr("An error occurred while restoring the backup file.\n%1")
|
||||||
.arg(config->lastError)
|
.arg(config->lastError)
|
||||||
);
|
);
|
||||||
|
|
|
@ -221,7 +221,7 @@
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QCheckBox" name="exportStatistics">
|
<widget class="QCheckBox" name="exportStatistics">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Export Yearly Statistics</string>
|
<string>Export yearly statistics</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|
|
@ -812,7 +812,7 @@ p, li { white-space: pre-wrap; }
|
||||||
<normaloff>:/scale</normaloff>:/scale</iconset>
|
<normaloff>:/scale</normaloff>:/scale</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Scale Graph</string>
|
<string>Scale graph</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="profTogglePicture">
|
<action name="profTogglePicture">
|
||||||
|
@ -824,7 +824,7 @@ p, li { white-space: pre-wrap; }
|
||||||
<normaloff>:/pictures</normaloff>:/pictures</iconset>
|
<normaloff>:/pictures</normaloff>:/pictures</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Toggle Pictures</string>
|
<string>Toggle pictures</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="profTankbar">
|
<action name="profTankbar">
|
||||||
|
@ -836,7 +836,7 @@ p, li { white-space: pre-wrap; }
|
||||||
<normaloff>:/gaschange</normaloff>:/gaschange</iconset>
|
<normaloff>:/gaschange</normaloff>:/gaschange</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Toggle Tank Bar</string>
|
<string>Toggle tank bar</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionFilterTags">
|
<action name="actionFilterTags">
|
||||||
|
|
|
@ -40,12 +40,12 @@ void writeMarkers(struct membuffer *b, const bool selected_only)
|
||||||
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Duration:"));
|
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Duration:"));
|
||||||
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "min"));
|
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "min"));
|
||||||
put_duration(b, dive->duration, pre, post);
|
put_duration(b, dive->duration, pre, post);
|
||||||
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Max Depth:"));
|
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Max depth:"));
|
||||||
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "m"));
|
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "m"));
|
||||||
put_depth(b, dive->maxdepth, pre, post);
|
put_depth(b, dive->maxdepth, pre, post);
|
||||||
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Air Temp:"));
|
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Air temp:"));
|
||||||
put_HTML_airtemp(b, dive, pre, "</p>");
|
put_HTML_airtemp(b, dive, pre, "</p>");
|
||||||
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Water Temp:"));
|
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Water temp:"));
|
||||||
put_HTML_watertemp(b, dive, pre, "</p>");
|
put_HTML_watertemp(b, dive, pre, "</p>");
|
||||||
snprintf(pre, sizeof(pre), "<p>%s <b>", translate("gettextFromC", "Location:"));
|
snprintf(pre, sizeof(pre), "<p>%s <b>", translate("gettextFromC", "Location:"));
|
||||||
put_string(b, pre);
|
put_string(b, pre);
|
||||||
|
|
Loading…
Add table
Reference in a new issue