maxon.LanguageInterface¶
Description¶
Methods Signature¶
  | 
|
Returns the fallback language of this language.  | 
|
Returns the identifier of a language.  | 
|
  | 
Returns the real (country-specific) name of a language.  | 
  | 
Loads a string from the resource.  | 
  | 
Methods Definition¶
- 
static 
LanguageInterface.Alloc(source_location=None)¶ 
- 
LanguageInterface.GetFallbackLanguage()¶ Returns the fallback language of this language.
- Returns
 None if the language has no fallback language (e.g. “en-US” has none because it’s the root of all languages).
- Return type
 
- 
LanguageInterface.GetIdentifier()¶ Returns the identifier of a language.
- Returns
 The name.
- Return type
 
- 
LanguageInterface.GetName()¶ Returns the real (country-specific) name of a language.
- Returns
 The name.
- Return type
 str
- 
LanguageInterface.LoadResourceString(scope, keyValue)¶ Loads a string from the resource.
- Parameters
 scope (
maxon.Id) – The resource scope of a resource symbol.keyValue (
maxon.InternedId) – The value of a resource symbol.
- Returns
 String.
- Return type
 str
- 
LanguageInterface.ToString()¶