From 1095b7807147fa6f6ad74ed3a3c9b65106ccf2a0 Mon Sep 17 00:00:00 2001 From: Salvador Cuñat Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: Planner: Do not translate VARIATIONS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/plannernotes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/plannernotes.c') 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
"), - diveplan_duration(diveplan)); + len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin %s"), + diveplan_duration(diveplan), "VARIATIONS
"); else len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin
"), diveplan_duration(diveplan)); -- cgit v1.2.3-70-g09d2