/[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 2140 by bernhard, Fri Mar 26 18:15:35 2004 UTC revision 2642 by bh, Fri Jul 1 20:49:04 2005 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001, 2002, 2003, 2004 by Intevation GmbH  # Copyright (c) 2001-2005 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jonathan Coles <[email protected]>  # Jonathan Coles <[email protected]>
4  # Bernhard Reiter <[email protected]>  # 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 14  __version__ = "$Revision$" Line 15  __version__ = "$Revision$"
15    
16  from wxPython.wx import *  from wxPython.wx import *
17    
18  from Thuban import _  from locale import getdefaultlocale
19    
20    from Thuban import _, internal_from_unicode
21  from Thuban.version import versions  from Thuban.version import versions
22  from Thuban.Model.resource import gdal_support_status  from Thuban.Model.resource import gdal_support_status
23    
24    from Thuban.UI.extensionregistry import ext_registry
25    
26  class About(wxDialog):  class About(wxDialog):
27    
28      def __init__(self, parent):      def __init__(self, parent):
# Line 32  class About(wxDialog): Line 37  class About(wxDialog):
37          # Note: The source code is in ASCII, so we escape some          # Note: The source code is in ASCII, so we escape some
38          # characters to get byte strings in latin1.          # characters to get byte strings in latin1.
39          lead_developer = 'Bernhard Herzog'          lead_developer = 'Bernhard Herzog'
40          developers = [ 'Jonathan Coles', 'Frank Koormann',          developers = [ 'Jonathan Coles',
41                         'Martin M\xfcller', 'Jan-Oliver Wagner' ]                         'Frank Koormann',
42                           internal_from_unicode(u'Martin M\xfcller'),
43                           'Bernhard Reiter',
44                           'Jan-Oliver Wagner' ]
45          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
46                          ( _('German'), 'Bj\xf6rn Broscheit'),                          ( _('German'),
47                              internal_from_unicode(u'Bj\xf6rn Broscheit')),
48                            ( _('Hungarian'), 'Norbert Solymosi'),
49                          ( _('Italian'), 'Maurizio Napolitano'),                          ( _('Italian'), 'Maurizio Napolitano'),
50                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
51                          ( _('Russian'), 'Alex Shevlakov'),                          ( _('Russian'), 'Alex Shevlakov'),
52                          ( _('Spanish'), 'Daniel Calvelo Aros') ]                          ( _('Spanish'), 'Daniel Calvelo Aros') ]
53          other_contributors = [ 'Jonathan Byron', 'Silke Reimer',          other_contributors = [ 'Jonathan Byron',
54                                 'Bernhard Reiter' ]                                 'Ole Rahn',
55                                   'Silke Reimer' ]
56          dyn_modules = [ ('wxPython', versions['wxPython']),          dyn_modules = [ ('wxPython', versions['wxPython']),
57                          ('Python',   versions['python']),                          ('Python',   versions['python']),
58                          ('PySQLite', versions['pysqlite']),                          ('PySQLite', versions['pysqlite']),
# Line 70  class About(wxDialog): Line 81  class About(wxDialog):
81              text+= '\t%s %s\n' % (name, version)              text+= '\t%s %s\n' % (name, version)
82          text += '\n'          text += '\n'
83    
84            text += _('Extensions:\n')
85            if ext_registry:
86                for ext in ext_registry:
87                    text += '\t%s %s\n' % (ext.name, ext.version)
88            else:
89                text += _('\tNone registered.\n')
90            text += '\n'
91    
92          text += _('Lead Developer:\n')          text += _('Lead Developer:\n')
93          text += '\t%s\n\n' % lead_developer          text += '\t%s\n\n' % lead_developer
94    
# Line 95  class About(wxDialog): Line 114  class About(wxDialog):
114              "\tThuban team at Intevation:\n\t\t<[email protected]>\n"              "\tThuban team at Intevation:\n\t\t<[email protected]>\n"
115              )              )
116    
117            text += '\n\n'
118    
119            text += _("Details on the registered extensions:\n\n")
120    
121            if ext_registry:
122                for ext in ext_registry:
123                    text += '%s %s:\n' % (ext.name, ext.version)
124                    text += _('Copyright %s\n') % ext.copyright
125                    text += _('Authors:\n')
126                    for author in ext.authors:
127                        text+= '\t%s\n' % author
128                    text += ext.desc
129                    text += '\n'
130                    text += 'Status: %s' % ext.status
131                    text += '\n\n'
132            else:
133                text += _('\tNone registered.\n')
134    
135          self.text = text          self.text = text
136    
137          text_title = wxStaticText(self, -1,          text_title = wxStaticText(self, -1,
# Line 127  class About(wxDialog): Line 164  class About(wxDialog):
164    
165      def OnCancel(self, event):      def OnCancel(self, event):
166          self.EndModal(wxID_CANCEL)          self.EndModal(wxID_CANCEL)
   
   

Legend:
Removed from v.2140  
changed lines
  Added in v.2642

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26