In my previous post I talked about how I was doing internationalization for Braid, and wanted to use a standard format, but ran into a bunch of hassle that seemed unnecessary for something so simple. Thatcher Ulrich suggested that I post the code under the MIT license, and that seems like a good idea, so here it is:
I actually haven’t tested it yet in the case where the endian-ness of the file is reversed. I am just kind of assuming that part works. I will be testing that within a week though (using the PC-generated .mo file on the Xbox 360) and if there is a bug then I will update the code.
Hopefully this is useful to someone!