FStringTableRegistry

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Internationalization/StringTableRegistry.h"

Syntax

class FStringTableRegistry

Remarks

Singleton registry of known string table instances

Constructors

No constructors are accessible with public or protected access.

Destructors

No destructors are accessible with public or protected access.

Functions

Name Description

Public function Const

void

 

EnumerateStringTables

(
    const TFunctionRef< bool...
)

Enumerate all registered string tables

Public function Const

FStringTable...

 

FindMutableStringTable

(
    const FName InTableId
)

Try and find a string table with the given ID

Public function Const

FStringTable...

 

FindStringTable

(
    const FName InTableId
)

Try and find a string table with the given ID

Public function Const

UStringTable...

 

FindStringTableAsset

(
    const FName InTableId
)

Try and find a string table asset with the given ID

Public function Const

bool

 

FindTableIdAndKey

(
    const FText& InText,
    FName& OutTableId,
    FString& OutKey
)

Given an FText, try and find the table ID and key for it

Public function Const

bool

 

FindTableIdAndKey

(
    const FTextDisplayStringRef& InDis...,
    FName& OutTableId,
    FString& OutKey
)

Given an FText display string, try and find the table ID and key for it

Public function Static

FStringTable...

 

Get()

Singleton accessor

Public function Const

FText

 

Internal_FindLocTableEntry

(
    const FName InTableId,
    const FString& InKey,
    const EStringTableLoadingPolicy InL...
)

Internal function called by LOCTABLE to find the entry with by the given key within the given string table (redirects, will load assets if needed, and returns a dummy FText if not found)

Public function

void

 

Internal_LocTableFromFile

(
    const FName InTableId,
    const FString& InNamespace,
    const FString& InFilePath,
    const FString& InRootPath
)

Internal function called by LOCTABLE_FROMFILE_X to create and register a FStringTable instance that has been populated from a file

Public function

void

 

Internal_NewLocTable

(
    const FName InTableId,
    const FString& InNamespace
)

Internal function called by LOCTABLE_NEW to create and register a new FStringTable instance

Public function

void

 

Internal_SetLocTableEntry

(
    const FName InTableId,
    const FString& InKey,
    const FString& InSourceString
)

Internal function called by LOCTABLE_SETSTRING to set the entry denoted by the given key to the given source string, within the given string table (table must have been registered already)

Public function

void

 

Internal_SetLocTableEntryMetaData

(
    const FName InTableId,
    const FString& InKey,
    const FName InMetaDataId,
    const FString& InMetaData
)

Internal function called by LOCTABLE_SETMETA to set meta-data for the entry denoted by the given key, within the given string table (table must have been registered already)

Public function

void

 

LogMissingStringTableEntry

(
    const FName InTableId,
    const FString& InKey
)

Log a missing string table entry (will only log each missing entry once to avoid spam)

Public function

void

 

RegisterStringTable

(
    const FName InTableId,
    FStringTableRef InTable
)

Register a string table with the given ID

Public function

void

 

UnregisterStringTable

(
    const FName InTableId
)

Unregister a string table with the given ID

Typedefs

Name

Description

FLocKeySet

Mapping from a table ID to a set of keys that we've logged warnings for

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