/[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 1583 by jan, Tue Aug 12 16:13:41 2003 UTC revision 2354 by jan, Tue Sep 28 19:17:14 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    from Thuban.UI.extensionregistry import ext_registry
25    
26  class About(wxDialog):  class About(wxDialog):
27    
# Line 27  class About(wxDialog): Line 34  class About(wxDialog):
34                    | wxRESIZE_BORDER,                    | wxRESIZE_BORDER,
35              size = (400, 250))              size = (400, 250))
36    
37          text = _(#"Build Date: %s\n"          # Note: The source code is in ASCII, so we escape some
38              "%s\n\n"          # characters to get byte strings in latin1.
39              "Currently using:\n"          lead_developer = 'Bernhard Herzog'
40              "\t%s\n"          developers = [ 'Jonathan Coles', 'Frank Koormann',
41              "\t%s\n"                         unicodeToLocale(u'Martin M\xfcller'), 'Jan-Oliver Wagner' ]
42              "\t%s\n"          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
43              "\t%s\n"                          ( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')),
44              "\t%s\n\n"                          ( _('Italian'), 'Maurizio Napolitano'),
45              "Compiled against:\n"                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
46              "\t%s\n"                          ( _('Russian'), 'Alex Shevlakov'),
47              "\t%s\n\n"                          ( _('Spanish'), 'Daniel Calvelo Aros') ]
48              "Lead Developer:\n"          other_contributors = [ 'Jonathan Byron', 'Silke Reimer',
49              "\tBernhard Herzog\n\n"                                 'Bernhard Reiter' ]
50              "Developers:\n"          dyn_modules = [ ('wxPython', versions['wxPython']),
51              "\tJonathan Coles\n"                          ('Python',   versions['python']),
52              "\tFrank Koormann\n"                          ('PySQLite', versions['pysqlite']),
53              "\tMartin M�ller\n"                          ('SQLite',  versions['sqlite']),
54              "\tJan-Oliver Wagner\n\n"                          ('GDAL', versions.get('gdal', _('- not available'))),
55              "Translators:\n"                          ('psycopg', versions.get('psycopg',
56              "\tFrench: Daniel Calvelo Aros\n"                                                   _('- not available')))]
57              "\tGerman: Bj�rn Broscheit\n"          direct_modules = [ \
58              "\tItalian: Maurizio Napolitano\n"                  ('GTK',      versions.get('gtk', _('- not available'))),
59              "\tRussian: Alex Shevlakov\n"                  ('proj',     versions['proj']) ]
60              "\tSpanish: Daniel Calvelo Aros\n\n"  
61              "Other Contributors:\n"          text = 'Thuban %s\n\n' % versions['thuban-long']
62              "\tJonathan Byron\n"  
63              "\tBernhard Reiter\n\n"          text += _('Currently using:\n')
64              "Questions and comments can be sent to the following addresses:\n"  
65              "\tThuban developers:\n\t\t<[email protected]>\n"          for name, version in dyn_modules:
66              "\tThuban mailing list:\n\t\t<[email protected]>"              text+= '\t%s %s\n' % (name, version)
67              % ("Thuban %s"      % versions['thuban-long'],          text += '\n'
68                 "wxPython %s"    % versions['wxPython'],  
69                 "Python %s"      % versions['python'],          if gdal_support_status:
70                 "PySQLite %s"    % versions['pysqlite'],              text += gdal_support_status + "\n\n"
71                 "SQLite %s"      % versions['sqlite'],  
72                 "GDAL %s"        % versions.get('gdal', "- not available"),          text += _('Compiled for:\n')
73                 "GTK %s"         % versions.get('gtk', "- not available"),  
74                 "proj %s"        % versions['proj']))          for name, version in direct_modules:
75                text+= '\t%s %s\n' % (name, version)
76            text += '\n'
77    
78            text += _('Extensions:\n')
79            if ext_registry:
80                for ext in ext_registry:
81                    text += '\t%s %s\n' % (ext.name, ext.version)
82            else:
83                text += _('\tNone registered.\n')
84            text += '\n'
85    
86            text += _('Lead Developer:\n')
87            text += '\t%s\n\n' % lead_developer
88    
89            text += _('Developers:\n')
90            for name in developers:
91                text += '\t%s\n' % name
92            text += '\n'
93    
94            text += _('Translators:\n')
95            for lang, name in translators:
96                text += '\t%s: %s\n' % (lang, name)
97            text += '\n'
98    
99            text += _('Other Contributors:\n')
100            for name in other_contributors:
101                text += '\t%s\n' % name
102            text += '\n'
103    
104            text += \
105                _("Questions and comments can be sent to the following addresses:\n"
106                "\tGeneral list (public):\n\t\t<[email protected]>\n"
107                "\tDevelopers list (public):\n\t\t<[email protected]>\n"
108                "\tThuban team at Intevation:\n\t\t<[email protected]>\n"
109                )
110    
111            text += '\n\n'
112    
113            text += _("Details on the registered extensions:\n\n")
114    
115            if ext_registry:
116                for ext in ext_registry:
117                    text += '%s %s:\n' % (ext.name, ext.version)
118                    text += _('Copyright %s\n') % ext.copyright
119                    text += _('Authors:\n')
120                    for author in ext.authors:
121                        text+= '\t%s\n' % author
122                    text += ext.desc
123                    text += '\n\n'
124            else:
125                text += _('\tNone registered.\n')
126    
127          self.text = text          self.text = text
128    
129          text_title = wxStaticText(self, -1,          text_title = wxStaticText(self, -1,
130              "Thuban is a program for exploring geographic data.\n\n"              _("Thuban is a program for exploring geographic data.\n\n") +
131              "Copyright 2001-2003 Intevation GmbH.\n"              "Copyright 2001-2004 Intevation GmbH.\n" +
132              "Thuban is licensed under the GNU GPL",              _("Thuban is licensed under the GNU GPL"),
133                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
134    
135          textBox = wxTextCtrl(self, -1, text,          textBox = wxTextCtrl(self, -1, text,
# Line 100  class About(wxDialog): Line 158  class About(wxDialog):
158          self.EndModal(wxID_CANCEL)          self.EndModal(wxID_CANCEL)
159    
160    
161    def unicodeToLocale(unicodeStr):
162        "Function to convert unicode to the user's locale encoding"
163    
164        return unicodeStr.encode(getlocale()[1])
165    

Legend:
Removed from v.1583  
changed lines
  Added in v.2354

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26