Module |
|
Header |
/Engine/Source/Developer/Localization/Public/LocTextHelper.h |
Include |
#include "LocTextHelper.h" |
class FLocTextHelper
High-level access to the non-compiled localization resources (manifests and archives) in a way that abstracts some of their quirks. Each instance gives access to a single localization target consisting of a single manifest and several archives (a native archive, and one for each foreign culture).
Name | Description | |
---|---|---|
|
FLocTextHelper ( |
Construct an empty helper. |
|
FLocTextHelper ( |
Construct a helper for the given target information. |
Name | Description | ||
---|---|---|---|
|
AddConflict ( |
Add a new conflict entry. |
|
|
AddDependency |
Attempt to add a manifest dependency. |
|
|
AddSourceText ( |
Add a new source text entry to the manifest. |
|
|
AddTranslation ( |
Add a new translation to the given archive. |
|
|
AddTranslation ( |
Add a new translation to the given archive. |
|
|
EnumerateSourceTexts ( |
||
|
EnumerateTranslations ( |
||
|
TSharedPtr< ... |
FindDependencyEntry |
Find an dependency entry using its namespace and key. |
|
TSharedPtr< ... |
FindDependencyEntry ( |
Find an existing dependency entry using its namespace and context. |
|
FindKeysForLegacyTranslation ( |
Given a manifest and (optional) native archive, try and find all the keys that the source string should use by checking the manifest. |
|
|
FindKeysForLegacyTranslation ( |
Given a culture, try and find all the keys that the source string should use by checking the manifest. |
|
|
TSharedPtr< ... |
FindSourceText |
Find an existing source text entry using its namespace and key. |
|
TSharedPtr< ... |
FindSourceText ( |
Find an existing source text entry using its namespace and context. |
|
TSharedPtr< ... |
FindTranslation ( |
Find an existing translation entry from its source text. |
|
GetAllCultures ( |
||
|
GetConflictReport() |
Get a conflict report that can be easily saved as a report summary. |
|
|
GetExportText ( |
Given some source text, work out which text should be exported (eg, when exporting to PO). |
|
|
const TArray... |
GetForeignCultures() |
|
|
TSharedPtr< ... |
GetLocFileNotifies() |
|
|
const FStrin... |
GetNativeCulture() |
|
|
ELocTextPlat... |
GetPlatformSplitMode() |
How are we splitting localization data per-platform? |
|
const TArray... |
GetPlatformsToSplit() |
Get the platforms names that should be split, based on the active split mode. |
|
GetRuntimeText ( |
Given some source text, work out which text is our current "best" translation (eg, when compiling to LocRes). |
|
|
const FStrin... |
GetTargetName() |
|
|
const FStrin... |
GetTargetPath() |
|
|
FLocTextWord... |
GetWordCountReport |
Get a word count report for the current state of the manifest and archives. |
|
HasArchive ( |
Check to see whether we've loaded the given archive (native or foreign). |
|
|
HasForeignArchive ( |
Check to see whether we've loaded the given foreign archive. |
|
|
HasManifest() |
Check to see whether we've loaded the manifest. |
|
|
HasNativeArchive() |
Check to see whether we've loaded the native archive. |
|
|
ImportTranslation ( |
Import a previously exported translation (generated using GetExportText) back into the archive. |
|
|
LoadAll ( |
Attempt to load (or create) the manifest and all archive files specified during construction. |
|
|
LoadAllArchives ( |
Attempt to load (or create) all archive files. |
|
|
LoadArchive ( |
Attempt to load (or create) an foreign file (native or foreign) from the given file path. |
|
|
LoadArchive ( |
Attempt to load (or create) an archive file (native or foreign). |
|
|
LoadForeignArchive ( |
Attempt to load (or create) a foreign archive file from the given file path. |
|
|
LoadForeignArchive ( |
Attempt to load (or create) a foreign archive file. |
|
|
LoadManifest ( |
Attempt to load (or create) the manifest file. |
|
|
LoadManifest ( |
Attempt to load (or create) the manifest file from the given file path. |
|
|
LoadNativeArchive ( |
Attempt to load (or create) the native archive file. |
|
|
LoadNativeArchive ( |
Attempt to load (or create) the native archive file from the given file path. |
|
|
SanitizeLogOutput ( |
Sanitize any output from the given string that may cause the build machine to generate erroneous errors. |
|
|
SaveAll ( |
Attempt to save the manifest and all archive files specified during construction. |
|
|
SaveAllArchives ( |
Attempt to save all (native and foreign) archive files. |
|
|
SaveArchive |
Attempt to save an archive file (native or foreign). |
|
|
SaveArchive |
Attempt to save an archive file (native or foreign) to the given file path. |
|
|
SaveConflictReport |
Save the conflict report summary to disk. |
|
|
SaveForeignArchive |
Attempt to save a foreign archive file. |
|
|
SaveForeignArchive |
Attempt to save a foreign archive file to the given file path. |
|
|
SaveManifest |
Attempt to save the manifest file to the given file path. |
|
|
SaveManifest ( |
Attempt to save the manifest file. |
|
|
SaveNativeArchive ( |
Attempt to save the native archive file. |
|
|
SaveNativeArchive |
Attempt to save the native archive file to the given file path. |
|
|
SaveWordCountReport |
Save the word count report for the current state of the manifest and archives to disk. |
|
|
ShouldSplitPlatformData() |
Are we splitting localization data per-platform? |
|
|
TrimArchive ( |
Trim the given archive by remove any entries that no longer exist in the manifest. |
|
|
TrimManifest() |
Trim the currently loaded manifest by remove all dependency entries from it. |
|
|
UpdateSourceText ( |
Update an existing source text entry in the manifest. |
|
|
UpdateTranslation ( |
Update an existing translation in the given archive. |
|
|
UpdateTranslation ( |
Update an existing translation in the given archive. |
Name |
Description |
---|---|
FEnumerateSourceTextsFuncPtr |
Enumerate all the source texts in the manifest, optionally skipping those entries from a dependent manifest. |
FEnumerateTranslationsFuncPtr |
Enumerate all the translations for the given culture. |