ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
Localisation helper
Static Public Member Functions | |
static void | load (const string &file="default") |
static void | setLocale (const string &lang) |
static const auto & | getLocale () |
static string | getDefaultLocale () |
Static Public Attributes | |
static const string | LOCALE_DIRECTORY = "app://locales" |
|
static |
Returns the OS specific user locale
|
inlinestatic |
Returns the current locale
|
static |
Loads a translation file for the current locale
file | file name |
|
static |
Sets the current locale. Can load missing files when switching from another locale.
lang | langage code |
|
inlinestatic |
Default directory for translation files