orx  1.14
Portable Game Engine
OrxLocale

Data Structures

struct  orxLOCALE_EVENT_PAYLOAD
 

Enumerations

enum  orxLOCALE_EVENT { orxLOCALE_EVENT_SELECT_LANGUAGE = 0, orxLOCALE_EVENT_SET_STRING, orxLOCALE_EVENT_NUMBER, orxLOCALE_EVENT_NONE = orxENUM_NONE }
 

Functions

orxDLLAPI void orxFASTCALL orxLocale_Exit ()
 
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetCurrentLanguage (const orxSTRING _zGroup)
 
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetKey (orxU32 _u32KeyIndex, const orxSTRING _zGroup)
 
orxDLLAPI orxU32 orxFASTCALL orxLocale_GetKeyCount (const orxSTRING _zGroup)
 
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetLanguage (orxU32 _u32LanguageIndex)
 
orxDLLAPI orxU32 orxFASTCALL orxLocale_GetLanguageCount ()
 
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetString (const orxSTRING _zKey, const orxSTRING _zGroup)
 
orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasLanguage (const orxSTRING _zLanguage)
 
orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasString (const orxSTRING _zKey, const orxSTRING _zGroup)
 
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_Init ()
 
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SelectLanguage (const orxSTRING _zLanguage, const orxSTRING _zGroup)
 
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SetString (const orxSTRING _zKey, const orxSTRING _zValue, const orxSTRING _zGroup)
 
orxDLLAPI void orxFASTCALL orxLocale_Setup ()
 

Detailed Description

Localization module Module that handles localized strings

Enumeration Type Documentation

Event enum

Enumerator
orxLOCALE_EVENT_SELECT_LANGUAGE 

Event sent when selecting a language

orxLOCALE_EVENT_SET_STRING 

Event sent when setting a string

orxLOCALE_EVENT_NUMBER 
orxLOCALE_EVENT_NONE 

Definition at line 52 of file orxLocale.h.

Function Documentation

orxDLLAPI void orxFASTCALL orxLocale_Exit ( )

Exits from the Locale Module

orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetCurrentLanguage ( const orxSTRING  _zGroup)

Gets current language

Parameters
[in]_zGroupConcerned group, orxNULL for default/fallback one
Returns
Current selected language
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetKey ( orxU32  _u32KeyIndex,
const orxSTRING  _zGroup 
)

Gets key for the current language at the given index

Parameters
[in]_u32KeyIndexIndex of the desired key
[in]_zGroupConcerned group, orxNULL for default/fallback one
Returns
orxSTRING if exist, orxNULL otherwise
orxDLLAPI orxU32 orxFASTCALL orxLocale_GetKeyCount ( const orxSTRING  _zGroup)

Gets key count for the current language

Parameters
[in]_zGroupConcerned group, orxNULL for default/fallback one
Returns
Key count the current language if valid, 0 otherwise
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetLanguage ( orxU32  _u32LanguageIndex)

Gets language at the given index

Parameters
[in]_u32LanguageIndexIndex of the desired language
Returns
orxSTRING if exist, orxSTRING_EMPTY otherwise
orxDLLAPI orxU32 orxFASTCALL orxLocale_GetLanguageCount ( )

Gets language count

Returns
Number of languages defined
orxDLLAPI const orxSTRING orxFASTCALL orxLocale_GetString ( const orxSTRING  _zKey,
const orxSTRING  _zGroup 
)

Reads a string in the current language for the given key

Parameters
[in]_zKeyKey name
[in]_zGroupConcerned group, orxNULL for default/fallback one
Returns
The value
orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasLanguage ( const orxSTRING  _zLanguage)

Has given language? (if not correctly defined, false will be returned)

Parameters
[in]_zLanguageConcerned language
Returns
orxTRUE / orxFALSE
orxDLLAPI orxBOOL orxFASTCALL orxLocale_HasString ( const orxSTRING  _zKey,
const orxSTRING  _zGroup 
)

Has string for the given key?

Parameters
[in]_zKeyKey name
[in]_zGroupConcerned group, orxNULL for default/fallback one
Returns
orxTRUE / orxFALSE
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_Init ( )

Initializes the Locale Module

Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SelectLanguage ( const orxSTRING  _zLanguage,
const orxSTRING  _zGroup 
)

Selects current working language

Parameters
[in]_zLanguageLanguage to select
[in]_zGroupConcerned group, orxNULL for default/fallback one
orxDLLAPI orxSTATUS orxFASTCALL orxLocale_SetString ( const orxSTRING  _zKey,
const orxSTRING  _zValue,
const orxSTRING  _zGroup 
)

Writes a string in the current language for the given key

Parameters
[in]_zKeyKey name
[in]_zValueValue
[in]_zGroupConcerned group, orxNULL for default/fallback one
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE
orxDLLAPI void orxFASTCALL orxLocale_Setup ( )

Locale module setup


Generated for orx by doxygen 1.8.11