set charset in outgoing Mailman messages
I translated a few of the Mailman subscripe and unsubscribe text files to Hebrew. I tried to add Hebrew (iso-8859-8-1) support by adding the following line to Defaults.py add_language('he', _('Hebrew'), 'iso-8859-8-1') and I even tried setting the default language to Hebrew in mm_cfg.py DEFAULT_SERVER_LANGUAGE = 'he' but the messages sent by Mailman still do not set the charset correctly. I looked at http://www.list.org/i18n.html for more specific instructions but could not find any. Can someone point me in the right direction to configure Mailman to set the charset for outgoing Mailman messages to iso-8859-8-1. Thank you, -- - Josh
Josh Zlatin-Amishav wrote:
I translated a few of the Mailman subscripe and unsubscribe text files to Hebrew. I tried to add Hebrew (iso-8859-8-1) support by adding the following line to Defaults.py add_language('he', _('Hebrew'), 'iso-8859-8-1')
Fist, ISO 693 states the language code for the Hebrew is 'iw' not 'he'. Are you sure the above code is right? Second, Python 2.4 have codec for 'iso-8859-8' but not for 'iso-8859-8-1'. We put aliases for '-i' and '-e' in misc/paths.py.in lately but not '-1'. Is it common in Islael to use this notation? I couldn't find 'ISO-8859-8-1' in the IANA charsets: http://www.iana.org/assignments/character-sets
and I even tried setting the default language to Hebrew in mm_cfg.py DEFAULT_SERVER_LANGUAGE = 'he'
but the messages sent by Mailman still do not set the charset correctly. I looked at http://www.list.org/i18n.html for more specific instructions but could not find any. Can someone point me in the right direction to configure Mailman to set the charset for outgoing Mailman messages to iso-8859-8-1.
You may have to chose a proper charset name and register in the aliases. -- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/
On Mon, 13 Feb 2006, Tokio Kikuchi wrote:
Josh Zlatin-Amishav wrote:
I translated a few of the Mailman subscripe and unsubscribe text files to Hebrew. I tried to add Hebrew (iso-8859-8-1) support by adding the following line to Defaults.py add_language('he', _('Hebrew'), 'iso-8859-8-1')
Fist, ISO 693 states the language code for the Hebrew is 'iw' not 'he'. Are you sure the above code is right?
Your correct, the -1 was a typo on my part that was supposed to be -i, and the language code was altogether wrong.
You may have to chose a proper charset name and register in the aliases.
Can you elaborate? Right now all Mailman messages are sent using us-ascii. If iso-8859-8 (or iso-8859-8-i) are recognized charsets, and the DEFAULT_SERVER_LANGUAGE = 'iw' how to I tell Mailman to use iso-8859-8-1 instead of us-ascii. Thank you for your help. -- - Josh
Josh Zlatin-Amishav wrote:
Can you elaborate? Right now all Mailman messages are sent using us-ascii. If iso-8859-8 (or iso-8859-8-i) are recognized charsets, and the DEFAULT_SERVER_LANGUAGE = 'iw' how to I tell Mailman to use iso-8859-8-1 instead of us-ascii.
Have you read README-I18N.en in the distribution tar ball? The section entitled 'ADDING NEW TRANSLATIONS' should be followed before you designate language in mm_cfg.py (not Defaults.py). In short, you should have templates/iw/* and messages/iw/LC_MESSAGES/mailman.(po|mo) files although the translation may not be complete. You may have to edit Makefile(.in) if you do this in the source code directory. Then you write def _(s): return s add_language('iw', _('Hebrew'), 'iso-8859-8-i') del _ DEFAULT_SERVER_LANGUAGE = 'iw' in Mailman/mm_cfg.py Note that Defaults.py is overwritten by upgrade and should not be edited by site admin. Make sure you are using mailman-2.1.7 and the bug fix patch installed. http://sourceforge.net/tracker/index.php?func=detail&aid=1405790&group_id=103&atid=300103 '-i' encoding aliase is introduced from mailman-2.1.7. -- Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp http://weather.is.kochi-u.ac.jp/
Josh Zlatin-Amishav wrote:
Can you elaborate? Right now all Mailman messages are sent using us-ascii. If iso-8859-8 (or iso-8859-8-i) are recognized charsets, and the DEFAULT_SERVER_LANGUAGE = 'iw' how to I tell Mailman to use iso-8859-8-1 instead of us-ascii.
What's wrong with using us-ascii? Mailman will always use us-ascii if that is sufficient to represent the message. Try sending something that is not supported in us-ascii. Or, better yet, please give us an example of a message that you consider incorrect, and state what you would like to see corrected. Regards, Martin
On Mon, 13 Feb 2006, [ISO-8859-1] "Martin v. L�wis" wrote:
Josh Zlatin-Amishav wrote:
Can you elaborate? Right now all Mailman messages are sent using us-ascii. If iso-8859-8 (or iso-8859-8-i) are recognized charsets, and the DEFAULT_SERVER_LANGUAGE = 'iw' how to I tell Mailman to use iso-8859-8-1 instead of us-ascii.
What's wrong with using us-ascii? Mailman will always use us-ascii if that is sufficient to represent the message.
My problem is that most of my end users are using MS Outlook and the Mailman messages that are in iso-8859-8 are not recognized in Outlook as such. I believe if I can set the charset in the Mailman messages to iso-8859-8 then Outlook will render them correctly. -- - Josh
Try sending something that is not supported in us-ascii.
Or, better yet, please give us an example of a message that you consider incorrect, and state what you would like to see corrected.
Regards, Martin
Josh Zlatin-Amishav wrote:
My problem is that most of my end users are using MS Outlook and the Mailman messages that are in iso-8859-8 are not recognized in Outlook as such. I believe if I can set the charset in the Mailman messages to iso-8859-8 then Outlook will render them correctly.
Again: can you give an example? I don't understand what a message is that is in "iso-8859-8 as such". Is that something that mailing list participants do, or something that mailman does? Regards, Martin
participants (3)
-
"Martin v. Löwis" -
Josh Zlatin-Amishav -
Tokio Kikuchi