engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
ILocalizedTextSource类 参考abstract

Interface for a localized text source. 更多...

#include <ILocalizedTextSource.h>

Public 成员函数

virtual void GetLocalizedCultureNames (const ELocalizationLoadFlags InLoadFlags, TSet< FString > &OutLocalizedCultureNames)=0
 Populate a list of culture names that this localized text source has resource data for (ELocalizationLoadFlags controls which resources should be checked).
 
virtual bool GetNativeCultureName (const ELocalizedTextSourceCategory InCategory, FString &OutNativeCultureName)=0
 Given a localization category, get the native culture for the category (if known). 更多...
 
virtual int32 GetPriority () const
 Get the priority of this source when building the complete list of translations to apply (higher numbers have a higher priority).
 
virtual void LoadLocalizedResources (const ELocalizationLoadFlags InLoadFlags, TArrayView< const FString > InPrioritizedCultures, FTextLocalizationResource &InOutNativeResource, FTextLocalizationResource &InOutLocalizedResource)=0
 Load the localized resources from this localized text source for the given cultures into the given maps (ELocalizationLoadFlags controls which resources should be loaded).
 
virtual EQueryLocalizedResourceResult QueryLocalizedResource (const ELocalizationLoadFlags InLoadFlags, TArrayView< const FString > InPrioritizedCultures, const FTextId InTextId, FTextLocalizationResource &InOutNativeResource, FTextLocalizationResource &InOutLocalizedResource)
 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).
 

静态 Public 成员函数

static FORCEINLINE bool ShouldLoadAdditional (const ELocalizationLoadFlags InLoadFlags)
 Should we load additional (eg, plugin) data based on the given load flags and environment?
 
static FORCEINLINE bool ShouldLoadEditor (const ELocalizationLoadFlags InLoadFlags)
 Should we load editor data based on the given load flags and environment?
 
static FORCEINLINE bool ShouldLoadEngine (const ELocalizationLoadFlags InLoadFlags)
 Should we load engine data based on the given load flags and environment?
 
static FORCEINLINE bool ShouldLoadGame (const ELocalizationLoadFlags InLoadFlags)
 Should we load game data based on the given load flags and environment?
 
static FORCEINLINE bool ShouldLoadNative (const ELocalizationLoadFlags InLoadFlags)
 Should we load native data based on the given load flags and environment?
 
static FORCEINLINE bool ShouldLoadNativeGameData (const ELocalizationLoadFlags InLoadFlags)
 Should we load native game data based on the given load flags and environment?
 

详细描述

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.

成员函数说明

◆ GetNativeCultureName()

virtual bool ILocalizedTextSource::GetNativeCultureName ( const ELocalizedTextSourceCategory  InCategory,
FString &  OutNativeCultureName 
)
pure virtual

Given a localization category, get the native culture for the category (if known).

返回
True if the native culture was populated, or false if the native culture is unknown.

该类的文档由以下文件生成: