Ulf Dunkel wrote:

>I wonder if there is any simple way to have my Mailman 2.1.13 strings 
>set to Unicode (UTF-8).


For English language lists, it should be as simple as putting

add_language('en', 'English (USA)', 'utf-8', 'ltr')

in mm_cfg.py. This has not been done in the distribution for
superstitious reasons. Note that the i18n call _('English (USA)')
that's in Defaults.py has been intentionally omitted above. You don't
want it in the mm_cfg.py context.

For another language which is not already utf-8, e.g. German, in
addition to putting

add_language('de', 'German', 'utf-8', 'ltr')

in mm_cfg.py, you also need to transliterate the message catalog and
templates to from iso-8859-1 to utf-8. I.e. you need to do something
like

#!/bin/sh
cd $prefix
temp=mktemp
for file in `ls templates/de` ; do
  iconv -f iso-8859-1 -t utf-8 -o $temp templates/de/$file
  cp $temp templates/de/$file
done
cd messages/de/LC_MESSAGES
iconv -f iso-8859-1 -t utf-8 mailman.po | \
  sed '/^"Content-Type:/s/charset=.*\\n/charset=utf-8\\n/ > $temp
cp $temp mailman.po
msgfmt -o mailman.mo mailman.po

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to