FLocTextHelper::ImportTranslation

Import a previously exported translation (generated using GetExportText) back into the archive.

Unreal Engine C++ API Reference > Developer > Localization > FLocTextHelper

References

   
Module Localization
Header /Engine/Source/Developer/Localization/Public/LocTextHelper.h
Include #include "LocTextHelper.h"
Source /Engine/Source/Developer/Localization/Private/LocTextHelper.cpp
bool ImportTranslation
(
    const [FString](API\Runtime\Core\Containers\FString) & InCulture,
    const [FLocKey](API\Runtime\Core\Internationalization\FLocKey) & InNamespace,
    const [FLocKey](API\Runtime\Core\Internationalization\FLocKey) & InKey,
    const [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FLocMetadataObject](API\Runtime\Core\Internationalization\FLocMetadataObject) > InKeyMetadataObj,
    const [FLocItem](API\Runtime\Core\Internationalization\FLocItem) & InSource,
    const [FLocItem](API\Runtime\Core\Internationalization\FLocItem) & InTranslation,
    const bool InOptional
)

Remarks

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.

Parameters

Name 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?

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library