From f2035bcd797cab0b6be180b160bca3e768ccb652 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 7 Nov 2013 16:52:39 +0900 Subject: Don't translate the fake DC models Since the model name is written into the XML file it has to be a literal string that isn't translated. Otherwise a datafile written in one locale behaves differently when opened by Subsurface under a different locale. Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planner.c') diff --git a/planner.c b/planner.c index 74eadb7af..81f96937d 100644 --- a/planner.c +++ b/planner.c @@ -214,7 +214,7 @@ struct dive *create_dive_from_plan(struct diveplan *diveplan, const char **error dive->when = diveplan->when; dive->dc.surface_pressure.mbar = diveplan->surface_pressure; dc = &dive->dc; - dc->model = strdup(translate("gettextFromC","Simulated Dive")); + dc->model = "planned dive"; /* do not translate here ! */ dp = diveplan->dp; /* let's start with the gas given on the first segment */ -- cgit v1.2.3-70-g09d2