The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: uci on March 28, 2018, 07:26:04 PM

Title: Schiffhalt muss im Water liegen!
Post by: uci on March 28, 2018, 07:26:04 PM
I get this message in German no matter what language I set in game: "Schiffhalt muss im Water liegen!"

I think a record in all translation files is wrong:

"Schiffhalt muss im\nWasser liegen!\n" should be replaced by "Schiffhalt muss im\nWater liegen!\n", or vice versa in the source code.
Title: Re: Schiffhalt muss im Water liegen!
Post by: Frank on March 28, 2018, 08:22:52 PM
https://simutrans-germany.com/translator/script/edit.php?obj_id=30532 (https://simutrans-germany.com/translator/script/edit.php?obj_id=30532)

\trunk\dataobj\schedule.h

(243):  const char *get_error_msg() const { return "Schiffhalt muss im\nWater liegen!\n"; }

...
public:
  ship_schedule_t() {}
  ship_schedule_t(loadsave_t* const file) : schedule_t(file) {}
  schedule_t* copy() { schedule_t *s = new ship_schedule_t(); s->copy_from(this); return s; }
  const char *get_error_msg() const { return "Schiffhalt muss im\nWater liegen!\n"; }

  schedule_type get_type() const { return ship_schedule; }

  waytype_t get_waytype() const { return water_wt; }
};
...


Rename in Code or Translator?

I think that comes from replacing german with english at Wasser <-> Water.
Title: Re: Schiffhalt muss im Water liegen!
Post by: prissi on March 29, 2018, 02:24:08 AM
Replacing in Simutrasn is the more sensible option, imho ... (Neverminding the wrong German spelling of Schiffshalt.) Done at -r8417