#include <stringresource.h>
Class that handles resources.
公共成员函数 |
|
MAXON_OBSERVABLE_STATIC (void, ObservableLanguageChanged,(const LanguageRef &oldLanguage, const LanguageRef &newLanguage), ObservableCombinerRunAllComponent) |
静态公共成员函数 |
|
static MAXON_METHOD LanguageRef | GetDefaultLanguage () |
static MAXON_METHOD LanguageRef | GetCurrentLanguage () |
static MAXON_METHOD LanguageRef | FindLanguage (const Id &identifier) |
static MAXON_METHOD Result < void > | SetCurrentLanguage (const LanguageRef &language) |
static MAXON_METHOD Result < BaseArray < LanguageRef > > | GetAllLanguages () |
static MAXON_METHOD String | LoadResourceString (const Id &scope, const InternedId &keyValue) |
私有成员函数 |
|
MAXON_INTERFACE_NONVIRTUAL ( Resource , MAXON_REFERENCE_NONE , "net.maxon.interface.resource") |
|
private |
|
static |
Returns the default language (normally english).
|
static |
Returns the language that is currently used.
|
static |
Finds for a given identifier (e.g. en-US) the language.
[in] | identifier | The language Id . |
|
static |
Sets the current language.
[in] | language | The language. |
|
static |
Retrieves an array of all available languages.
|
static |
Loads a string from the resource. Other than the member of LanguageRef this routine tries to load it from the current language first and -if that fails- from the default language.
[in] | scope | The resource scope of a resource symbol. |
[in] | keyValue | The value of a resource symbol. |
MAXON_OBSERVABLE_STATIC | ( | void | , |
ObservableLanguageChanged | , | ||
(const LanguageRef &oldLanguage, const LanguageRef &newLanguage) | , | ||
ObservableCombinerRunAllComponent | |||
) |