I was surprised to see on the Mac App Store that my app was localized to Japanese, German, and a few other languages, including Bengali! I looked in my resources folder and sure enough I see these folders:
bn.lproj
de.lproj
en.lproj
fr.lproj
…
That was with Carbon and RS2012R2.1. I’ve now built with Xojo Cocoa b21 with the same result. I haven’t added any localizations myself (default is English). I do have MacOSLib in my project, could that be the culprit? Does anyone know why these folders are there (what project settings would do this)? And more importantly, how to get rid of them? Thanks.
It sounds like there might be partial translations from a third party module, maybe the MacOSLib.
It would take you a long time to go through each constant and strip the translations, so the only option I can see is to delete the unwanted translations after build time.
Thanks. Assuming they’re not all in one place (I couldn’t find it if they are), rooting them out will be a problem because the next time I update MacOSLib they’ll return. So it seems the easiest solution is to open the Xojo build and remove all but en.lprj from the Resources folder. I don’t much about scripting, I’m afraid. Could someone give me a hint where to start on how to get this done in a post-build script?
dim dest as string
dest = CurrentBuildLocation +"/" + chr(34) + CurrentBuildAppName + ".app/Contents/Resources/" + chr(34)
call doshellcommand("rm " + dest + "bn.lprog")
call doshellcommand("rm " + dest + "de.lprog")