/[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 2338 by silke, Fri Aug 20 16:50:22 2004 UTC revision 2691 by bernhard, Thu Aug 31 12:40:30 2006 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]>
# Line 15  __version__ = "$Revision$" Line 15  __version__ = "$Revision$"
15    
16  from wxPython.wx import *  from wxPython.wx import *
17    
18  from locale import getlocale  from Thuban import _, internal_from_unicode, get_internal_encoding
   
 from Thuban import _  
19  from Thuban.version import versions  from Thuban.version import versions
20  from Thuban.Model.resource import gdal_support_status  from Thuban.Model.resource import gdal_support_status
21    
22    from Thuban.UI.extensionregistry import ext_registry
23    
24  class About(wxDialog):  class About(wxDialog):
25    
26      def __init__(self, parent):      def __init__(self, parent):
# Line 35  class About(wxDialog): Line 35  class About(wxDialog):
35          # Note: The source code is in ASCII, so we escape some          # Note: The source code is in ASCII, so we escape some
36          # characters to get byte strings in latin1.          # characters to get byte strings in latin1.
37          lead_developer = 'Bernhard Herzog'          lead_developer = 'Bernhard Herzog'
38          developers = [ 'Jonathan Coles', 'Frank Koormann',          developers = [ 'Jonathan Coles',
39                         unicodeToLocale(u'Martin M\xfcller'), 'Jan-Oliver Wagner' ]                         'Frank Koormann',
40                           internal_from_unicode(u'Martin M\xfcller'),
41                           'Bernhard Reiter',
42                           'Jan-Oliver Wagner' ]
43          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
44                          ( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')),                          ( _('German'),
45                              internal_from_unicode(u'Bj\xf6rn Broscheit')),
46                            ( _('Hungarian'), 'Norbert Solymosi'),
47                          ( _('Italian'), 'Maurizio Napolitano'),                          ( _('Italian'), 'Maurizio Napolitano'),
48                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
49                          ( _('Russian'), 'Alex Shevlakov'),                          ( _('Russian'), 'Alex Shevlakov'),
50                          ( _('Spanish'), 'Daniel Calvelo Aros') ]                          ( _('Spanish'), 'Daniel Calvelo Aros') ]
51          other_contributors = [ 'Jonathan Byron', 'Silke Reimer',          other_contributors = [ 'Jonathan Byron',
52                                 'Bernhard Reiter' ]                                 'Didrik Pinte',
53                                   'Ole Rahn',
54                                   'Silke Reimer' ]
55          dyn_modules = [ ('wxPython', versions['wxPython']),          dyn_modules = [ ('wxPython', versions['wxPython']),
56                          ('Python',   versions['python']),                          ('Python',   versions['python']),
57                          ('PySQLite', versions['pysqlite']),                          ('PySQLite', versions['pysqlite']),
# Line 64  class About(wxDialog): Line 71  class About(wxDialog):
71              text+= '\t%s %s\n' % (name, version)              text+= '\t%s %s\n' % (name, version)
72          text += '\n'          text += '\n'
73    
74            text += _('\tInternal encoding: %s\n') % get_internal_encoding()
75            text += '\n'
76    
77          if gdal_support_status:          if gdal_support_status:
78              text += gdal_support_status + "\n\n"              text += gdal_support_status + "\n\n"
79    
# Line 73  class About(wxDialog): Line 83  class About(wxDialog):
83              text+= '\t%s %s\n' % (name, version)              text+= '\t%s %s\n' % (name, version)
84          text += '\n'          text += '\n'
85    
86            text += _('Extensions:\n')
87            if ext_registry:
88                for ext in ext_registry:
89                    text += '\t%s %s\n' % (ext.name, ext.version)
90            else:
91                text += _('\tNone registered.\n')
92            text += '\n'
93    
94          text += _('Lead Developer:\n')          text += _('Lead Developer:\n')
95          text += '\t%s\n\n' % lead_developer          text += '\t%s\n\n' % lead_developer
96    
# Line 98  class About(wxDialog): Line 116  class About(wxDialog):
116              "\tThuban team at Intevation:\n\t\t<[email protected]>\n"              "\tThuban team at Intevation:\n\t\t<[email protected]>\n"
117              )              )
118    
119            text += '\n\n'
120    
121            text += _("Details on the registered extensions:\n\n")
122    
123            if ext_registry:
124                for ext in ext_registry:
125                    text += '%s %s:\n' % (ext.name, ext.version)
126                    text += _('Copyright %s\n') % ext.copyright
127                    text += _('Authors:\n')
128                    for author in ext.authors:
129                        text+= '\t%s\n' % author
130                    text += ext.desc
131                    text += '\n'
132                    text += 'Status: %s' % ext.status
133                    text += '\n\n'
134            else:
135                text += _('\tNone registered.\n')
136    
137          self.text = text          self.text = text
138    
139          text_title = wxStaticText(self, -1,          text_title = wxStaticText(self, -1,
140              _("Thuban is a program for exploring geographic data.\n\n") +              _("Thuban is a program for exploring geographic data.\n\n") +
141              "Copyright 2001-2004 Intevation GmbH.\n" +              "Copyright 2001-2006 Intevation GmbH.\n" +
142              _("Thuban is licensed under the GNU GPL"),              _("Thuban is licensed under the GNU GPL"),
143                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
144    
# Line 130  class About(wxDialog): Line 166  class About(wxDialog):
166    
167      def OnCancel(self, event):      def OnCancel(self, event):
168          self.EndModal(wxID_CANCEL)          self.EndModal(wxID_CANCEL)
   
   
 def unicodeToLocale(unicodeStr):  
     "Function to convert unicode to the user's locale encoding"  
   
     return unicodeStr.encode(getlocale()[1])  
   

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26