Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CLanguages Class Reference

#include <CLanguages.hpp>

Static Public Member Functions

static void prepareLanguage (iv::eLanguage selectedLanguage)
 
static void setSystemLanguage (iv::eLanguage eLanguage)
 
static std::string getCodeLanguage (iv::eLanguage eLanguage)
 
static std::string getCodeMessages (iv::eLanguage eLanguage)
 
static std::string getCodeMonetary (iv::eLanguage eLanguage)
 
static std::string getCodeNumeric (iv::eLanguage eLanguage)
 
static std::string getTextLanguage (iv::eLanguage eLanguage)
 
static std::string getImageLanguage (iv::eLanguage eLanguage)
 
static iv::eLanguage getLanguageEnumBySystemOne ()
 
static std::string getTranslate (iv::eLanguage language, const std::map< iv::eLanguage, std::string > &translates)
 
static std::string getExactTranslate (iv::eLanguage language, const std::map< iv::eLanguage, std::string > &translates)
 

Static Public Attributes

static const std::string kEnglishCode = "en"
 
static const std::string kSpanishCode = "es"
 
static const std::string kGermanCode = "de"
 
static const std::string kFrenchCode = "fr"
 
static const std::string kPortugueseCode = "pt"
 

Member Function Documentation

◆ getCodeLanguage()

std::string CLanguages::getCodeLanguage ( iv::eLanguage eLanguage)
static

Given a language, this function searches its structure for code language and returns it

Parameters
eLanguageLanguage to search its code language
Returns
Return code language for language given as a param

◆ getCodeMessages()

std::string CLanguages::getCodeMessages ( iv::eLanguage eLanguage)
static

Given a language, this function searches its structure for message locale code and returns it

Parameters
eLanguageLanguage to search its message locale code
Returns
Return message locale code for language given as a param

◆ getCodeMonetary()

std::string CLanguages::getCodeMonetary ( iv::eLanguage eLanguage)
static

Given a language, this function searches its structure for monetary locale code and returns it

Parameters
eLanguageLanguage to search its monetary locale code
Returns
Return monetary locale code for language given as a param

◆ getCodeNumeric()

std::string CLanguages::getCodeNumeric ( iv::eLanguage eLanguage)
static

Given a language, this function searches its structure for numeric locale code and returns it

Parameters
eLanguageLanguage to search its numeric locale code
Returns
Return numeric locale code for language given as a param

◆ getExactTranslate()

std::string CLanguages::getExactTranslate ( iv::eLanguage language,
const std::map< iv::eLanguage, std::string > & translates )
static

◆ getImageLanguage()

std::string CLanguages::getImageLanguage ( iv::eLanguage eLanguage)
static

◆ getLanguageEnumBySystemOne()

iv::eLanguage CLanguages::getLanguageEnumBySystemOne ( )
static

◆ getTextLanguage()

std::string CLanguages::getTextLanguage ( iv::eLanguage eLanguage)
static

◆ getTranslate()

std::string CLanguages::getTranslate ( iv::eLanguage language,
const std::map< iv::eLanguage, std::string > & translates )
static

◆ prepareLanguage()

void CLanguages::prepareLanguage ( iv::eLanguage selectedLanguage)
static

Prepare language to later execute application

◆ setSystemLanguage()

void CLanguages::setSystemLanguage ( iv::eLanguage eLanguage)
static

Change language of the system

Parameters
eLanguageLanguage to change for

Member Data Documentation

◆ kEnglishCode

const std::string CLanguages::kEnglishCode = "en"
static

◆ kFrenchCode

const std::string CLanguages::kFrenchCode = "fr"
static

◆ kGermanCode

const std::string CLanguages::kGermanCode = "de"
static

◆ kPortugueseCode

const std::string CLanguages::kPortugueseCode = "pt"
static

◆ kSpanishCode

const std::string CLanguages::kSpanishCode = "es"
static

The documentation for this class was generated from the following files: