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.

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

static bool FindKeysForLegacyTranslation
(
    const TSharedRef< const FInternationalizationManifest > & InManifest,
    const TSharedPtr< const FInternationalizationArchive > & InNativeArchive,
    const FLocKey & InNamespace,
    const FString & InSource,
    const TSharedPtr< FLocMetadataObject > InKeyMetadataObj,
    TArray< 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.

Returns

True if keys were found, false otherwise.

Parameters

Parameter

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.

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