engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
FPolyglotTextData结构体 参考

Polyglot data that may be registered to the text localization manager at runtime. 更多...

#include <PolyglotTextData.h>

Public 成员函数

void AddLocalizedString (const FString &InCulture, const FString &InLocalizedString)
 Add a localized string to this polyglot data. 更多...
 
void ClearLocalizedStrings ()
 Clear the localized strings from this polyglot data.
 
 FPolyglotTextData ()=default
 Default constructor
 
 FPolyglotTextData (const ELocalizedTextSourceCategory &InCategory, const FString &InNamespace, const FString &InKey, const FString &InNativeString, const FString &InNativeCulture=FString())
 Construct this polyglot data with an identity, optionally immediately providing the source text and native culture.
 
ELocalizedTextSourceCategory GetCategory () const
 Get the category of this polyglot data.
 
void GetIdentity (FString &OutNamespace, FString &OutKey) const
 Get the identity of the text created from this polyglot data.
 
const FString & GetKey () const
 Get the key of the text created from this polyglot data.
 
TArray< FString > GetLocalizedCultures () const
 Get the localized cultures of this polyglot data.
 
bool GetLocalizedString (const FString &InCulture, FString &OutLocalizedString) const
 Get a localized string from this polyglot data.
 
const FString & GetNamespace () const
 Get the namespace of the text created from this polyglot data.
 
const FString & GetNativeCulture () const
 Get the native culture of this polyglot data.
 
const FString & GetNativeString () const
 Get the native string of this polyglot data.
 
FText GetText () const
 Get the text instance created from this polyglot data.
 
bool IsMinimalPatch () const
 Get whether this polyglot data is a minimal patch. 更多...
 
void IsMinimalPatch (const bool InIsMinimalPatch)
 Set whether this polyglot data is a minimal patch. 更多...
 
bool IsValid (FText *OutFailureReason=nullptr) const
 Is this polyglot data valid and can be registered with the text localization manager?
 
void RemoveLocalizedString (const FString &InCulture)
 Remove a localized string from this polyglot data.
 
FString ResolveNativeCulture () const
 Resolve the native culture of this polyglot data, either using the native culture if specified, or inferring it from the category.
 
void SetCategory (const ELocalizedTextSourceCategory InCategory)
 Set the category of this polyglot data. 更多...
 
void SetIdentity (const FString &InNamespace, const FString &InKey)
 Set the identity of the text created from this polyglot data. 更多...
 
void SetNativeCulture (const FString &InNativeCulture)
 Set the native culture of this polyglot data. 更多...
 
void SetNativeString (const FString &InNativeString)
 Set the native string of this polyglot data. 更多...
 

友元

struct Z_Construct_UScriptStruct_FPolyglotTextData_Statics
 Needed to avoid member access issues in UHT generated code
 

详细描述

Polyglot data that may be registered to the text localization manager at runtime.

注解
This struct is mirrored in NoExportTypes.h for UHT.

成员函数说明

◆ AddLocalizedString()

void FPolyglotTextData::AddLocalizedString ( const FString &  InCulture,
const FString &  InLocalizedString 
)

Add a localized string to this polyglot data.

注解
The native culture may also have a translation added via this function.

◆ IsMinimalPatch() [1/2]

bool FPolyglotTextData::IsMinimalPatch ( ) const

Get whether this polyglot data is a minimal patch.

参见
bIsMinimalPatch.

◆ IsMinimalPatch() [2/2]

void FPolyglotTextData::IsMinimalPatch ( const bool  InIsMinimalPatch)

Set whether this polyglot data is a minimal patch.

参见
bIsMinimalPatch.

◆ SetCategory()

void FPolyglotTextData::SetCategory ( const ELocalizedTextSourceCategory  InCategory)

Set the category of this polyglot data.

注解
This affects when and how the data is loaded into the text localization manager.

◆ SetIdentity()

void FPolyglotTextData::SetIdentity ( const FString &  InNamespace,
const FString &  InKey 
)

Set the identity of the text created from this polyglot data.

注解
The key must not be empty.

◆ SetNativeCulture()

void FPolyglotTextData::SetNativeCulture ( const FString &  InNativeCulture)

Set the native culture of this polyglot data.

注解
This may be empty, and if empty, will be inferred from the native culture of the text category.

◆ SetNativeString()

void FPolyglotTextData::SetNativeString ( const FString &  InNativeString)

Set the native string of this polyglot data.

注解
The native string must not be empty.

该结构体的文档由以下文件生成: