Just to pleasure the translators, you might want to use `string_format` together with a translatable string:
```
if (m.has_flag(...)) {
   dump << string_format(_("%s is almost at the top of the %s"), name.c_str(), terrain.c_str());
} else {
  ... at the bottom...
```