mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
languages support (WIP)
This commit is contained in:
parent
0837cf4f03
commit
7bf70bb26e
21 changed files with 456 additions and 38 deletions
|
|
@ -20,6 +20,15 @@ path platform::get_controls_file() {
|
|||
return path(CONTROLS_FILE);
|
||||
}
|
||||
|
||||
std::string platform::detect_locale() {
|
||||
// TODO: implement
|
||||
std::string name = setlocale(LC_ALL, nullptr);
|
||||
if (name.find("ru_RU") != std::string::npos) {
|
||||
return "ru_RU";
|
||||
}
|
||||
return "en_US";
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
#include <Windows.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue