751
Beginner and other Nonsense / Re: STICKY: Random News
« on: April 28, 2014, 06:47:03 PM »
Found a surprising bug today around locale selection. It turned out that do_use_builtin_english_by_default was being applied to Japanese computers!
I don't know how this managed to go so long without being caught by myself, but it was exacerbated by the fact that if there is not a LANG folder then the system locale is used, which is more often the case for me. Plus if there is a Japanese translation file in the LANG folder the bug was well hidden also.
So it basically wasn't setup correctly, but appeared to be correct under both of those conditions. It's only with an empty dummy LANG folder that the problem revealed itself.
Today I also added a trick to the Ex.ini file, so you can reset an extension to its default behavior (which can sometimes be more complex than a simple default value) by writing the extension with a . (period) directly in front of it. I've wanted to do this for a while, but could not arrive at a syntax that agreed with me.
I call this hiding the extension. Like on many computers files that begin with a period (.) are hidden. And I plan on adding the same functionality for whole sections at some point, but there's no rush.
PS: I also changed the English for the Arrange Inventory screen to say Pack and Unpack when asking for confirmation.
I don't know how this managed to go so long without being caught by myself, but it was exacerbated by the fact that if there is not a LANG folder then the system locale is used, which is more often the case for me. Plus if there is a Japanese translation file in the LANG folder the bug was well hidden also.
So it basically wasn't setup correctly, but appeared to be correct under both of those conditions. It's only with an empty dummy LANG folder that the problem revealed itself.
Today I also added a trick to the Ex.ini file, so you can reset an extension to its default behavior (which can sometimes be more complex than a simple default value) by writing the extension with a . (period) directly in front of it. I've wanted to do this for a while, but could not arrive at a syntax that agreed with me.
I call this hiding the extension. Like on many computers files that begin with a period (.) are hidden. And I plan on adding the same functionality for whole sections at some point, but there's no rush.
PS: I also changed the English for the Arrange Inventory screen to say Pack and Unpack when asking for confirmation.