Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Internationalization
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Internationalization/PolyglotTextData.h |
| Include | #include "Internationalization/PolyglotTextData.h" |
Syntax
struct FPolyglotTextData
Remarks
Polyglot data that may be registered to the text localization manager at runtime.
This struct is mirrored in NoExportTypes.h for UHT.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor | |||
FPolyglotTextData
(
const ELocalizedTextSourceCategory& InCategory, |
Construct this polyglot data with an identity, optionally immediately providing the source text and native culture. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddLocalizedString
(
const FString& InCulture, |
Add a localized string to this polyglot data. | |
| void | Clear the localized strings from this polyglot data. | ||
| ELocalizedTextSourceCategory | GetCategory () |
Get the category of this polyglot data. | |
| void | GetIdentity
(
FString& OutNamespace, |
Get the identity of the text created from this polyglot data. | |
| const FString & | GetKey () |
Get the key of the text created from this polyglot data. | |
| TArray< FString > | Get the localized cultures of this polyglot data. | ||
| bool | GetLocalizedString
(
const FString& InCulture, |
Get a localized string from this polyglot data. | |
| const FString & | GetNamespace () |
Get the namespace of the text created from this polyglot data. | |
| const FString & | Get the native culture of this polyglot data. | ||
| const FString & | Get the native string of this polyglot data. | ||
| FText | GetText () |
Get the text instance created from this polyglot data. | |
| bool | Get whether this polyglot data is a minimal patch. | ||
| void | IsMinimalPatch
(
const bool InIsMinimalPatch |
Set whether this polyglot data is a minimal patch. | |
| bool | 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 | 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, |
Set the identity of the text created from this polyglot data. The key must not be empty. | |
| 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. The native string must not be empty. |