#include <stringresource.h>
Class that handles resources.
|
| MAXON_OBSERVABLE_STATIC (void, ObservableLanguageChanged,(const LanguageRef &oldLanguage, const LanguageRef &newLanguage), ObservableCombinerRunAllComponent) |
|
◆ MAXON_INTERFACE_NONVIRTUAL()
◆ GetDefaultLanguage()
Returns the default language (normally english).
- Returns
- The language.
◆ GetCurrentLanguage()
Returns the language that is currently used.
- Returns
- The language.
◆ FindLanguage()
Finds for a given identifier (e.g. en-US) the language.
- Parameters
-
[in] | identifier | The language Id. |
- Returns
- The language.
◆ SetCurrentLanguage()
Sets the current language.
- Parameters
-
[in] | language | The language. |
- Returns
- OK on success.
◆ GetAllLanguages()
Retrieves an array of all available languages.
- Returns
- Array with all languages on success.
◆ LoadResourceString()
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.
- Parameters
-
[in] | scope | The resource scope of a resource symbol. |
[in] | keyValue | The value of a resource symbol. |
- Returns
- String.
◆ WriteLanguagePrf()
Writes the language preference file.
- Parameters
-
[in] | language | The language. |
- Returns
- OK on success.
◆ MAXON_OBSERVABLE_STATIC()
MAXON_OBSERVABLE_STATIC |
( |
void |
, |
|
|
ObservableLanguageChanged |
, |
|
|
(const LanguageRef &oldLanguage, const LanguageRef &newLanguage) |
, |
|
|
ObservableCombinerRunAllComponent |
|
|
) |
| |