summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Sergey Starosek <sergey.starosek@gmail.com>2013-11-30 15:45:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-30 07:53:38 -0800
commit0caaaf3d31b6a3fd062d67dc0d0671cad98757cc (patch)
treeb0bd7174107606256c298621332dd5bb796097ca /qt-gui.cpp
parent527ae08e7631dfc7527db06ed63a64172f625c17 (diff)
downloadsubsurface-0caaaf3d31b6a3fd062d67dc0d0671cad98757cc.tar.gz
Weight and length units need translation
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index c4624c666..b3dff800b 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -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 */