summaryrefslogtreecommitdiffstats
path: root/core/plannernotes.c
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2017-10-27 21:07:50 +0200
committerGravatar Robert C. Helling <helling@atdotde.de>2017-10-28 08:19:18 +0200
commit1095b7807147fa6f6ad74ed3a3c9b65106ccf2a0 (patch)
treeaf00cfe37bf46563771821a6d98a49ea757618ef /core/plannernotes.c
parent6bd5312dfa9e54fa05c231a671af666e1ffa4dad (diff)
downloadsubsurface-1095b7807147fa6f6ad74ed3a3c9b65106ccf2a0.tar.gz
Planner: Do not translate VARIATIONS
This string is substituted with the runtime increments derived of slight variations in depth or bottom time in: diveplannermodel.cpp:1058: displayed_dive.notes = strdup(notes.replace("VARIATIONS", QString(buf)).toUtf8().data()); Translating it avoids substitution and we just get the translated string. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to 'core/plannernotes.c')
-rw-r--r--core/plannernotes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c
index 131820a5b..a08bce88d 100644
--- a/core/plannernotes.c
+++ b/core/plannernotes.c
@@ -111,8 +111,8 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
}
if (prefs.display_variations)
- len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin VARIATIONS<br></div>"),
- diveplan_duration(diveplan));
+ len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin %s"),
+ diveplan_duration(diveplan), "VARIATIONS<br></div>");
else
len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin<br></div>"),
diveplan_duration(diveplan));