On 06/25/2013 05:46 AM, e.c. wrote: >> Have a look at this link: >> >> http://www.divideandconquer.se/2009/08/17/convert-mailman-translation-to-utf-8/ >> >> I don't understand the def _(s) function but since ascii is a subset of >> utf-8, it's safe to use iconv going from ascii (or iso-8859-1) to utf-8.
The def _(s) was copied from Defaults.py and is a device for allowing the strings representing the language names to be seen as needing i18n, but not translating them too soon. Putting something like def _(s): return s add_language('sv', _('Swedish'), 'utf-8') del _ in mm_cfg.py works, but is way to complicated. All that is needed is the single line add_language('sv', 'Swedish', 'utf-8') >> Maybe all you needed was to add (or change) the line >> >> DEFAULT_CHARSET = 'utf-8' >> >> in mm_config.py. That setting is historical and currently has no effect. -- 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