From 9b8fc9f64a78ac9c80f071a87e15da301375cede Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Sun, 16 Apr 2017 18:57:26 +0200 Subject: Show % after Büllmanns GFs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2 strings in the planner output showed based on "Bühlmann ZHL-16B with GFLow = " gradient factors without % after the factor. While this is fine for an abbreviated form like GF 40/80, this looks strange for a verbose sentence like the 2 corrected ones. Signed-off-by: Jan Mulder --- core/planner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/planner.c') diff --git a/core/planner.c b/core/planner.c index e57bd10ed..27c179508 100644 --- a/core/planner.c +++ b/core/planner.c @@ -827,7 +827,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool /* Print the settings for the diveplan next. */ if (decoMode() == BUEHLMANN){ - snprintf(temp, sz_temp, translate("gettextFromC", "Deco model: Bühlmann ZHL-16C with GFLow = %d and GFHigh = %d"), + snprintf(temp, sz_temp, translate("gettextFromC", "Deco model: Bühlmann ZHL-16C with GFLow = %d%% and GFHigh = %d%%"), diveplan->gflow, diveplan->gfhigh); } else if (decoMode() == VPMB){ int temp_len; @@ -840,7 +840,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool , diveplan->eff_gfhigh); } else if (decoMode() == RECREATIONAL){ - snprintf(temp, sz_temp, translate("gettextFromC", "Deco model: Recreational mode based on Bühlmann ZHL-16B with GFLow = %d and GFHigh = %d"), + snprintf(temp, sz_temp, translate("gettextFromC", "Deco model: Recreational mode based on Bühlmann ZHL-16B with GFLow = %d%% and GFHigh = %d%%"), diveplan->gflow, diveplan->gfhigh); } len += snprintf(buffer + len, sz_buffer - len, "
%s
",temp); -- cgit v1.2.3-70-g09d2