mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6bd5312dfa
commit
1095b78071
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prefs.display_variations)
|
if (prefs.display_variations)
|
||||||
len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin VARIATIONS<br></div>"),
|
len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin %s"),
|
||||||
diveplan_duration(diveplan));
|
diveplan_duration(diveplan), "VARIATIONS<br></div>");
|
||||||
else
|
else
|
||||||
len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin<br></div>"),
|
len += snprintf(buffer + len, sz_buffer - len, translate("gettextFromC", "Runtime: %dmin<br></div>"),
|
||||||
diveplan_duration(diveplan));
|
diveplan_duration(diveplan));
|
||||||
|
|
Loading…
Add table
Reference in a new issue