FLocTextHelper::GetExportText

Given some source text, work out which text should be exported (eg, when exporting to PO).

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

void GetExportText
(
    const FString & InCulture,
    const FLocKey & InNamespace,
    const FLocKey & InKey,
    const TSharedPtr< FLocMetadataObject > InKeyMetadataObj,
    const ELocTextExportSourceMethod InSourceMethod,
    const FLocItem & InSource,
    FLocItem & OutSource,
    FLocItem & OutTranslation
) const

Remarks

Given some source text, work out which text should be exported (eg, when exporting to PO).

Parameters

Parameter

Description

InCulture

Culture to find the translation for.

InNamespace

Namespace of the text.

InKey

Key of the text.

InKeyMetadataObj

Meta-data associated with the source text key.

InSourceMethod

What kind of "source" should we use when looking up translations?

InSource

The raw source text to use as a fallback.

OutSource

The source to export.

OutTranslation

The translation to export.

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