Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | List of all members
ApplicationLanguageSwitcher Class Reference

The ApplicationLanguageSwitcher class - this class is used for temporary language changes, when only a single or a few texts needs to be translated to default (startup) language This class is a singleton, which enables you to use it wherever it is needed (ApplicationLanguageManager is accessible only within application states, but has same functionality to set temporary language). More...

#include <ApplicationLanguageSwitcher.h>

Inheritance diagram for ApplicationLanguageSwitcher:
Inheritance graph
[legend]
Collaboration diagram for ApplicationLanguageSwitcher:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Member Functions

bool SetDefaultTemporaryLanguage ()
 SetDefaultTemporaryLanguage - this method is used to temporary change current language to default language This (temporary language) is primary used to non-UI interface language changes, e.g. printed ticket texts translations. Global language automatically translates UI. More...
 
bool ResetTemporaryLanguageToGlobal ()
 ResetTemporaryLanguageToGlobal - method resets previously set temporary language to global language. More...
 

Detailed Description

The ApplicationLanguageSwitcher class - this class is used for temporary language changes, when only a single or a few texts needs to be translated to default (startup) language This class is a singleton, which enables you to use it wherever it is needed (ApplicationLanguageManager is accessible only within application states, but has same functionality to set temporary language).

Member Function Documentation

bool ApplicationLanguageSwitcher::ResetTemporaryLanguageToGlobal ( )

ResetTemporaryLanguageToGlobal - method resets previously set temporary language to global language.

Returns
true on success, false otherwise
bool ApplicationLanguageSwitcher::SetDefaultTemporaryLanguage ( )

SetDefaultTemporaryLanguage - this method is used to temporary change current language to default language This (temporary language) is primary used to non-UI interface language changes, e.g. printed ticket texts translations. Global language automatically translates UI.

Returns
true on success, false otherwise

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