This interface is used to query and change MDL internationalization settings. More...
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. See mi::neuraylib::IMdl_i18n_configuration::set_locale() for usage. More... | |
Additional Inherited Members | |
![]() | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, IInterface > | Self |
Own type. More... | |
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > | IID |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. 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, overwite 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 API has been started.
locale | The locale to be used. Values:
|