Hi,
Thanks for the update and the test results. They narrow things down a lot.
What the results tell us
- The new key works with the same source and translations. So the String Table asset, the FText and your translations are fine. The problem is tied to the *old ID* (namespace + key) in the game’s runtime localization table.
- `-culture=keys` shows the expected key and namespace, and the text shows the source string rather than `<MISSING STRING TABLE ENTRY>`. So the String Table entry resolves and a lookup happens.
- The widget text works in some levels but not in one. Since nothing assigns it at runtime, something that loads with that level changes what the runtime table holds for that ID.
- The `…/UI/zh/UI.locres could not be opened for reading!` lines are harmless. For zh-Hans and zh-Hant the engine also tries the parent culture `zh` and logs a plain Log line when that file doesn’t exist. The same goes for the Engine and OnlineSubsystem messages for cultures they don’t ship. It would only matter if `UI/zh-Hans/UI.locres` or `UI/zh-Hant/UI.locres` itself failed to open.
How the runtime table works (5.6)
The game keeps one entry per namespace + key: a display string plus a hash of the source string it was translated from. A text uses that entry only if the hash matches its current source; otherwise it shows its source. There’s no fallback to another .locres. Entries can be added or replaced after startup, without any log, by:
- Chunked localization (`LocalizationTargetsToChunk` in Project Settings > Packaging). Each chunk gets its own `<Target>_<ChunkId>.locres`, loaded when that chunk’s pak is mounted. That load replaces existing entries for the same IDs, and nothing is logged. The pak may mount only when content for a given level is needed, which would make the result depend on the level.
- Plugin or Game Feature plugin localization. Mounting only adds new IDs. Unmounting removes the IDs that came from that plugin’s target, and they don’t come back until the next full refresh (e.g. a language change).
- Higher-priority overrides: text replacement or hotfix entries in config, or polyglot text data. They win over the .locres, and if their stored source differs, the text silently falls back to the source.
- The “Text translation conflict” warning only fires for two entries at the same priority, so none of the cases above logs anything.
There’s also a compile-time case to rule out. When the .locres is compiled, a translation is only used if the archive entry’s source exactly matches the manifest source (case, whitespace, line endings). Otherwise the source string itself is written as the “translation”, and nothing is logged. This would explain why re-entering the strings under a new key fixed it. The .PO files can look correct while the .archive is off.
Tests
All tests run in a Development or Test packaged build, in a target language (e.g. `-culture=zh-Hans`), in the failing level. For the widget, run them in the failing level and in a working level, and compare.
1. `-culture=zh-Hans -LEETIFYUnlocalized`: are the broken strings themselves leetified? This is the key question.
- Not leetified (plain source text): the runtime table holds an entry for that ID and its display string is the source text. Go to tests 2 and 3.
- Leetified: the entry is missing or was rejected by the source hash check. Test 2 tells which.
- About the many leetified dynamic texts: only texts that do a lookup and find no valid entry are leetified. A formatted or rich text is leetified piece by piece (pattern or argument). If you ran this test in your native language, those texts are simply missing from the native .locres. This is worth a separate look, but it’s likely unrelated to this issue.
2. Look at the live entry: `Localization.DumpLiveTable -Key=<OldKey>` (double-tap the console key to see the output). Note that the command uses only the first argument it finds, in the order Namespace, Key, DisplayString, DumpFile, so pass a single argument.
- Entry shown with the source text as DisplayString: something wrote the source for that ID. Check your chunk .locres and archives (tests 4 and 5).
- Entry shown with the translation, but the text still shows the source: a source hash mismatch. Look for a higher-priority override (config text replacements, polyglot data, a plugin’s own localization target).
- No entry: it was never loaded, or it was removed (e.g. by unmounting a plugin or Game Feature).
3. Before and after the level loads:
- Run `Localization.DumpLiveTable -DumpFile=C:/Temp/LiveTable_Before.txt` in a working level.
- Load the failing level and run `Localization.DumpLiveTable -DumpFile=C:/Temp/LiveTable_After.txt`.
- Diff the two files on the affected keys.
- Also launch with `-LogCmds=“LogTextLocalizationManager Verbose, LogPluginManager Verbose”` and look for these lines while the failing level loads:
- `Request to load localization data for chunk …`
- `Patching LocRes data for N entries`
- `Mounting plugin localization for …`
4. Configuration checks:
- Is `LocalizationTargetsToChunk` set? If so, is there a `Content/Localization/<Target>_<N>/` folder in the build, and does its .locres contain the old keys?
- Do any plugins or Game Features have their own localization targets?
- Is there a `TextReplacements` (or similar) section in your config?
- Does your import tool write anything besides the .archive and .po files?
5. Archive check: compare the old key’s Source in `Content/Localization/<Target>/<culture>/<Target>.archive` and in the native-culture archive with the .manifest source, byte for byte. Watch for trailing spaces, `\r\n` vs `\n`, non-breaking spaces and letter case.
6. Optional A/B test: `Localization.SetDisplayString -Namespace=<ns> -Key=<OldKey> -DisplayString=“TEST”`. Don’t pass SourceString; it then keeps the stored hash.
- The text changes to TEST: the ID and hash are fine, and the display string data is the problem.
- It doesn’t change: the source hash or the ID differs.
7. Widget case: with a small Blueprint, print `GetTextId` (Kismet Text Library) for that Text Block in a working level and in the failing level. A different ID means the failing level uses a different copy of the text, e.g. a copy serialized into another package. Also check the gather log for warnings that two packages “have the same localization ID”. If you see one, use Asset Localization > Reset Localization ID on the duplicated asset and re-gather.
Engine changes that may apply, depending on the results
- If test 7 shows that the widget’s text ID in the failing level differs from the gathered one, see CL 55973658 (//UE6/Main; also in //UE5/Main via CL 58084546), “Preserve authored FText namespace/keys during cook”. Before this change, some cook paths could give regular texts a new key while duplicating or reinstancing objects, so the cooked key no longer matched the gathered one. It changes 3 files (`DuplicateDataReader.cpp`, `TextProperty.cpp`, `UnrealEngine.cpp`) and can be integrated locally.
- CL 50970452 (//UE5/Main, also in //UE5/Release-5.8), which I mentioned last time, doesn’t apply: it only matters when `<MISSING STRING TABLE ENTRY>` is displayed.
Please send us the results of tests 1, 2 and 7, and the before/after dumps and log from test 3. With those we should be able to identify what overrides these entries and how to clean it up. Your existing keys should keep working.
Best regards,
Martin
[Attachment Removed]