mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Minimum gas calculation: Change text colors for delta value output...
and adapt the strings for translation to s.th. which can be handled more easily. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
3eaff35ae6
commit
94e563a94e
1 changed files with 9 additions and 4 deletions
|
@ -418,14 +418,19 @@ void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_d
|
||||||
mingas_depth = get_depth_units(lastbottomdp->depth.mm, NULL, &depth_unit);
|
mingas_depth = get_depth_units(lastbottomdp->depth.mm, NULL, &depth_unit);
|
||||||
/* Print it to results */
|
/* Print it to results */
|
||||||
if (cyl->start.mbar > lastbottomdp->minimum_gas.mbar) snprintf(mingas, sizeof(mingas),
|
if (cyl->start.mbar > lastbottomdp->minimum_gas.mbar) snprintf(mingas, sizeof(mingas),
|
||||||
translate("gettextFromC", "<br> — <span style='color: %s;'>Minimum gas</span> (based on %.1fxSAC/+%dmin@%.0f%s): \
|
"<br> — <span style='color: %s;'>%s</span> (%s %.1fx%s/+%d%s@%.0f%s): \
|
||||||
%.0f%s/%.0f%s/<span style='color: %s;'>Δ:%+.0f%s</span>"),
|
%.0f%s/%.0f%s<span style='color: %s;'>/Δ:%+.0f%s</span>",
|
||||||
mingas_d_pressure > 0 ? "green" :"red",
|
mingas_d_pressure > 0 ? "green" :"red",
|
||||||
prefs.sacfactor / 100.0, prefs.problemsolvingtime,
|
translate("gettextFromC", "Minimum gas"),
|
||||||
|
translate("gettextFromC", "based on"),
|
||||||
|
prefs.sacfactor / 100.0,
|
||||||
|
translate("gettextFromC", "SAC"),
|
||||||
|
prefs.problemsolvingtime,
|
||||||
|
translate("gettextFromC", "min"),
|
||||||
mingas_depth, depth_unit,
|
mingas_depth, depth_unit,
|
||||||
mingas_volume, unit,
|
mingas_volume, unit,
|
||||||
mingas_pressure, pressure_unit,
|
mingas_pressure, pressure_unit,
|
||||||
mingas_d_pressure > 0 ? "green" :"red",
|
mingas_d_pressure > 0 ? "grey" :"indianred",
|
||||||
mingas_d_pressure, pressure_unit);
|
mingas_d_pressure, pressure_unit);
|
||||||
else snprintf(warning, sizeof(warning), "<br> — <span style='color: red;'>%s </span> %s",
|
else snprintf(warning, sizeof(warning), "<br> — <span style='color: red;'>%s </span> %s",
|
||||||
translate("gettextFromC", "Warning:"),
|
translate("gettextFromC", "Warning:"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue