/[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 1628 by jan, Fri Aug 22 12:53:41 2003 UTC revision 2334 by silke, Tue Aug 10 19:58:50 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  #  #
6  # This program is free software under the GPL (>=v2)  # This program is free software under the GPL (>=v2)
7  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
# Line 13  __version__ = "$Revision$" Line 14  __version__ = "$Revision$"
14    
15  from wxPython.wx import *  from wxPython.wx import *
16    
17    import locale
18    
19  from Thuban import _  from Thuban import _
20  from Thuban.version import versions  from Thuban.version import versions
21    from Thuban.Model.resource import gdal_support_status
22    
23  class About(wxDialog):  class About(wxDialog):
24    
# Line 27  class About(wxDialog): Line 31  class About(wxDialog):
31                    | wxRESIZE_BORDER,                    | wxRESIZE_BORDER,
32              size = (400, 250))              size = (400, 250))
33    
34            # Note: The source code is in ASCII, so we escape some
35            # characters to get byte strings in latin1.
36          lead_developer = 'Bernhard Herzog'          lead_developer = 'Bernhard Herzog'
37          developers = [ 'Jonathan Coles', 'Frank Koormann',          developers = [ 'Jonathan Coles', 'Frank Koormann',
38                         'Martin M�ller', 'Jan-Oliver Wagner' ]                         unicodeToLocale(u'Martin M\xfcller'), 'Jan-Oliver Wagner' ]
39          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
40                          ( _('German'), 'Bj�rn Broscheit'),                          ( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')),
41                          ( _('Italian'), 'Maurizio Napolitano'),                          ( _('Italian'), 'Maurizio Napolitano'),
42                            ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
43                          ( _('Russian'), 'Alex Shevlakov'),                          ( _('Russian'), 'Alex Shevlakov'),
44                          ( _('Spanish'), 'Daniel Calvelo Aros') ]                          ( _('Spanish'), 'Daniel Calvelo Aros') ]
45          other_contributors = [ 'Jonathan Byron', 'Silke Reimer',          other_contributors = [ 'Jonathan Byron', 'Silke Reimer',
# Line 41  class About(wxDialog): Line 48  class About(wxDialog):
48                          ('Python',   versions['python']),                          ('Python',   versions['python']),
49                          ('PySQLite', versions['pysqlite']),                          ('PySQLite', versions['pysqlite']),
50                          ('SQLite',  versions['sqlite']),                          ('SQLite',  versions['sqlite']),
51                          ('GDAL',     versions.get('gdal',_('- not available')))]                          ('GDAL', versions.get('gdal', _('- not available'))),
52                            ('psycopg', versions.get('psycopg',
53                                                     _('- not available')))]
54          direct_modules = [ \          direct_modules = [ \
55                  ('GTK',      versions.get('gtk', _('- not available'))),                  ('GTK',      versions.get('gtk', _('- not available'))),
56                  ('proj',     versions['proj']) ]                  ('proj',     versions['proj']) ]
# Line 54  class About(wxDialog): Line 63  class About(wxDialog):
63              text+= '\t%s %s\n' % (name, version)              text+= '\t%s %s\n' % (name, version)
64          text += '\n'          text += '\n'
65    
66            if gdal_support_status:
67                text += gdal_support_status + "\n\n"
68    
69          text += _('Compiled for:\n')          text += _('Compiled for:\n')
70    
71          for name, version in direct_modules:          for name, version in direct_modules:
# Line 80  class About(wxDialog): Line 92  class About(wxDialog):
92    
93          text += \          text += \
94              _("Questions and comments can be sent to the following addresses:\n"              _("Questions and comments can be sent to the following addresses:\n"
95              "\tThuban developers:\n\t\t<[email protected]>\n"              "\tGeneral list (public):\n\t\t<[email protected]>\n"
96              "\tThuban mailing list:\n\t\t<[email protected]>")              "\tDevelopers list (public):\n\t\t<[email protected]>\n"
97                "\tThuban team at Intevation:\n\t\t<[email protected]>\n"
98                )
99    
100          self.text = text          self.text = text
101    
102          text_title = wxStaticText(self, -1,          text_title = wxStaticText(self, -1,
103              _("Thuban is a program for exploring geographic data.\n\n") +              _("Thuban is a program for exploring geographic data.\n\n") +
104              "Copyright 2001-2003 Intevation GmbH.\n" +              "Copyright 2001-2004 Intevation GmbH.\n" +
105              _("Thuban is licensed under the GNU GPL"),              _("Thuban is licensed under the GNU GPL"),
106                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
107    
# Line 117  class About(wxDialog): Line 131  class About(wxDialog):
131          self.EndModal(wxID_CANCEL)          self.EndModal(wxID_CANCEL)
132    
133    
134    def unicodeToLocale(unicodeStr):
135        " Function to convert a unicode object to an object \ in the user's locale encoding"
136    
137    
138        import locale
139        return unicodeStr.encode(locale.getlocale()[1])
140    

Legend:
Removed from v.1628  
changed lines
  Added in v.2334

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26