mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Weight and length units need translation
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
527ae08e76
commit
0caaaf3d31
1 changed files with 4 additions and 4 deletions
|
@ -218,9 +218,9 @@ QString get_depth_string(depth_t depth, bool showunit, bool showdecimal)
|
|||
QString get_depth_unit()
|
||||
{
|
||||
if (prefs.units.length == units::METERS)
|
||||
return "m";
|
||||
return QString("%1").arg(translate("gettextFromC","m"));
|
||||
else
|
||||
return "ft";
|
||||
return QString("%1").arg(translate("gettextFromC","ft"));
|
||||
}
|
||||
|
||||
QString get_weight_string(weight_t weight, bool showunit)
|
||||
|
@ -237,9 +237,9 @@ QString get_weight_string(weight_t weight, bool showunit)
|
|||
QString get_weight_unit()
|
||||
{
|
||||
if (prefs.units.weight == units::KG)
|
||||
return "kg";
|
||||
return QString("%1").arg(translate("gettextFromC","kg"));
|
||||
else
|
||||
return "lbs";
|
||||
return QString("%1").arg(translate("gettextFromC","lbs"));
|
||||
}
|
||||
|
||||
/* these methods retrieve used gas per cylinder */
|
||||
|
|
Loading…
Add table
Reference in a new issue