Lysa  0.0
Lysa 3D Engine
Locale Class Reference

Detailed Description

Localization helper

Classes

struct  Translate
 

Static Public Member Functions

static void load (const std::string &file="default")
 
static void setLocale (const std::string &lang)
 
static const auto & getLocale ()
 

Member Function Documentation

static const auto& getLocale ( )
inlinestatic

Returns the current locale

static void load ( const std::string &  file = "default")
static

Loads a translation file for the current locale

Parameters
filefile name
static void setLocale ( const std::string &  lang)
static

Sets the current locale. Can load missing files when switching from another locale.

Parameters
langlangage code