Navigation
API > API/Runtime > API/Runtime/Core
Interface for a localized text source. These can be registered with the text localization manager, and provide an extensible way to inject localized text to UE4.
| Name | ILocalizedTextSource |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Internationalization/ILocalizedTextSource.h |
| Include Path | #include "Internationalization/ILocalizedTextSource.h" |
Syntax
class ILocalizedTextSource
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ILocalizedTextSource() |
Internationalization/ILocalizedTextSource.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GetLocalizedCultureNames
(
const ELocalizationLoadFlags InLoadFlags, |
Populate a list of culture names that this localized text source has resource data for (ELocalizationLoadFlags controls which resources should be checked). | Internationalization/ILocalizedTextSource.h | |
bool GetNativeCultureName
(
const ELocalizedTextSourceCategory InCategory, |
Given a localization category, get the native culture for the category (if known). | Internationalization/ILocalizedTextSource.h | |
virtual int32 GetPriority() |
Get the priority of this source when building the complete list of translations to apply (higher numbers have a higher priority). | Internationalization/ILocalizedTextSource.h | |
void LoadLocalizedResources
(
const ELocalizationLoadFlags InLoadFlags, |
Load the localized resources from this localized text source for the given cultures into the given maps (ELocalizationLoadFlags controls which resources should be loaded). | Internationalization/ILocalizedTextSource.h | |
virtual EQueryLocalizedResourceResult QueryLocalizedResource
(
const ELocalizationLoadFlags InLoadFlags, |
Query a localized resource from this localized text source for the given cultures and ID into the given maps (ELocalizationLoadFlags controls which resources should be queried). | Internationalization/ILocalizedTextSource.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool ShouldLoadAdditional
(
const ELocalizationLoadFlags InLoadFlags |
Should we load additional (eg, plugin) data based on the given load flags and environment? | Internationalization/ILocalizedTextSource.h | |
static bool ShouldLoadEditor
(
const ELocalizationLoadFlags InLoadFlags |
Should we load editor data based on the given load flags and environment? | Internationalization/ILocalizedTextSource.h | |
static bool ShouldLoadEngine
(
const ELocalizationLoadFlags InLoadFlags |
Should we load engine data based on the given load flags and environment? | Internationalization/ILocalizedTextSource.h | |
static bool ShouldLoadGame
(
const ELocalizationLoadFlags InLoadFlags |
Should we load game data based on the given load flags and environment? | Internationalization/ILocalizedTextSource.h | |
static bool ShouldLoadNative
(
const ELocalizationLoadFlags InLoadFlags |
Should we load native data based on the given load flags and environment? | Internationalization/ILocalizedTextSource.h | |
static bool ShouldLoadNativeGameData
(
const ELocalizationLoadFlags InLoadFlags |
Should we load native game data based on the given load flags and environment? | Internationalization/ILocalizedTextSource.h |