TextNamespaceUtil::BuildFullNamespace

Given a text and package namespace, build the full version that should be used by the localization system.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Internationalization/TextNamespaceUtil.h

Include

#include "Internationalization/TextNamespaceUtil.h"

Source

/Engine/Source/Runtime/Core/Private/Internationalization/TextNamespaceUtil.cpp

Syntax

namespace TextNamespaceUtil
{
    FString TextNamespaceUtil::BuildFullNamespace
    (
        const FString & InTextNamespace,
        const FString & InPackageNamespace,
        const bool bAlwaysApplyPackageNamespace
    )
}

Remarks

Given a text and package namespace, build the full version that should be used by the localization system. This can also be used to "zero-out" the package namespace used by a text namespace (by passing an empty package namespace) while still leaving the package namespace markers in place.

Returns

The full namespace that should be used by the localization system.

Parameters

Parameter

Description

InTextNamespace

The namespace currently used by the FText instance.

InPackageNamespace

The namespace of the package owning the FText instance.

bAlwaysApplyPackageNamespace

If true, this will always apply the package namespace to the text namespace. If false, this will only apply the package namespace if the text namespace already contains package namespace makers.

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