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