From: Adrian J. <adr...@es...> - 2015-01-30 09:27:19
|
Hi, I am trying to change the language that is set in the exe, the default appears as 'English (United States)'. Google turned up this info from the mailing list from 2010 http://comments.gmane.org/gmane.comp.python.py2exe/4128 It describes patching the py2exe module resources/VersionInfo.py and change the resource_bytes() function: [copied from post] # 040904B0/0x04B00409 is en_US # 080904B0/0x04B00809 is en_UK def resource_bytes(self): vs = VS_VERSIONINFO(self.version, [StringFileInfo("080904B0", self.strings), VarFileInfo(0x04B00809)]) return str(vs) This seems straight forward however I do not want to patch the module as this is not a good long term strategy with py2exe upgrades etc. Pending `official` language support, I presume it's possible to subclass VersionInfo _somewhere_ and override `resource_bytes`. Does anyone know any more or can offer any pointers? Is there already an accepted approach of achieving this? Many thanks, Adrian |