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.
| void FPolyglotTextData::AddLocalizedString | ( | const FString & | InCulture, |
| const FString & | InLocalizedString | ||
| ) |
Add a localized string to this polyglot data.
| bool FPolyglotTextData::IsMinimalPatch | ( | ) | const |
Get whether this polyglot data is a minimal patch.
| void FPolyglotTextData::IsMinimalPatch | ( | const bool | InIsMinimalPatch | ) |
Set whether this polyglot data is a minimal patch.
| void FPolyglotTextData::SetCategory | ( | const ELocalizedTextSourceCategory | InCategory | ) |
Set the category of this polyglot data.
Set the identity of the text created from this polyglot data.
| void FPolyglotTextData::SetNativeCulture | ( | const FString & | InNativeCulture | ) |
Set the native culture of this polyglot data.
| void FPolyglotTextData::SetNativeString | ( | const FString & | InNativeString | ) |
Set the native string of this polyglot data.