Navigation
API > API/Developer > API/Developer/Localization
References
| Module | Localization |
| Header | /Engine/Source/Developer/Localization/Public/UserGeneratedContentLocalization.h |
| Include | #include "UserGeneratedContentLocalization.h" |
Syntax
struct FUserGeneratedContentLocalizationDescriptor
Remarks
Minimal descriptor needed to generate a localization target for UGC localization.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FString > | CulturesToGenerate | The cultures that we should generate localization data for. | |
| FString | NativeCulture | The culture that the source text is authored in. | |
| EPortableObjectFormat | PoFormat | What format of PO file should we use? |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | FromJsonFile
(
const TCHAR* InFilename |
||
| bool | FromJsonObject
(
TSharedRef< const FJsonObject > InJsonObject |
Load the settings from a JSON object/file. | |
| bool | FromJsonString
(
const FString& InJsonString |
||
| void | InitializeFromProject
(
const ELocalizedTextSourceCategory LocalizationCategory |
Initialize the NativeCulture and CulturesToGenerate values based on the settings of the currently loaded Unreal project. | |
| bool | ToJsonFile
(
const TCHAR* InFilename |
||
| bool | ToJsonObject
(
TSharedPtr< FJsonObject >& OutJsonObject |
Save the settings to a JSON object/file. | |
| bool | ToJsonString
(
FString& OutJsonString |
||
| bool | Validate
(
const FUserGeneratedContentLocalizationDescriptor& DefaultDescriptor |
Validate that this descriptor isn't using cultures that aren't present in the CulturesToGenerate of the given default. |