equal
deleted
inserted
replaced
22 pass |
22 pass |
23 return None |
23 return None |
24 |
24 |
25 def OpenPDFDocIndex(index, cwd): |
25 def OpenPDFDocIndex(index, cwd): |
26 if not os.path.isfile(os.path.join(cwd, "doc","301_v04000201.pdf")): |
26 if not os.path.isfile(os.path.join(cwd, "doc","301_v04000201.pdf")): |
27 return """No documentation file available. |
27 return _("""No documentation file available. |
28 Please read can festival documentation to know how to obtain one.""" |
28 Please read can festival documentation to know how to obtain one.""") |
29 try: |
29 try: |
30 if index in DS301_PDF_INDEX: |
30 if index in DS301_PDF_INDEX: |
31 if wx.Platform == '__WXMSW__': |
31 if wx.Platform == '__WXMSW__': |
32 readerpath = get_acroversion() |
32 readerpath = get_acroversion() |
33 readerexepath = os.path.join(readerpath,"AcroRd32.exe") |
33 readerexepath = os.path.join(readerpath,"AcroRd32.exe") |
44 else: |
44 else: |
45 os.system("xpdf -remote DS301 %s &"%os.path.join(cwd, "doc","301_v04000201.pdf")) |
45 os.system("xpdf -remote DS301 %s &"%os.path.join(cwd, "doc","301_v04000201.pdf")) |
46 return True |
46 return True |
47 except: |
47 except: |
48 if wx.Platform == '__WXMSW__': |
48 if wx.Platform == '__WXMSW__': |
49 return """Check if Acrobat Reader is correctly installed on your computer""" |
49 return _("Check if Acrobat Reader is correctly installed on your computer") |
50 else: |
50 else: |
51 return """Check if xpdf is correctly installed on your computer""" |
51 return _("Check if xpdf is correctly installed on your computer") |
52 |
52 |