2 |
# Authors: |
# Authors: |
3 |
# Jonathan Coles <[email protected]> |
# Jonathan Coles <[email protected]> |
4 |
# Bernhard Reiter <[email protected]> |
# 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 |
from Thuban.Model.resource import gdal_support_status |
36 |
# characters to get byte strings in latin1. |
# 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\xfcller', '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\xf6rn Broscheit'), |
( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')), |
42 |
( _('Italian'), 'Maurizio Napolitano'), |
( _('Italian'), 'Maurizio Napolitano'), |
43 |
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'), |
44 |
( _('Russian'), 'Alex Shevlakov'), |
( _('Russian'), 'Alex Shevlakov'), |
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 |
|
|