FLocTextHelper::AddSourceText

Add a new source text entry to the manifest.

Unreal Engine C++ API Reference > Developer > Localization > FLocTextHelper

References

   
Module Localization
Header /Engine/Source/Developer/Localization/Public/LocTextHelper.h
Include #include "LocTextHelper.h"
Source /Engine/Source/Developer/Localization/Private/LocTextHelper.cpp
bool AddSourceText
(
    const [FLocKey](API\Runtime\Core\Internationalization\FLocKey) & InNamespace,
    const [FLocItem](API\Runtime\Core\Internationalization\FLocItem) & InSource,
    const [FManifestContext](API\Runtime\Core\Internationalization\FManifestContext) & InContext,
    const [FString](API\Runtime\Core\Containers\FString) * InDescription
)

Remarks

Add a new source text entry to the manifest. Returns true if it was added successfully (or if a matching entry already exists), false if a duplicate entry was found with different text (an identity conflict).

Parameters

Name Description
InNamespace Namespace of the source text.
InSource Source text to add.
InContext Context information for the source text (including its key).
InDescription Optional description of the source text (for logging).

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library