diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2017-10-27 21:07:50 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-10-28 08:19:18 +0200 |
commit | 1095b7807147fa6f6ad74ed3a3c9b65106ccf2a0 (patch) | |
tree | af00cfe37bf46563771821a6d98a49ea757618ef | |
parent | 6bd5312dfa9e54fa05c231a671af666e1ffa4dad (diff) | |
download | subsurface-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>
-rw-r--r-- | core/plannernotes.c | 4 |
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)); |