![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include "Platform/Headers/PlatformDefines.h"
Go to the source code of this file.
Classes | |
struct | Divide::Locale::LanguageEntry |
class | Divide::Locale::LanguageData |
Namespaces | |
namespace | Divide |
Handle console commands that start with a forward slash. | |
namespace | Divide::Locale |
Macros | |
#define | DVD_LOCALE_H_ |
#define | LOCALE_STR(X) Locale::Get(_ID(X)) |
Functions | |
Divide::Locale::FWD_DECLARE_MANAGED_CLASS (LanguageData) | |
ErrorCode | Divide::Locale::Init (const char *newLanguage=DEFAULT_LANG) |
Reset everything and load the specified language file. | |
void | Divide::Locale::Clear () noexcept |
clear the language table | |
void | Divide::Locale::Idle () |
perform maintenance tasks | |
ErrorCode | Divide::Locale::ChangeLanguage (const char *newLanguage) |
void | Divide::Locale::SetChangeLanguageCallback (const DELEGATE< void, std::string_view > &cbk) |
Set a function to be called on each language change. | |
const Str< 64 > & | Divide::Locale::CurrentLanguage () noexcept |
Query the current language code to detect changes. | |
const char * | Divide::Locale::Get (U64 key, bool appendSection=true, const char *defaultValue=nullptr) |
Variables | |
constexpr const char * | Divide::Locale::DEFAULT_LANG = "enGB" |
constexpr const char *const | Divide::Locale::g_languageFileExtension = ".ini" |
#define DVD_LOCALE_H_ |
Definition at line 34 of file Localization.h.
#define LOCALE_STR | ( | X | ) | Locale::Get(_ID(X)) |
Definition at line 91 of file Localization.h.