Re: [PATCH][PR server/24377] Fix mixing English and system default languages in error messages on Windows

Владимир Мартьянов
2019-03-28T20:36:21Z

сб, 23 мар. 2019 г. в 16:11, Eli Zaretskii <eliz@gnu.org>:
> Thanks, but isn't this a step backward? Would it make sense to have
> the hard-coded messages be translated instead? Or is that impossible
> for some reason?

There is _nl_locale_name function in intl/localename.c, it could be
used to retrieve current locale name, which, in turn, could be used to
translate messages in FormatMessage. But when I include gettextP.h in
win32-low.c I got an error:
In file included from win32-low.c:38:0:
../../intl/gettextP.h:71:8: error: inline variables are only available
with -std=c++1z or -std=gnu++1z [-Werror]

I can't realise what's wrong