FLocTextHelper::FindKeysForLegacyTranslation

Given a culture, 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
bool FindKeysForLegacyTranslation
(
    const [FString](API\Runtime\Core\Containers\FString) & InCulture,
    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
) const

Remarks

Given a culture, 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
InCulture Culture to find the key for.
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