summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-07 16:52:39 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-07 16:52:39 +0900
commitf2035bcd797cab0b6be180b160bca3e768ccb652 (patch)
tree0371585caf90d058594963e9c5f72806b6ffec33 /planner.c
parentf11b2274ec8921235ff534a6f138a3f69b69531a (diff)
downloadsubsurface-f2035bcd797cab0b6be180b160bca3e768ccb652.tar.gz
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>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
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 */