summaryrefslogtreecommitdiffstats
path: root/core/datatrak.c
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-02-21 18:04:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-21 13:11:19 -0800
commitb39b641a0518593e3afa64e19c317cdbae05642b (patch)
tree3e14e5a8946a7c2d1ff084a4b8512b37e85fcf05 /core/datatrak.c
parent5c89115efe3bf542b3885ce4a1c6dfc03e755b95 (diff)
downloadsubsurface-b39b641a0518593e3afa64e19c317cdbae05642b.tar.gz
Translate names of additional dive events and nicer format info box text
Enable translation for a few additional internal dive events. Ensure that all event names in datatrak.c are collected for translation. Ensure that for gaschange in profile info box the "cyl." string is also translated. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/datatrak.c')
-rw-r--r--core/datatrak.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/datatrak.c b/core/datatrak.c
index 204ebd9b3..ba3715935 100644
--- a/core/datatrak.c
+++ b/core/datatrak.c
@@ -107,15 +107,15 @@ static struct sample *dtrak_profile(struct dive *dt_dive, FILE *archivo)
else
sample->in_deco = false;
if (byte[1] != 0)
- add_event(dc, sample->time.seconds, 0, 0, 0, "rbt");
+ add_event(dc, sample->time.seconds, 0, 0, 0, QT_TRANSLATE_NOOP("gettextFromC", "rbt"));
if (byte[2] != 0)
- add_event(dc, sample->time.seconds, 0, 0, 0, "ascent");
+ add_event(dc, sample->time.seconds, 0, 0, 0, QT_TRANSLATE_NOOP("gettextFromC", "ascent"));
if (byte[3] != 0)
- add_event(dc, sample->time.seconds, 0, 0, 0, "ceiling");
+ add_event(dc, sample->time.seconds, 0, 0, 0, QT_TRANSLATE_NOOP("gettextFromC", "ceiling"));
if (byte[4] != 0)
- add_event(dc, sample->time.seconds, 0, 0, 0, "workload");
+ add_event(dc, sample->time.seconds, 0, 0, 0, QT_TRANSLATE_NOOP("gettextFromC", "workload"));
if (byte[5] != 0)
- add_event(dc, sample->time.seconds, 0, 0, 0, "transmitter");
+ add_event(dc, sample->time.seconds, 0, 0, 0, QT_TRANSLATE_NOOP("gettextFromC", "transmitter"));
if (j == 3) {
read_bytes(1);
if (is_O2) {