Utility functions for dealing with localized package names
更多...
#include <PackageLocalizationUtil.h>
|
| 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
- 参数
-
| InLocalized | Path to the localized package. |
| OutSource | Path 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
- 参数
-
| InSource | Path to the source package. |
| InCulture | Culture code to use. |
| OutLocalized | Path 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")
- 参数
-
| InPath | Package path to use. |
| InCulture | Culture code to use (if any). |
| OutLocalized | Localized package root. |
- 返回
- True if the conversion happened, false otherwise
该结构体的文档由以下文件生成:
- PackageLocalizationUtil.h