1 |
# Copyright (c) 2001, 2002, 2003, 2004 by Intevation GmbH |
# Copyright (c) 2001-2005 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Jonathan Coles <[email protected]> |
# Jonathan Coles <[email protected]> |
4 |
# Bernhard Reiter <[email protected]> |
# Bernhard Reiter <[email protected]> |
15 |
|
|
16 |
from wxPython.wx import * |
from wxPython.wx import * |
17 |
|
|
18 |
from locale import getlocale |
from locale import getdefaultlocale |
19 |
|
|
20 |
from Thuban import _ |
from Thuban import _, internal_from_unicode |
21 |
from Thuban.version import versions |
from Thuban.version import versions |
22 |
from Thuban.Model.resource import gdal_support_status |
from Thuban.Model.resource import gdal_support_status |
23 |
|
|
39 |
lead_developer = 'Bernhard Herzog' |
lead_developer = 'Bernhard Herzog' |
40 |
developers = [ 'Jonathan Coles', |
developers = [ 'Jonathan Coles', |
41 |
'Frank Koormann', |
'Frank Koormann', |
42 |
unicodeToLocale(u'Martin M\xfcller'), |
internal_from_unicode(u'Martin M\xfcller'), |
43 |
'Bernhard Reiter', |
'Bernhard Reiter', |
44 |
'Jan-Oliver Wagner' ] |
'Jan-Oliver Wagner' ] |
45 |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
translators = [ ( _('French'), 'Daniel Calvelo Aros' ), |
46 |
( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')), |
( _('German'), |
47 |
|
internal_from_unicode(u'Bj\xf6rn Broscheit')), |
48 |
( _('Hungarian'), 'Norbert Solymosi'), |
( _('Hungarian'), 'Norbert Solymosi'), |
49 |
( _('Italian'), 'Maurizio Napolitano'), |
( _('Italian'), 'Maurizio Napolitano'), |
50 |
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
126 |
for author in ext.authors: |
for author in ext.authors: |
127 |
text+= '\t%s\n' % author |
text+= '\t%s\n' % author |
128 |
text += ext.desc |
text += ext.desc |
129 |
|
text += '\n' |
130 |
|
text += 'Status: %s' % ext.status |
131 |
text += '\n\n' |
text += '\n\n' |
132 |
else: |
else: |
133 |
text += _('\tNone registered.\n') |
text += _('\tNone registered.\n') |
164 |
|
|
165 |
def OnCancel(self, event): |
def OnCancel(self, event): |
166 |
self.EndModal(wxID_CANCEL) |
self.EndModal(wxID_CANCEL) |
|
|
|
|
|
|
|
def unicodeToLocale(unicodeStr): |
|
|
"Function to convert unicode to the user's locale encoding" |
|
|
|
|
|
return unicodeStr.encode(getlocale()[1]) |
|
|
|
|