Page 1 of 1

Localization issues ("Unknown key") with 0.15

Posted: Tue Apr 25, 2017 5:24 am
by canidae
Posting in this forum as I'm currently only interested to hear if anyone else are experiencing the same issue.

My mod (auto research) which works fine in 0.14 ends up with "Unknown key" for all localization strings in 0.15.1, and I've so far been unable to figure out why. This happens when the only change to the mod is to replace the "factorio_version" value from "0.14" to "0.15".
I've tried some minor changes, such as replacing "_" with "-" or even removing both "_" and "-" from the localization keys entirely, but to no avail. Peculiar thing is that another mod ("Pushbutton" by justarandomgeek) does not display the same issue, even though our setups are as far as I can tell practically identical.

Anyone else experiencing this?

Re: Localization issues ("Unknown key") with 0.15

Posted: Tue Apr 25, 2017 6:51 am
by Optera
I'm having the same problem. My locale paths are identical to base, no idea what changed.

Re: Localization issues ("Unknown key") with 0.15

Posted: Tue Apr 25, 2017 7:10 am
by canidae
Optera wrote:I'm having the same problem. My locale paths are identical to base, no idea what changed.
I see you made a couple mods. If you could link to one where you're experiencing this issue, then we can compare with auto research (source) and see if there's a pattern to what's causing it. As I mentioned, the Pushbutton mod does not display this issue, and the only difference I see from auto research is less use of "_" and "-" in localization keys (although I already briefly tested removing these, but my testing may have been inadequate).
There's one thing I haven't tested, though: I installed Pushbutton without ever having it installed before. Could there be some caching issues somewhere?

Re: Localization issues ("Unknown key") with 0.15

Posted: Tue Apr 25, 2017 7:45 am
by Optera
I figured it out. 0.15 no longer trims strings from whitespaces.

Code: Select all

wooden-chest = Wooden chest
now has to be

Code: Select all

wooden-chest=Wooden chest

Re: Localization issues ("Unknown key") with 0.15

Posted: Tue Apr 25, 2017 7:52 am
by canidae
Optera wrote:I figured it out. 0.15 no longer trims strings from whitespaces.

Code: Select all

wooden-chest = Wooden chest
now has to be

Code: Select all

wooden-chest=Wooden chest
That's... interesting. Good find, though!

Re: Localization issues ("Unknown key") with 0.15

Posted: Fri May 05, 2017 5:28 pm
by FuryoftheStars
Glad I found this. Was attempting to update some old 0.14 mods for personal use in 0.15 that the authors' did not appear to be updating and was running into the same trouble!