Localization: Keep every source site for gathered text- #15170

Hi there,

Working with the localization system, we have a proposed improvement to the engine.

Currently, the text gather collapsed FTexts sharing a namespace + key + source text down to a single SourceLocation.

However, this behavior caused issues in our packaging: FLocalizationChunkDataGenerator uses it to decide which chunk a string ships in and whether it ships at all.

When the surviving path pointed at a package that was not cooked, the string was dropped from the build entirely - even though a package that WAS in the build still referenced it.

With this change, we are maintaining all source locations and adding some helpful debug dumping capabilities in the localization chunking code.

-> https://github.com/EpicGames/UnrealEngine/pull/15170

Please let us know what you think!

[Attachment Removed]

Hey,

Thanks for sending that in! Our localization folks are having a look now, we’ll respond with any follow-up on the pull request and see if we’re able to get it integrated.

[Attachment Removed]