/[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 2335 by silke, Wed Aug 11 08:09:44 2004 UTC revision 2338 by silke, Fri Aug 20 16:50:22 2004 UTC
# Line 2  Line 2 
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.
# Line 14  __version__ = "$Revision$" Line 15  __version__ = "$Revision$"
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
# Line 130  class About(wxDialog): Line 133  class About(wxDialog):
133    
134    
135  def unicodeToLocale(unicodeStr):  def unicodeToLocale(unicodeStr):
136      " Function to convert a unicode object to an object \ in the user's locale encoding"      "Function to convert unicode to the user's locale encoding"
   
   
     from locale import getlocale  
137    
138      return unicodeStr.encode(getlocale()[1])      return unicodeStr.encode(getlocale()[1])
139    

Legend:
Removed from v.2335  
changed lines
  Added in v.2338

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26