G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FPolyglotTextData Struct Reference

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

Public Member Functions

Functions
FPolyglotTextData & opAssign (FPolyglotTextData Other)

Public Attributes

PolyglotData
FString NativeCulture
 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.
FString Namespace
 The namespace of the text created from this polyglot data. @note This may be empty.
FString Key
 The key of the text created from this polyglot data. @note This must not be empty.
FString NativeString
 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).
TMap< FString, FString > LocalizedStrings
 Mapping between a culture code and its localized string. @note The native culture may also have a translation in this map.
bool bIsMinimalPatch
 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.
ELocalizedTextSourceCategory Category
 The category of this polyglot data. @note This affects when and how the data is loaded into the text localization manager.

Detailed Description

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

Member Function Documentation

◆ opAssign()

FPolyglotTextData & opAssign ( FPolyglotTextData Other)

Member Data Documentation

◆ bIsMinimalPatch

bool bIsMinimalPatch

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.

◆ Category

The category of this polyglot data. @note This affects when and how the data is loaded into the text localization manager.

◆ Key

FString Key

The key of the text created from this polyglot data. @note This must not be empty.

◆ LocalizedStrings

TMap<FString,FString> LocalizedStrings

Mapping between a culture code and its localized string. @note The native culture may also have a translation in this map.

◆ Namespace

FString Namespace

The namespace of the text created from this polyglot data. @note This may be empty.

◆ NativeCulture

FString NativeCulture

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.

◆ NativeString

FString NativeString

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