[Mailman-Users] Changing Code and Looks

Mark Sapiro mark at msapiro.net
Tue Jul 24 04:48:56 CEST 2012


On 7/19/2012 7:33 AM, Brian Canty wrote:
> Hello - I posted a questions last week about the ability to unsubscribe,
> but found out that was not available.
> 
>  
> 
> Now I ask, it there a way where you can change the language that appears
> when you use the following statements?:
> 
>  
> 
> <MM-Options-Form-Start>
> 
> <MM-Editing-Options>
> 
> <MM-Form-End>


Those tags appear only in the listinfo.html template for a list. The
<MM-Options-Form-Start> and <MM-Form-End> tags generate only HTML <FORM
...> and </FORM> tags respectively and require no translation.

The text generated by the <MM-Editing-Options> tag should be translated
to the list's preferred_language or the language selected by the user at
the top of the listinfo page.


> And if you can edit this fields, where do you find them?


See the definition of FormatEditingOption in Mailman/HTMLFormatter.py
and also the definition of list_listinfo in Mailman/Cgi/listinfo.py.

Note that if you change the English text in FormatEditingOption(), you
will break all the i18n translations of this text unless you update the
respective message catalogs.

Probably a better way to deal with this is to just replace the
<MM-Editing-Options> tag in the listinfo.html template with the desired
result. See the FAQ at <http://wiki.list.org/x/jYA9> for info on where
to put edited templates.

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



More information about the Mailman-Users mailing list