
Hi guys,
I have a couple of questions:
- What file would I modify to customize the text for the subscription
results? I'm looking to customize the text in another language (pt_BR) but I can't find the text file. I do see the subscribe.html template and it makes a mention to <MM-Results>
- Is it possible to unsubscribe via the web in a similar fashion as using
the cgi-bin/subscribe method? I don't see an unsubscribe script under cgi-bin
thanks Ricardo

On 01/14/2014 04:28 PM, Ricardo Kleemann wrote:
- What file would I modify to customize the text for the subscription
results? I'm looking to customize the text in another language (pt_BR) but I can't find the text file. I do see the subscribe.html template and it makes a mention to <MM-Results>
The replacement for the <MM-Results> tag is built on the fly by the Mailman/Cgi/subscribe.py module. See that module for the English strings involved. These strings are the keys for the pt_BR translations in messages/pt_BR/LC_MESSAGES/mailman.po.
- Is it possible to unsubscribe via the web in a similar fashion as using
the cgi-bin/subscribe method? I don't see an unsubscribe script under cgi-bin
See the FAQ at http://wiki.list.org/x/uIA9.

Thanks Mark.
On Tue, Jan 14, 2014 at 8:42 PM, Mark Sapiro mark@msapiro.net wrote:
On 01/14/2014 04:28 PM, Ricardo Kleemann wrote:
- What file would I modify to customize the text for the subscription
results? I'm looking to customize the text in another language (pt_BR)
but
I can't find the text file. I do see the subscribe.html template and it makes a mention to <MM-Results>
The replacement for the <MM-Results> tag is built on the fly by the Mailman/Cgi/subscribe.py module. See that module for the English strings involved. These strings are the keys for the pt_BR translations in messages/pt_BR/LC_MESSAGES/mailman.po.
So I understand I need to use msgfmt.py to compile changes made to the
text.
It seems my mailman installation doesn't have that file, it's not in the bin directory and a "locate msgfmt.py" returns nothing... is there somewhere I can grab it?
Thank you. Ricardo

Hello Ricardo Kleemann
Am 2014-01-15 06:32, schrieb Ricardo Kleemann:
On Tue, Jan 14, 2014 at 8:42 PM, Mark Sapiro mark@msapiro.net wrote:
On 01/14/2014 04:28 PM, Ricardo Kleemann wrote:
- What file would I modify to customize the text for the subscription
results? I'm looking to customize the text in another language (pt_BR)
but
I can't find the text file. I do see the subscribe.html template and it makes a mention to <MM-Results>
The replacement for the <MM-Results> tag is built on the fly by the Mailman/Cgi/subscribe.py module. See that module for the English strings involved. These strings are the keys for the pt_BR translations in messages/pt_BR/LC_MESSAGES/mailman.po.
So I understand I need to use msgfmt.py to compile changes made to the text.
It seems my mailman installation doesn't have that file, it's not in the bin directory and a "locate msgfmt.py" returns nothing... is there somewhere I can grab it?
You need the GNU gettext package for your OS. msgfmt is a tool within it.
Kind regards, Christian Mack

Thank you for your very useful response below.
Regarding the unsubscribe feature, I can use this link but have some questions:
Unsubscribe: https://mail.python.org/mailman/options/mailman-users/ricardo%40americasnet....
If I have a page with an unsbuscribe button using the link above, it does 2 things:
- Sends out a confirmation email for unsubscribing
- Takes me to the list's options page
For what I'm trying to do, the email confirmation is sufficient. Is there any way or "trick" to disable the appearance of the options page and instead just put up some other text?
thanks Ricardo
On Wed, Jan 15, 2014 at 2:40 AM, Mailman Admin < mailman-admin@uni-konstanz.de> wrote:
Hello Ricardo Kleemann
Am 2014-01-15 06:32, schrieb Ricardo Kleemann:
On Tue, Jan 14, 2014 at 8:42 PM, Mark Sapiro mark@msapiro.net wrote:
On 01/14/2014 04:28 PM, Ricardo Kleemann wrote:
- What file would I modify to customize the text for the subscription
results? I'm looking to customize the text in another language (pt_BR)
but
I can't find the text file. I do see the subscribe.html template and it makes a mention to <MM-Results>
The replacement for the <MM-Results> tag is built on the fly by the Mailman/Cgi/subscribe.py module. See that module for the English strings involved. These strings are the keys for the pt_BR translations in messages/pt_BR/LC_MESSAGES/mailman.po.
So I understand I need to use msgfmt.py to compile changes made to the text.
It seems my mailman installation doesn't have that file, it's not in the bin directory and a "locate msgfmt.py" returns nothing... is there somewhere I can grab it?
You need the GNU gettext package for your OS. msgfmt is a tool within it.
Kind regards, Christian Mack
Mailman-Users mailing list Mailman-Users@python.org https://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: https://mail.python.org/mailman/options/mailman-users/ricardo%40americasnet....

Ricardo Kleemann wrote:
If I have a page with an unsbuscribe button using the link above, it does 2 things:
- Sends out a confirmation email for unsubscribing
- Takes me to the list's options page
For what I'm trying to do, the email confirmation is sufficient. Is there any way or "trick" to disable the appearance of the options page and instead just put up some other text?
If you post directly to the options CGI, you will get the response from that page. It you want to provide your own custom response, your page must be some kind of PHP, CGI or other script which will invoke the options CGI, capture it's response and generate its own response.
See the FAQ at http://wiki.list.org/x/uIA9.
participants (3)
-
Mailman Admin
-
Mark Sapiro
-
Ricardo Kleemann