When Deutsche Bahn says a train has been replaced by an Ersatzzug, what do they mean?
In German it literally means "replacement train", but that suggests a service has been cancelled and a new one has been put in place which has a different route, goes at slightly different times or is a different standard of service to that expected (e.g. IC instead of ICE), but it is intended to be useful to the same passengers. This isn't always the case though. I've been on an Ersatzzug for an ICE, which was also an ICE and went from the same origin to the same destination stopping in the same places - why would that be?
Ersatz means replacement.
Hence ersatz kaffee (this was for many decades the most commonly heard use of Ersatz by English speakers)
And bahnersatzverhekr (sometime rendered as the simpler 'busersatz') - for Rail Replacement Bus service
.
Before the new Bombardier carts appeared on SBB IR/IC services, there were sets of Re4/4II+EWI/EWII push-pull stock kept as standbys at strategic locations around the network (Zürich, Basel, Lausanne etc) for use as needed.
The disappearance of the old EW sets was not IMHO directly related to the arrival of new stock - just an economic decision (and there are various types of 'bombardier cart (sic) anyway). The sets in question were themselves known as 'alibizug'. Once deployed the service was an 'ersatzverkehr'
In Switzerland, it generally means a different unit to the one planned too - sometimes a loco-hauled spare set substituting for what's usually a multiple unit.
Apart from "it may look different to the train you're expecting and seat reservations might not be present", I think Ersatzzug also tells passengers that if they're say at B on an A - B - C train and an Ersatzzug is announced to C, then the train might not have come from A, so if you're waiting for someone supposed to arrive on that train you might be out of luck.
The most common 'ersatz' provision in Switzerland is to cover trains arriving from outside the country. For years and years
the most regular place this happened was Brig and Chiasso, where a domestic trainset was provided to run in the path of a late running train from Italy. Nowadays, German and French trains are often just as late, so 'ersatz' has become more common on other Swiss borders.
I most often see ersatz at Zurich HB or Basel SBB. Very frequently Paris - Basel - Zurich TGVs and ICEs from Germany omit the Basel - Zurich section to make up time, necessitating 'ersatz' provision.