This interface is used to query and change MDL internationalization settings. More...
#include <imdl_i18n_configuration.h>
Public Member Functions | |
MDL Locale | |
virtual Sint32 | set_locale (const char *locale)=0 |
Specifies which locale to use to translate annotations. More... | |
virtual const char * | get_locale () const =0 |
Returns the locale used to translate annotations. More... | |
virtual const char * | get_system_locale () const =0 |
Returns the system locale. More... | |
virtual const char * | get_system_keyword () const =0 |
Returns the reserved string which can be used to fallback to system locale. More... | |
Public Member Functions inherited from mi::base::IInterface | |
virtual Uint32 | retain () const =0 |
Increments the reference count. More... | |
virtual Uint32 | release () const =0 |
Decrements the reference count. More... | |
virtual const IInterface * | get_interface (const Uuid &interface_id) const =0 |
Acquires a const interface from another. More... | |
template<class T> | |
const T * | get_interface () const |
Acquires a const interface from another. More... | |
virtual IInterface * | get_interface (const Uuid &interface_id)=0 |
Acquires a mutable interface from another. More... | |
template<class T> | |
T * | get_interface () |
Acquires a mutable interface from another. More... | |
virtual Uuid | get_iid () const =0 |
Returns the interface ID of the most derived interface. More... | |
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0xb28d4381, ... > | |
typedef Interface_declare< id1, ... > | Self |
Own type. More... | |
typedef Uuid_t< id1, ... > | IID |
Declares the interface ID (IID) of this interface. More... | |
Public Types inherited from mi::base::IInterface | |
typedef Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> | IID |
Declares the interface ID (IID) of this interface. More... | |
Static Public Member Functions inherited from mi::base::Interface_declare< 0xb28d4381, ... > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Static Public Member Functions inherited from mi::base::IInterface | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface. More... | |
This interface is used to query and change MDL internationalization settings.
Here is a sample pseudo-code to illustrate the usage of this component:
|
pure virtual |
Returns the locale used to translate annotations.
NULL
value if translation is disabled
|
pure virtual |
Returns the reserved string which can be used to fallback to system locale.
See mi::neuraylib::IMdl_i18n_configuration::set_locale() for usage.
|
pure virtual |
Returns the system locale.
NULL
if locale is not set.
|
pure virtual |
Specifies which locale to use to translate annotations.
This interface can be used to set the locale to use for translation, overwrite the system locale or disable any translation. By default, the locale defined by the system is used.
This function can only be called before the MDL SDK has been started.
locale | The locale to be used. Values:
|