SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Some changes to StringsForCSFiles aren't applied when playing in non-English languages

Pathoschild opened this issue · 1 comments

commented

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

  1. Compile & install this sample mod.
  2. Launch SMAPI.
  3. On the title screen, change the language to Portuguese.
  4. 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.".

commented

Fixed via #766 for the upcoming SMAPI 3.14.0.