FLocTextHelper::FindKeysForLegacyTranslation

Given a manifest and (optional) native archive, try and find all the keys that the source string should use by checking the manifest.

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

References

   
Module Localization
Header /Engine/Source/Developer/Localization/Public/LocTextHelper.h
Include #include "LocTextHelper.h"
Source /Engine/Source/Developer/Localization/Private/LocTextHelper.cpp
static bool FindKeysForLegacyTranslation
(
    const [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< const [FInternationalizationManifest](API\Runtime\Core\Internationalization\FInternationalizationManifest) > & InManifest,
    const [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< const [FInternationalizationArchive](API\Runtime\Core\Internationalization\FInternationalizationArchive) > & InNativeArchive,
    const [FLocKey](API\Runtime\Core\Internationalization\FLocKey) & InNamespace,
    const [FString](API\Runtime\Core\Containers\FString) & InSource,
    const [TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [FLocMetadataObject](API\Runtime\Core\Internationalization\FLocMetadataObject) > InKeyMetadataObj,
    [TArray](API\Runtime\Core\Containers\TArray)< [FLocKey](API\Runtime\Core\Internationalization\FLocKey) > & OutKeys
)

Remarks

Given a manifest and (optional) native archive, try and find all the keys that the source string should use by checking the manifest.

This should only be used to upgrade old non-keyed archive entries when importing legacy data. True if keys were found, false otherwise.

Parameters

Name Description
InManifest The manifest to find the source string in.
InNativeArchive The native archive to test to see if the given source text is really a native translation.
InNamespace Namespace of the text.
InSource The source text to find the keys for.
InKeyMetadataObj Meta-data associated with the source text key.
OutKeys Array to fill with the found keys.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library