|
wavelength 1.0.0
|
Text of the user interface in the console language. More...
#include <locale.h>
Public Member Functions | |
| Locale () | |
| Construct a locale with no text loaded. | |
| virtual | ~Locale () |
| Release the text through Terminate(). | |
| void | Init (const char *pszLanguage) |
| Build the text table of one language from the configuration. | |
| void | Terminate () |
| Release the text table, if one is loaded. | |
| const char * | Localize (const char *pszToken, bool bFail) |
| Look up the text of a token in the language Init() loaded. | |
| DataArray * | GetStrings () const |
| int | GetFileCount () const |
| Locale () | |
| Create a locale with no table. | |
| virtual | ~Locale () |
| Release the table. | |
| void | Terminate () |
| Release the table. | |
Text of the user interface in the console language.
The localized text of the control.
The RTTI includes the class name. Two data words precede the vptr at +0x08. The one instance is TheLocale.
The RTTI records the class. The object is 0xc bytes. The control never loads a table, so only Terminate() is recovered, and the word at +0x08 has no known use.
| Locale::Locale | ( | ) |
Construct a locale with no text loaded.
|
virtual |
Release the text through Terminate().
|
inline |
Create a locale with no table.
|
virtual |
Release the table.
| void Locale::Init | ( | const char * | pszLanguage | ) |
Build the text table of one language from the configuration.
| pszLanguage | The language key GetSystemLanguage() reports. |
| void Locale::Terminate | ( | ) |
Release the text table, if one is loaded.
| const char * Locale::Localize | ( | const char * | pszToken, |
| bool | bFail ) |
Look up the text of a token in the language Init() loaded.
| pszToken | The token. |
| bFail | Treat a missing token as an error. |
|
inline |
| void Locale::Terminate | ( | ) |
Release the table.