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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-07 16:52:39 +09:00
parent f11b2274ec
commit f2035bcd79
3 changed files with 5 additions and 6 deletions

View file

@ -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 */