unreal.PolyglotTextData

class unreal.PolyglotTextData(category=LocalizedTextSourceCategory.GAME, native_culture='', namespace='', key='', native_string='', localized_strings={}, is_minimal_patch=False)

Bases: unreal.StructBase

Polyglot data that may be registered to the text localization manager at runtime. note: This struct is mirrored in PolyglotTextData.h

C++ Source:

  • Module: CoreUObject

  • File: NoExportTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • category (LocalizedTextSourceCategory): [Read-Write] The category of this polyglot data. note: This affects when and how the data is loaded into the text localization manager.

  • is_minimal_patch (bool): [Read-Write] True if this polyglot data is a minimal patch, and that missing translations should be ignored (falling back to any LocRes data) rather than falling back to the native string.

  • key (str): [Read-Write] The key of the text created from this polyglot data. note: This must not be empty.

  • localized_strings (Map(str, str)): [Read-Write] Mapping between a culture code and its localized string. note: The native culture may also have a translation in this map.

  • namespace (str): [Read-Write] The namespace of the text created from this polyglot data. note: This may be empty.

  • native_culture (str): [Read-Write] The native culture of this polyglot data. note: This may be empty, and if empty, will be inferred from the native culture of the text category.

  • native_string (str): [Read-Write] The native string for this polyglot data. note: This must not be empty (it should be the same as the originally authored text you are trying to replace).

property category

[Read-Write] The category of this polyglot data. note: This affects when and how the data is loaded into the text localization manager.

Type

(LocalizedTextSourceCategory)

property is_minimal_patch

[Read-Write] True if this polyglot data is a minimal patch, and that missing translations should be ignored (falling back to any LocRes data) rather than falling back to the native string.

Type

(bool)

property key

[Read-Write] The key of the text created from this polyglot data. note: This must not be empty.

Type

(str)

property localized_strings

[Read-Write] Mapping between a culture code and its localized string. note: The native culture may also have a translation in this map.

Type

(Map(str, str))

property namespace

[Read-Write] The namespace of the text created from this polyglot data. note: This may be empty.

Type

(str)

property native_culture

[Read-Write] The native culture of this polyglot data. note: This may be empty, and if empty, will be inferred from the native culture of the text category.

Type

(str)

property native_string

[Read-Write] The native string for this polyglot data. note: This must not be empty (it should be the same as the originally authored text you are trying to replace).

Type

(str)