Internationalization

Windows
MacOS
Linux

Classes

Name

Description

Public class

FPackageLocalizationCache

Common implementation for the package localization cache

Public class

FPackageLocalizationCultureCache

Package localization cache for a specific culture (may contain a chain of cultures internally based on their priority)

Public class

FPackageLocalizationManager

Singleton class that manages localized package data.

Public struct

FPackageLocalizationUtil

Utility functions for dealing with localized package names

Public class

IPackageLocalizationCache

Interface for types that provide caching for package localization.

Functions

Name Description

Public function

void

 

StabilizeLocalizationKeys::StabilizeLocalizationKeysForProperty

(
    FProperty* InProp,
    void* InPropData,
    const FString& InNamespace,
    const FString& InKeyRoot,
    const bool bAppendPropertyNameToKey
)

Convert any text that has been initialized from a raw string to have a deterministic key based on the given key root and the property name.

Public function

void

 

StabilizeLocalizationKeys::StabilizeLocalizationKeysForStruct

(
    UStruct* InStruct,
    void* InStructData,
    const FString& InNamespace,
    const FString& InKeyRoot
)

Walk through the struct and convert any text that has been initialized from a raw string to have a deterministic key based on the given key root and the property name.

Public function

void

 

TextNamespaceUtil::ClearPackageNamespace

(
    UPackage* InPackage
)

Given a package, clear any namespace it has set for localization.

Public function

void

 

TextNamespaceUtil::ClearPackageNamespace

(
    UObject* InObject
)

Given an object, clear any namespace it has set for localization (from its owner package).

Public function

FString

 

TextNamespaceUtil::EnsurePackageNamespace

(
    UPackage* InPackage
)

Given a package, try and ensure it has a namespace it should use for localization.

Public function

FString

 

TextNamespaceUtil::EnsurePackageNamespace

(
    UObject* InObject
)

Given an object, try and ensure it has a namespace it should use for localization (from its owner package).

Public function

void

 

TextNamespaceUtil::ForcePackageNamespace

(
    UPackage* InPackage,
    const FString& InNamespace
)

Given a package, force it to have the given namespace for localization (even if a transient package!).

Public function

void

 

TextNamespaceUtil::ForcePackageNamespace

(
    UObject* InObject,
    const FString& InNamespace
)

Given an object, force it to have the given namespace for localization (from its owner package, even if a transient package!).

Public function

FString

 

TextNamespaceUtil::GetPackageNamespace

(
    const UPackage* InPackage
)

Given a package, try and get the namespace it should use for localization.

Public function

FString

 

TextNamespaceUtil::GetPackageNamespace

(
    const UObject* InObject
)

Given an object, try and get the namespace it should use for localization (from its owner package).

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