maxon.LazyLanguageDictionaryInterface¶
Description¶
Interface to manage lazy loading of maxon.LanguageDictionary for description strings.
Methods Signature¶
|
Helper function to return the default value for an empty cow object. |
|
Returns the description of the given language. |
Returns all descriptions to export. |
|
|
Loads all string resources from the meta data into memory (e.g. |
|
Stores the description for the given language. |
|
Sets the asset from which the definition shall be loaded lazily. |
Methods Definition¶
-
static
LazyLanguageDictionaryInterface.DefaultValuePtr(*args)¶ Helper function to return the default value for an empty cow object.
- Returns
An empty
maxon.LazyLanguageDictionary.- Return type
-
LazyLanguageDictionaryInterface.Get(languageId)¶ Returns the description of the given language.
- Parameters
languageId (
maxon.Id) – Id of the language to load.- Returns
maxon.DataDictionaryon success.- Return type
-
LazyLanguageDictionaryInterface.GetMetaData()¶ Returns all descriptions to export.
- Returns
maxon.DataDictionaryon success.- Return type
-
LazyLanguageDictionaryInterface.LoadAll()¶ Loads all string resources from the meta data into memory (e.g. for copying data).
-
LazyLanguageDictionaryInterface.Set(languageId, description)¶ Stores the description for the given language.
- Parameters
languageId (
maxon.Id) – Id of the language to load.description (
maxon.DataDictionary) –maxon.DataDictionaryto store.
-
LazyLanguageDictionaryInterface.SetMetaData(meta, path)¶ Sets the asset from which the definition shall be loaded lazily.
- Parameters
meta (
maxon.AssetMetaData) – Asset meta data to use for loading the strings.path (str) – Relative path of the description within the asset.