Some changes to StringsForCSFiles aren't applied when playing in non-English languages
Pathoschild opened this issue · 1 comments
If a mod changes Data/StringsFromFiles
using IAssetEditor
when the player is playing in non-English, the changes aren't immediately applied.
Known facts
- Switching to English correctly shows the custom English text, but switching back to non-English shows the default text again (even though the editor is called and sets the correct value).
- If the player loads a save then exits to the title screen, the change is applied correctly from that point on.
Repro steps
- Compile & install this sample mod.
- Launch SMAPI.
- On the title screen, change the language to Portuguese.
- In the SMAPI console, run
patch export Strings/StringsFromCSFiles
.
Expected result: the exported Tool.cs.14317
key should contain "Obrigado, e... Aqui está. Espero que goste e aproveite a melhoria!".
Actual result: the exported Tool.cs.14317
key contains the default text: "Obrigado. Vou começar assim que puder. Isso deve ficar pronto em alguns dias.".
Fixed via #766 for the upcoming SMAPI 3.14.0.