zbigniew szalbot wrote: > >In order to handle some phrases better in Polish, I edited >/usr/local/mailman/messages/pl/LC_MESSAGES/mailman.po followed by > >msgfmt -o mailman.mo mailman.po > >Then I wanted to do the same for the English language as I find some phrases >overly complicated for the current web users. > >However, I do not see the English language anywhere in >/usr/local/mailman/messages/ > >Where do I edit it?
The English language messages are in the Mailman code. The code contains things like _('English text'). This causes Mailman's i18n._() function to look up 'English text' in the messages file for the current language and present the resultant translation unless the current language is 'en' in which case, no translation is required. >I would like to edit this string: > >----- >Your confirmation is required in order to complete the subscription <snip> >----- If you find the "msgid" containing that string in /usr/local/mailman/messages/pl/LC_MESSAGES/mailman.po, you will see it is preceded by a comment like: #: Mailman/Cgi/confirm.py:246 which tells you that the source of that string is the Mailman/Cgi/confirm.py module around line 246. If you want to change that string, you have to edit it in the confirm.py module. Then you also have to edit the corresponding msgid string in the mailman.po file for each language you allow and rebuild the corresponding mailman.mo files. Otherwise, the lookup of the edited string will fail and it won't be translated. -- Mark Sapiro <[EMAIL PROTECTED]> 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://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp