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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2525 by bernhard, Thu Jan 20 10:00:34 2005 UTC revision 2674 by bernhard, Wed Oct 19 08:56:47 2005 UTC
# Line 1  Line 1 
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]>
# Line 15  __version__ = "$Revision$" Line 15  __version__ = "$Revision$"
15    
16  from wxPython.wx import *  from wxPython.wx import *
17    
18  from locale import getdefaultlocale  from Thuban import _, internal_from_unicode, get_internal_encoding
   
 from Thuban import _  
19  from Thuban.version import versions  from Thuban.version import versions
20  from Thuban.Model.resource import gdal_support_status  from Thuban.Model.resource import gdal_support_status
21    
# Line 39  class About(wxDialog): Line 37  class About(wxDialog):
37          lead_developer = 'Bernhard Herzog'          lead_developer = 'Bernhard Herzog'
38          developers = [ 'Jonathan Coles',          developers = [ 'Jonathan Coles',
39                         'Frank Koormann',                         'Frank Koormann',
40                         unicodeToLocale(u'Martin M\xfcller'),                         internal_from_unicode(u'Martin M\xfcller'),
41                         'Bernhard Reiter',                         'Bernhard Reiter',
42                         'Jan-Oliver Wagner' ]                         'Jan-Oliver Wagner' ]
43          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),          translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
44                          ( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')),                          ( _('German'),
45                              internal_from_unicode(u'Bj\xf6rn Broscheit')),
46                          ( _('Hungarian'), 'Norbert Solymosi'),                          ( _('Hungarian'), 'Norbert Solymosi'),
47                          ( _('Italian'), 'Maurizio Napolitano'),                          ( _('Italian'), 'Maurizio Napolitano'),
48                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),                          ( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
# Line 71  class About(wxDialog): Line 70  class About(wxDialog):
70              text+= '\t%s %s\n' % (name, version)              text+= '\t%s %s\n' % (name, version)
71          text += '\n'          text += '\n'
72    
73            text += _('\tInternal encoding: %s\n') % get_internal_encoding()
74            text += '\n'
75    
76          if gdal_support_status:          if gdal_support_status:
77              text += gdal_support_status + "\n\n"              text += gdal_support_status + "\n\n"
78    
# Line 125  class About(wxDialog): Line 127  class About(wxDialog):
127                  for author in ext.authors:                  for author in ext.authors:
128                      text+= '\t%s\n' % author                      text+= '\t%s\n' % author
129                  text += ext.desc                  text += ext.desc
130                    text += '\n'
131                    text += 'Status: %s' % ext.status
132                  text += '\n\n'                  text += '\n\n'
133          else:          else:
134              text += _('\tNone registered.\n')              text += _('\tNone registered.\n')
# Line 133  class About(wxDialog): Line 137  class About(wxDialog):
137    
138          text_title = wxStaticText(self, -1,          text_title = wxStaticText(self, -1,
139              _("Thuban is a program for exploring geographic data.\n\n") +              _("Thuban is a program for exploring geographic data.\n\n") +
140              "Copyright 2001-2004 Intevation GmbH.\n" +              "Copyright 2001-2005 Intevation GmbH.\n" +
141              _("Thuban is licensed under the GNU GPL"),              _("Thuban is licensed under the GNU GPL"),
142                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)                                    style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
143    
# Line 161  class About(wxDialog): Line 165  class About(wxDialog):
165    
166      def OnCancel(self, event):      def OnCancel(self, event):
167          self.EndModal(wxID_CANCEL)          self.EndModal(wxID_CANCEL)
   
   
 def unicodeToLocale(unicodeStr):  
     "Function to convert unicode to the user's locale encoding"  
     # Under a german windows 2000 getlocale returns an encoding name  
     # that's not direcly usable (it's missing a "cp" at the beginning).  
     # getdefaultlocale does return a usable encoding name so we use that  
     # instead.  
     locale=getdefaultlocale()[1]  
     if locale is None:  
         locale = 'iso-8859-15'  
     return unicodeStr.encode(locale)  

Legend:
Removed from v.2525  
changed lines
  Added in v.2674

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26