Size: 1579
Comment: Created description of getting different setup-Languages
|
← Revision 4 as of 2008-07-08 11:27:44 ⇥
Size: 1581
Comment: converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Extending Thomas' "extending"-Example from py2exe I customized my Setup-Routine. The consumers of my software are German speaking, so I needed a German Setup Assistent. So I added: | Extending Thomas' "extending"-Example from Py2Exe I customized my Setup-Routine. The consumers of my software are German speaking, so I needed a German Setup Assistent. So I added: |
Line 4: | Line 4: |
#!PYTHON | #!python |
Line 19: | Line 19: |
The Messagefile for German language I got from [http://www.jrsoftware.org/files/istrans/ InnoSetup Translations]. | The Messagefile for German language I got from [[http://www.jrsoftware.org/files/istrans/|InnoSetup Translations]]. |
Line 24: | Line 24: |
#!PYTHON | #!python |
Extending Thomas' "extending"-Example from Py2Exe I customized my Setup-Routine. The consumers of my software are German speaking, so I needed a German Setup Assistent. So I added:
1 def create(self, pathname="dist\\dbeitrag.iss"):
2 self.pathname = pathname
3 ofi = self.file = open(pathname, "w")
4 print >> ofi, "; WARNING: This script has been created by py2exe. Changes to this script"
5 print >> ofi, "; will be overwritten the next time py2exe is run!"
6
7 print >> ofi, """
8 [Languages]
9 Name: Deutsch; MessagesFile: "compiler:German-2-4.0.5.isl"
10 """
11
12 print >> ofi, r"[Setup]"
The Messagefile for German language I got from InnoSetup Translations. It is even possible to provide a multitude of tranlations, say
1 def create(self, pathname="dist\\dbeitrag.iss"):
2 self.pathname = pathname
3 ofi = self.file = open(pathname, "w")
4 print >> ofi, "; WARNING: This script has been created by py2exe. Changes to this script"
5 print >> ofi, "; will be overwritten the next time py2exe is run!"
6
7 print >> ofi, """
8 [Languages]
9 Name: Deutsch; MessagesFile: "compiler:German-2-4.0.5.isl"
10 Name: Italiano; MessagesFile: "compiler:Italian-12-4.0.8.isl"
11 Name: Ruski; MessagesFile: "compiler:Russian-17-4.0.3.isl"
12 Name: Norsk; MessagesFile: "compiler:NorwegianNynorsk-1-4.0.8.isl"
13 Name: Espagnol; MessagesFile: "compiler:Spanish-5-4.0.5.isl"
14 """
15
16 print >> ofi, r"[Setup]"