jan: thuban/Thuban/UI about.py,1.11,1.11.2.1
cvs@intevation.de
cvs at intevation.de
Sat Nov 27 22:30:40 CET 2004
Author: jan
Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv11480
Modified Files:
Tag: thuban-1-0-branch
about.py
Log Message:
(About.__init__): Added unicode2Locale use.
Added author for Hungarian translation.
(unicodeToLocale): New. Convert Unicode to Locale encoding.
Index: about.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/about.py,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -u -d -r1.11 -r1.11.2.1
--- about.py 3 Feb 2004 19:12:03 -0000 1.11
+++ about.py 27 Nov 2004 21:30:38 -0000 1.11.2.1
@@ -1,4 +1,4 @@
-# Copyright (c) 2001, 2002, 2003 by Intevation GmbH
+# Copyright (c) 2001-2004 by Intevation GmbH
# Authors:
# Jonathan Coles <jonathan at intevation.de>
#
@@ -13,6 +13,8 @@
from wxPython.wx import *
+from locale import getlocale
+
from Thuban import _
from Thuban.version import versions
from Thuban.Model.resource import gdal_support_status
@@ -32,9 +34,11 @@
# characters to get byte strings in latin1.
lead_developer = 'Bernhard Herzog'
developers = [ 'Jonathan Coles', 'Frank Koormann',
- 'Martin M\xfcller', 'Jan-Oliver Wagner' ]
+ unicodeToLocale(u'Martin M\xfcller'),
+ 'Jan-Oliver Wagner' ]
translators = [ ( _('French'), 'Daniel Calvelo Aros' ),
- ( _('German'), 'Bj\xf6rn Broscheit'),
+ ( _('German'), unicodeToLocale(u'Bj\xf6rn Broscheit')),
+ ( _('Hungarian'), 'Norbert Solymosi'),
( _('Italian'), 'Maurizio Napolitano'),
( _('Portuguese (Brazilian)'), 'Eduardo Patto Kanegae'),
( _('Russian'), 'Alex Shevlakov'),
@@ -96,7 +100,7 @@
text_title = wxStaticText(self, -1,
_("Thuban is a program for exploring geographic data.\n\n") +
- "Copyright 2001-2003 Intevation GmbH.\n" +
+ "Copyright 2001-2004 Intevation GmbH.\n" +
_("Thuban is licensed under the GNU GPL"),
style=wxST_NO_AUTORESIZE|wxALIGN_CENTRE)
@@ -126,3 +130,7 @@
self.EndModal(wxID_CANCEL)
+def unicodeToLocale(unicodeStr):
+ "Function to convert unicode to the user's locale encoding"
+
+ return unicodeStr.encode(getlocale()[1])
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)