/[thuban]/trunk/thuban/Thuban/UI/about.py
ViewVC logotype

Contents of /trunk/thuban/Thuban/UI/about.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2053 - (show annotations)
Tue Feb 3 19:12:03 2004 UTC (21 years, 1 month ago) by frank
File MIME type: text/x-python
File size: 4443 byte(s)
First version of Portuguese (Brazilian) translation

* po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
	Brazilian Portuguese by Eduardo Patto Kanegae.

* Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
	translators.

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

Properties

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26