On Tue May 27 20:25:50 2025 +0000, Elizabeth Figura wrote:
You should use FormatMessage and positional arguments.
I considered recommending this, but decided against it, specifically because it's an idiosyncratic format and passes arguments in an idiosyncratic way, making it less accessible and harder to read, and then doesn't even reduce lines of code. Why is this better?
The `%02X:%02X...` stuff should probably be formatted out of band, with only a standard `%s` in the format. But the goal is not to reduce lines of code, it's to make it possible to translate even in languages that need a different sentence structure.