Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Internationalization
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 |
namespace TextNamespaceUtil
{
FText TextNamespaceUtil&58;&58;CopyTextToPackage
&40;
const FText & InText,
const FString & InPackageNamespace,
const ETextCopyMethod InCopyMethod,
const bool bAlwaysApplyPackageNamespace
&41;
}
Remarks
Make a copy of the given text that's valid to use with the given package namespace, optionally preserving its existing key.
Returns the result verbatim if the given package namespace is empty, or if there is no change when applying the package namespace to the text. A copy of the given text that's valid to use with the given package namespace.
Parameters
| Name | Description |
|---|---|
| InText | The current FText instance. |
| InPackageNamespace | The namespace of the destination package of the FText instance. |
| InCopyMethod | The method that should be used to copy the FText instance. |
| bAlwaysApplyPackageNamespace | If true, this will always apply the package namespace to the text namespace (always treated as Verbatim when USE_STABLE_LOCALIZATION_KEYS is false). If false, this will only apply the package namespace if the text namespace already contains package namespace makers. |