maxon.LanguageInterface

Description

Inheritance diagram

Inheritance

Child Class:

  • maxon.LanguageRef

Methods Signature

Alloc([source_locaton])

GetFallbackLanguage()

Returns the fallback language of this language.

GetIdentifier()

Returns the identifier of a language.

GetName()

Returns the real (country-specific) name of a language.

LoadResourceString(scope, keyValue)

Loads a string from the resource.

ToString()

Methods Definition

static LanguageInterface.Alloc(source_locaton=C(335))
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

maxon.LanguageRef

LanguageInterface.GetIdentifier()

Returns the identifier of a language.

Returns

The name.

Return type

maxon.Id

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()