Module |
|
Header |
/Engine/Source/Developer/Localization/Public/LocTextHelper.h |
Include |
#include "LocTextHelper.h" |
Source |
/Engine/Source/Developer/Localization/Private/LocTextHelper.cpp |
bool ImportTranslation
(
const FString & InCulture,
const FLocKey & InNamespace,
const FLocKey & InKey,
const TSharedPtr< FLocMetadataObject > InKeyMetadataObj,
const FLocItem & InSource,
const FLocItem & InTranslation,
const bool InOptional
)
Import a previously exported translation (generated using GetExportText) back into the archive. This will either update an existing translation, or add a new one if it can't be found.
Returns true if it was imported successfully, false otherwise.
Parameter |
Description |
---|---|
InCulture |
Culture to update the translation for. |
InNamespace |
Namespace of the text. |
InKey |
Key of the text. |
InKeyMetadataObj |
Meta-data associated with the source text key. |
InSource |
Source text to key against. |
InTranslation |
Translated text to set. |
InOptional |
Is this translation optional? |