mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
Use 'Temp.' for abbreviations.
This commit is contained in:
parent
de73cf8ac4
commit
bdb83fd9b5
2 changed files with 6 additions and 6 deletions
|
@ -480,9 +480,9 @@ void DiveLogImportDialog::loadFileContents(int value, whatChanged triggeredBy)
|
||||||
QString units = "Metric";
|
QString units = "Metric";
|
||||||
dl7 = true;
|
dl7 = true;
|
||||||
while ((firstLine = f.readLine().trimmed()).length() > 0 && !f.atEnd()) {
|
while ((firstLine = f.readLine().trimmed()).length() > 0 && !f.atEnd()) {
|
||||||
/* DL7 actually defines individual units (e.g. depth, temp, pressure, etc.)
|
/* DL7 actually defines individual units (e.g. depth, temperature,
|
||||||
* and there are quite a few other options as well, but let's use metric
|
* pressure, etc.) and there are quite a few other options as well,
|
||||||
* unless depth unit is clearly Imperial. */
|
* but let's use metric unless depth unit is clearly Imperial. */
|
||||||
|
|
||||||
if (firstLine.contains("ThFt")) {
|
if (firstLine.contains("ThFt")) {
|
||||||
units = "Imperial";
|
units = "Imperial";
|
||||||
|
|
|
@ -223,7 +223,7 @@ QVariant DiveItem::data(int column, int role) const
|
||||||
retVal = tr("Duration");
|
retVal = tr("Duration");
|
||||||
break;
|
break;
|
||||||
case TEMPERATURE:
|
case TEMPERATURE:
|
||||||
retVal = tr("Temp(%1%2)").arg(UTF8_DEGREE).arg((get_units()->temperature == units::CELSIUS) ? "C" : "F");
|
retVal = tr("Temp.(%1%2)").arg(UTF8_DEGREE).arg((get_units()->temperature == units::CELSIUS) ? "C" : "F");
|
||||||
break;
|
break;
|
||||||
case TOTALWEIGHT:
|
case TOTALWEIGHT:
|
||||||
retVal = tr("Weight(%1)").arg((get_units()->weight == units::KG) ? tr("kg") : tr("lbs"));
|
retVal = tr("Weight(%1)").arg((get_units()->weight == units::KG) ? tr("kg") : tr("lbs"));
|
||||||
|
@ -445,7 +445,7 @@ QVariant DiveTripModel::headerData(int section, Qt::Orientation orientation, int
|
||||||
ret = tr("Duration");
|
ret = tr("Duration");
|
||||||
break;
|
break;
|
||||||
case TEMPERATURE:
|
case TEMPERATURE:
|
||||||
ret = tr("Temp");
|
ret = tr("Temp.");
|
||||||
break;
|
break;
|
||||||
case TOTALWEIGHT:
|
case TOTALWEIGHT:
|
||||||
ret = tr("Weight");
|
ret = tr("Weight");
|
||||||
|
@ -494,7 +494,7 @@ QVariant DiveTripModel::headerData(int section, Qt::Orientation orientation, int
|
||||||
ret = tr("Duration");
|
ret = tr("Duration");
|
||||||
break;
|
break;
|
||||||
case TEMPERATURE:
|
case TEMPERATURE:
|
||||||
ret = tr("Temp(%1%2)").arg(UTF8_DEGREE).arg((get_units()->temperature == units::CELSIUS) ? "C" : "F");
|
ret = tr("Temp.(%1%2)").arg(UTF8_DEGREE).arg((get_units()->temperature == units::CELSIUS) ? "C" : "F");
|
||||||
break;
|
break;
|
||||||
case TOTALWEIGHT:
|
case TOTALWEIGHT:
|
||||||
ret = tr("Weight(%1)").arg((get_units()->weight == units::KG) ? tr("kg") : tr("lbs"));
|
ret = tr("Weight(%1)").arg((get_units()->weight == units::KG) ? tr("kg") : tr("lbs"));
|
||||||
|
|
Loading…
Reference in a new issue