fixed locale code, added locale files, made wx use locale files, fixed some bugs, and added platform-specific files to the main program