cschreib / lxgui

Portable, real time, modular and data-driven GUI C++ library.
https://cschreib.github.io/lxgui
MIT License
73 stars 20 forks source link

Implement default language detection for Windows #95

Open cschreib opened 2 years ago

cschreib commented 2 years ago

Currently we rely on the LANGUAGE environment variable to get the default UI language (if not set by the user). This is standard on Linux, but not on Windows; there, if LANGUAGE is not set, we should fallback to WinAPI. See get_default_languages() in gui_localizer.cpp.