Navigation
API > API/Runtime > API/Runtime/CoreUObject
Utility functions for dealing with localized package names
| Name | FPackageLocalizationUtil |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Internationalization/PackageLocalizationUtil.h |
| Include Path | #include "Internationalization/PackageLocalizationUtil.h" |
Syntax
struct FPackageLocalizationUtil
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static 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_ | Internationalization/PackageLocalizationUtil.h | |
static 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_ | Internationalization/PackageLocalizationUtil.h | |
static 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 | Internationalization/PackageLocalizationUtil.h | |
static 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_ | Internationalization/PackageLocalizationUtil.h | |
static 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_ | Internationalization/PackageLocalizationUtil.h | |
| 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") | Internationalization/PackageLocalizationUtil.h | ||
| 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) | Internationalization/PackageLocalizationUtil.h |