Files
UnrealEngineUWP/Engine/Source/Runtime/Projects/Private/LocalizationDescriptor.cpp
jamie dale 6e9d3680c9 Centralized the logic for forcing game localization data to load in an editor
This is now controlled by FTextLocalizationManager::ShouldForceLoadGameLocalization, which will return true in the following cases:
  * A cooked editor.
  * An uncooked editor with the game localization preview enabled, or with the CVar Localization.ForceLoadGameLocalizationInEditor set to true.

This is queried to add the ELocalizationLoadFlags::ForceLocalizedGame flag when loading localization data, and also by FLocalizationTargetDescriptor::ShouldLoadLocalizationTarget when deciding whether to load a game localization target for a plugin (which also allows plugins to work with the game localization preview).

#rb eric.boucher

[CL 34460891 by jamie dale in ue5-main branch]
2024-06-18 10:51:09 -04:00

9.4 KiB