Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Internationalization
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/Internationalization/PackageLocalizationUtil.h |
| Include | #include "Internationalization/PackageLocalizationUtil.h" |
Syntax
struct FPackageLocalizationUtil
Remarks
Utility functions for dealing with localized package names
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ConvertLocalizedToSource
(
const FStringView& InLocalized, |
Converts a localized version of a package path to the source version (by removing /L10N/` from the package path) Note: This does not check whether the source package exists_ | |
| bool | ConvertSourceToLocalized
(
const FStringView& InSource, |
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_ | |
| bool | ConvertSourceToRegexLocalized
(
const FStringView& InSource, |
Converts a source version of a package path to the regex localized version (by adding "/L10N/" + "*" to the package path) Note: This does not check whether the source package exists | |
| void | ConvertToSource
(
const FStringView& InPath, |
Convert a package path to its source version (by removing /L10N/` from the package path, if present) Note: This does not check whether the source package exists_ | |
| bool | ExtractCultureFromLocalized
(
const FStringView& InLocalized, |
Extract a culture code from a localized version of a package path (by finding /L10N/` from the package path, if present) Note: This does not check whether the source package exists_ | |
| bool | GetLocalizedRoot
(
const FString& InPath, |
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") | |
| void | GetLocalizedVariantsAbsolutePaths
(
const FStringView& InSource, |
Given a package path, returns all localized variants absolute paths found on disk Note: There is a similar function to check in Revision Control (if not on disk) (see USourceControlHelpers::GetLocalizedVariantsAbsolutePaths) |