engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
FPackageLocalizationUtil结构体 参考

Utility functions for dealing with localized package names 更多...

#include <PackageLocalizationUtil.h>

静态 Public 成员函数

static bool ConvertLocalizedToSource (const FString &InLocalized, FString &OutSource)
 Converts a localized version of a package path to the source version (by removing /L10N/ from the package path, if present) Note: This does not check whether the source package exists 更多...
 
static bool ConvertSourceToLocalized (const FString &InSource, const FString &InCulture, FString &OutLocalized)
 Converts a source version of a package path to the localized version for the given culture (by adding /L10N/ to the package path) Note: This does not check whether the source package exists 更多...
 
static bool GetLocalizedRoot (const FString &InPath, const FString &InCulture, FString &OutLocalized)
 Given a package path, get the localized root package for the given culture (eg, if given "/Game/MyFolder/MyAsset" and a culture of "fr", this would return "/Game/L10N/fr") 更多...
 

详细描述

Utility functions for dealing with localized package names

成员函数说明

◆ ConvertLocalizedToSource()

static bool FPackageLocalizationUtil::ConvertLocalizedToSource ( const FString &  InLocalized,
FString &  OutSource 
)
static

Converts a localized version of a package path to the source version (by removing /L10N/ from the package path, if present) Note: This does not check whether the source package exists

参数
InLocalizedPath to the localized package.
OutSourcePath to the source package.
返回
True if the conversion happened, false otherwise

◆ ConvertSourceToLocalized()

static bool FPackageLocalizationUtil::ConvertSourceToLocalized ( const FString &  InSource,
const FString &  InCulture,
FString &  OutLocalized 
)
static

Converts a source version of a package path to the localized version for the given culture (by adding /L10N/ to the package path) Note: This does not check whether the source package exists

参数
InSourcePath to the source package.
InCultureCulture code to use.
OutLocalizedPath to the localized package.
返回
True if the conversion happened, false otherwise

◆ GetLocalizedRoot()

static bool FPackageLocalizationUtil::GetLocalizedRoot ( const FString &  InPath,
const FString &  InCulture,
FString &  OutLocalized 
)
static

Given a package path, get the localized root package for the given culture (eg, if given "/Game/MyFolder/MyAsset" and a culture of "fr", this would return "/Game/L10N/fr")

参数
InPathPackage path to use.
InCultureCulture code to use (if any).
OutLocalizedLocalized package root.
返回
True if the conversion happened, false otherwise

该结构体的文档由以下文件生成: