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. |
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 |
|
|
32 |
| wxRESIZE_BORDER, |
| wxRESIZE_BORDER, |
33 |
size = (400, 250)) |
size = (400, 250)) |
34 |
|
|
35 |
|
# Note: The source code is in ASCII, so we escape some |
36 |
|
# 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', 'Frank Koormann', |
39 |
'Martin M�ller', 'Jan-Oliver Wagner' ] |
unicodeToLocale(u'Martin M\xfcller'), 'Jan-Oliver Wagner' ] |
40 |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
41 |
( _('German'), 'Bj�rn Broscheit'), |
( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')), |
42 |
( _('Italian'), 'Maurizio Napolitano'), |
( _('Italian'), 'Maurizio Napolitano'), |
43 |
|
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
44 |
( _('Russian'), 'Alex Shevlakov'), |
( _('Russian'), 'Alex Shevlakov'), |
45 |
( _('Spanish'), 'Daniel Calvelo Aros') ] |
( _('Spanish'), 'Daniel Calvelo Aros') ] |
46 |
other_contributors = [ 'Jonathan Byron', 'Silke Reimer', |
other_contributors = [ 'Jonathan Byron', 'Silke Reimer', |
49 |
('Python', versions['python']), |
('Python', versions['python']), |
50 |
('PySQLite', versions['pysqlite']), |
('PySQLite', versions['pysqlite']), |
51 |
('SQLite', versions['sqlite']), |
('SQLite', versions['sqlite']), |
52 |
('GDAL', versions.get('gdal',_('- not available')))] |
('GDAL', versions.get('gdal', _('- not available'))), |
53 |
|
('psycopg', versions.get('psycopg', |
54 |
|
_('- not available')))] |
55 |
direct_modules = [ \ |
direct_modules = [ \ |
56 |
('GTK', versions.get('gtk', _('- not available'))), |
('GTK', versions.get('gtk', _('- not available'))), |
57 |
('proj', versions['proj']) ] |
('proj', versions['proj']) ] |
64 |
text+= '\t%s %s\n' % (name, version) |
text+= '\t%s %s\n' % (name, version) |
65 |
text += '\n' |
text += '\n' |
66 |
|
|
67 |
|
if gdal_support_status: |
68 |
|
text += gdal_support_status + "\n\n" |
69 |
|
|
70 |
text += _('Compiled for:\n') |
text += _('Compiled for:\n') |
71 |
|
|
72 |
for name, version in direct_modules: |
for name, version in direct_modules: |
93 |
|
|
94 |
text += \ |
text += \ |
95 |
_("Questions and comments can be sent to the following addresses:\n" |
_("Questions and comments can be sent to the following addresses:\n" |
96 |
"\tThuban developers:\n\t\t<[email protected]>\n" |
"\tGeneral list (public):\n\t\t<[email protected]>\n" |
97 |
"\tThuban mailing list:\n\t\t<[email protected]>") |
"\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 |
|
|
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 |
|
|