FLocTextHelper::FindKeysForLegacyTranslation

Given a culture, try and find all the keys that the source string should use by checking the manifest.

Windows
MacOS
Linux

References

Module

Localization

Header

/Engine/Source/Developer/Localization/Public/LocTextHelper.h

Include

#include "LocTextHelper.h"

Source

/Engine/Source/Developer/Localization/Private/LocTextHelper.cpp

Syntax

bool FindKeysForLegacyTranslation
(
    const FString & InCulture,
    const FLocKey & InNamespace,
    const FString & InSource,
    const TSharedPtr< FLocMetadataObject > InKeyMetadataObj,
    TArray< 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.

Returns

True if keys were found, false otherwise.

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss