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]> |
125 |
for author in ext.authors: |
for author in ext.authors: |
126 |
text+= '\t%s\n' % author |
text+= '\t%s\n' % author |
127 |
text += ext.desc |
text += ext.desc |
128 |
|
text += '\n' |
129 |
|
text += 'Status: %s' % ext.status |
130 |
text += '\n\n' |
text += '\n\n' |
131 |
else: |
else: |
132 |
text += _('\tNone registered.\n') |
text += _('\tNone registered.\n') |
171 |
# that's not direcly usable (it's missing a "cp" at the beginning). |
# that's not direcly usable (it's missing a "cp" at the beginning). |
172 |
# getdefaultlocale does return a usable encoding name so we use that |
# getdefaultlocale does return a usable encoding name so we use that |
173 |
# instead. |
# instead. |
174 |
return unicodeStr.encode(getdefaultlocale()[1]) |
locale=getdefaultlocale()[1] |
175 |
|
if locale is None: |
176 |
|
locale = 'ascii' |
177 |
|
return unicodeStr.encode(locale,'replace') |