/[thuban]/trunk/thuban/Thuban/UI/about.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/UI/about.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1568 by jan, Fri Aug 8 13:33:03 2003 UTC revision 2338 by silke, Fri Aug 20 16:50:22 2004 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001, 2002, 2003 by Intevation GmbH  # Copyright (c) 2001, 2002, 2003, 2004 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jonathan Coles <[email protected]>  # Jonathan Coles <[email protected]>
4    # Bernhard Reiter <[email protected]>
5    # Silke Reimer <[email protected]>
6  #  #
7  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
8  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
# Line 13  __version__ = "$Revision$" Line 15  __version__ = "$Revision$"
15    
16  from wxPython.wx import *  from wxPython.wx import *
17    
18    from locale import getlocale
19    
20  from Thuban import _  from Thuban import _
21  from Thuban.version import versions  from Thuban.version import versions
22    from Thuban.Model.resource import gdal_support_status
23    
24  class About(wxDialog):  class About(wxDialog):
25    
# Line 27  class About(wxDialog): Line 32  class About(wxDialog):
32                    | wxRESIZE_BORDER,                    | wxRESIZE_BORDER,
33              size = (400, 250))              size = (400, 250))
34    
35          text = _(#"Build Date: %s\n"          # Note: The source code is in ASCII, so we escape some
36              "%s\n\n"          # characters to get byte strings in latin1.
37              "Currently using:\n"          lead_developer = 'Bernhard Herzog'
38              "\t%s\n"          developers = [ 'Jonathan Coles', 'Frank Koormann',
39              "\t%s\n"                         unicodeToLocale(u'Martin M\xfcller'), 'Jan-Oliver Wagner' ]
40              "\t%s\n"          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
41              "\t%s\n"                          ( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')),
42              "\t%s\n\n"                          ( _('Italian'), 'Maurizio Napolitano'),
43              "Compiled against:\n"                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
44              "\t%s\n"                          ( _('Russian'), 'Alex Shevlakov'),
45              "\t%s\n\n"                          ( _('Spanish'), 'Daniel Calvelo Aros') ]
46              "Lead Developer:\n"          other_contributors = [ 'Jonathan Byron', 'Silke Reimer',
47              "\tBernhard Herzog\n\n"                                 'Bernhard Reiter' ]
48              "Developers:\n"          dyn_modules = [ ('wxPython', versions['wxPython']),
49              "\tJonathan Coles\n"                          ('Python',   versions['python']),
50              "\tFrank Koormann\n"                          ('PySQLite', versions['pysqlite']),
51              "\tMartin M�ller\n"                          ('SQLite',  versions['sqlite']),
52              "\tJan-Oliver Wagner\n\n"                          ('GDAL', versions.get('gdal', _('- not available'))),
53              "Translators:\n"                          ('psycopg', versions.get('psycopg',
54              "\tFrench: Daniel Calvelo Aros\n"                                                   _('- not available')))]
55              "\tItalian: Maurizio Napolitano\n"          direct_modules = [ \
56              "\tRussian: Alex Shevlakov\n"                  ('GTK',      versions.get('gtk', _('- not available'))),
57              "\tSpanish: Daniel Calvelo Aros\n\n"                  ('proj',     versions['proj']) ]
58              "Other Contributors:\n"  
59              "\tJonathan Byron\n"          text = 'Thuban %s\n\n' % versions['thuban-long']
60              "\tBernhard Reiter\n\n"  
61              "Questions and comments can be sent to the following addresses:\n"          text += _('Currently using:\n')
62              "\tThuban developers:\n\t\t<[email protected]>\n"  
63              "\tThuban mailing list:\n\t\t<[email protected]>"          for name, version in dyn_modules:
64              % ("Thuban %s"      % versions['thuban-long'],              text+= '\t%s %s\n' % (name, version)
65                 "wxPython %s"    % versions['wxPython'],          text += '\n'
66                 "Python %s"      % versions['python'],  
67                 "PySQLite %s"    % versions['pysqlite'],          if gdal_support_status:
68                 "SQLite %s"      % versions['sqlite'],              text += gdal_support_status + "\n\n"
69                 "GDAL %s"        % versions.get('gdal', "- not available"),  
70                 "GTK %s"         % versions.get('gtk', "- not available"),          text += _('Compiled for:\n')
71                 "proj %s"        % versions['proj']))  
72            for name, version in direct_modules:
73                text+= '\t%s %s\n' % (name, version)
74            text += '\n'
75    
76            text += _('Lead Developer:\n')
77            text += '\t%s\n\n' % lead_developer
78    
79            text += _('Developers:\n')
80            for name in developers:
81                text += '\t%s\n' % name
82            text += '\n'
83    
84            text += _('Translators:\n')
85            for lang, name in translators:
86                text += '\t%s: %s\n' % (lang, name)
87            text += '\n'
88    
89            text += _('Other Contributors:\n')
90            for name in other_contributors:
91                text += '\t%s\n' % name
92            text += '\n'
93    
94            text += \
95                _("Questions and comments can be sent to the following addresses:\n"
96                "\tGeneral list (public):\n\t\t<[email protected]>\n"
97                "\tDevelopers list (public):\n\t\t<[email protected]>\n"
98                "\tThuban team at Intevation:\n\t\t<[email protected]>\n"
99                )
100    
101          self.text = text          self.text = text
102    
103          text_title = wxStaticText(self, -1,          text_title = wxStaticText(self, -1,
104              "Thuban is a program for exploring geographic data.\n\n"              _("Thuban is a program for exploring geographic data.\n\n") +
105              "Copyright 2001-2003 Intevation GmbH.\n"              "Copyright 2001-2004 Intevation GmbH.\n" +
106              "Thuban is licensed under the GNU GPL",              _("Thuban is licensed under the GNU GPL"),
107                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
108    
109          textBox = wxTextCtrl(self, -1, text,          textBox = wxTextCtrl(self, -1, text,
# Line 99  class About(wxDialog): Line 132  class About(wxDialog):
132          self.EndModal(wxID_CANCEL)          self.EndModal(wxID_CANCEL)
133    
134    
135    def unicodeToLocale(unicodeStr):
136        "Function to convert unicode to the user's locale encoding"
137    
138        return unicodeStr.encode(getlocale()[1])
139    

Legend:
Removed from v.1568  
changed lines
  Added in v.2338

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26