/[thuban]/branches/thuban-1-0-branch/thuban/Thuban/UI/about.py
ViewVC logotype

Annotation of /branches/thuban-1-0-branch/thuban/Thuban/UI/about.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1628 - (hide annotations)
Fri Aug 22 12:53:41 2003 UTC (21 years, 6 months ago) by jan
Original Path: trunk/thuban/Thuban/UI/about.py
File MIME type: text/x-python
File size: 3975 byte(s)
(About.__init__): split up the huge about text into elements/lists for
easier translation. This fixes bug
https://intevation.de/rt/webrt?serial_num=2058
Also, made some forgotten string available for the i18n.

1 jonathan 1305 # Copyright (c) 2001, 2002, 2003 by Intevation GmbH
2     # Authors:
3     # Jonathan Coles <[email protected]>
4     #
5     # This program is free software under the GPL (>=v2)
6     # Read the file COPYING coming with Thuban for details.
7    
8 bh 1542 """The About Box"""
9    
10     __version__ = "$Revision$"
11     # $Source$
12     # $Id$
13    
14 jonathan 1305 from wxPython.wx import *
15    
16     from Thuban import _
17     from Thuban.version import versions
18    
19     class About(wxDialog):
20    
21     def __init__(self, parent):
22     wxDialog.__init__(self, parent, -1, _("About Thuban"),
23     style = wxDEFAULT_DIALOG_STYLE
24     | wxSYSTEM_MENU
25     | wxMINIMIZE_BOX
26     | wxMAXIMIZE_BOX
27     | wxRESIZE_BORDER,
28     size = (400, 250))
29    
30 jan 1628 lead_developer = 'Bernhard Herzog'
31     developers = [ 'Jonathan Coles', 'Frank Koormann',
32     'Martin Müller', 'Jan-Oliver Wagner' ]
33     translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
34     ( _('German'), 'Björn Broscheit'),
35     ( _('Italian'), 'Maurizio Napolitano'),
36     ( _('Russian'), 'Alex Shevlakov'),
37     ( _('Spanish'), 'Daniel Calvelo Aros') ]
38     other_contributors = [ 'Jonathan Byron', 'Silke Reimer',
39     'Bernhard Reiter' ]
40     dyn_modules = [ ('wxPython', versions['wxPython']),
41     ('Python', versions['python']),
42     ('PySQLite', versions['pysqlite']),
43     ('SQLite', versions['sqlite']),
44     ('GDAL', versions.get('gdal',_('- not available')))]
45     direct_modules = [ \
46     ('GTK', versions.get('gtk', _('- not available'))),
47     ('proj', versions['proj']) ]
48    
49     text = 'Thuban %s\n\n' % versions['thuban-long']
50    
51     text += _('Currently using:\n')
52    
53     for name, version in dyn_modules:
54     text+= '\t%s %s\n' % (name, version)
55     text += '\n'
56    
57     text += _('Compiled for:\n')
58    
59     for name, version in direct_modules:
60     text+= '\t%s %s\n' % (name, version)
61     text += '\n'
62    
63     text += _('Lead Developer:\n')
64     text += '\t%s\n\n' % lead_developer
65    
66     text += _('Developers:\n')
67     for name in developers:
68     text += '\t%s\n' % name
69     text += '\n'
70    
71     text += _('Translators:\n')
72     for lang, name in translators:
73     text += '\t%s: %s\n' % (lang, name)
74     text += '\n'
75    
76     text += _('Other Contributors:\n')
77     for name in other_contributors:
78     text += '\t%s\n' % name
79     text += '\n'
80    
81     text += \
82     _("Questions and comments can be sent to the following addresses:\n"
83 jonathan 1323 "\tThuban developers:\n\t\t<[email protected]>\n"
84 jan 1628 "\tThuban mailing list:\n\t\t<[email protected]>")
85 jonathan 1305
86     self.text = text
87    
88     text_title = wxStaticText(self, -1,
89 jan 1628 _("Thuban is a program for exploring geographic data.\n\n") +
90     "Copyright 2001-2003 Intevation GmbH.\n" +
91     _("Thuban is licensed under the GNU GPL"),
92 jonathan 1305 style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
93    
94     textBox = wxTextCtrl(self, -1, text,
95     style=wxTE_READONLY|wxTE_MULTILINE|wxTE_LINEWRAP)
96     w, h = (300, 150)
97     textBox.SetSizeHints(w, h)
98     textBox.SetSize((w, h))
99    
100     button_close = wxButton(self, wxID_CANCEL, _("Close"))
101     button_close.SetDefault()
102    
103     sizer = wxBoxSizer(wxVERTICAL)
104     sizer.Add(text_title, 0, wxALL|wxEXPAND|wxADJUST_MINSIZE, 10)
105     sizer.Add(textBox, 1, wxALL|wxEXPAND, 10)
106     sizer.Add(button_close, 0, wxALL|wxALIGN_RIGHT, 10)
107    
108     self.SetAutoLayout(True)
109     self.SetSizer(sizer)
110     sizer.Fit(self)
111     sizer.SetSizeHints(self)
112     self.Layout()
113    
114     EVT_BUTTON(self, wxID_CANCEL, self.OnCancel)
115    
116     def OnCancel(self, event):
117     self.EndModal(wxID_CANCEL)
118    
119    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26