Mailman 2.1.15 translations not quite right
![](https://secure.gravatar.com/avatar/20508db314014dc586a2ced61e550e76.jpg?s=120&d=mm&r=g)
Hello,
I run a mailman system for a number of mailing lists. Recently I've noticed that a number of our pages aren't fully translated, when I think they probably should be. The server is a Debian 7.2 (wheezy) server and Mailman is 2.1.15. Python is 2.7.3, if that's of any use. There's nothing obvious in the 'error' log in /var/log/mailman. Any other logs I could check?
As an example:
https://lists.okfn.org/mailman/listinfo/cienciaaberta
You can see that the top is in English and the bottom is in Portugese (Brazilian).
Can anyone give me any useful pointers as to what can be done to fix? My google-fu has rather failed me on this one.
Thanks,
Matt
-- Matthew Moore Sysadmin Open Knowledge - www.okfn.org Skype - notmatt
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 11/28/2014 07:24 AM, Matt Moore wrote:
I can't speak to anything other than the listinfo page in your example, but someone has edited that template, possibly by the Edit the public HTML pages and text files -> General list information page link in the web list admin interface or possibly by using the info in the FAQ at <http://wiki.list.org/x/jYA9>. The default pt_BR template looks fully translated to me.
You won't find anything logged about badly translated templates or missing or incorrect translations in message catalogs. Mailman just takes what's there and assumes that's what's wanted.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 11/30/2014 02:07 PM, Bruinen wrote:
This is because not all the i18n strings in Mailman's admin CGI module are translated in the German message catalog in Mailman 2.1.15.
In Mailman 2.1.18-1 there are a few sections such as bounce processing and content filtering that have significant untranslated portions, and there are a few other untranslated strings, mostly having to do with newly added features.
If you wish to help by providing translations for the untranslated pieces, see <http://wiki.list.org/display/DEV/i18nhowto>, and join the mailman-i18n list at <https://mail.python.org/mailman/listinfo/mailman-i18n> and ask for help there.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/20508db314014dc586a2ced61e550e76.jpg?s=120&d=mm&r=g)
Mark,
I've looked carefully at that template ( https://lists.okfn.org/mailman/listinfo/cienciaaberta ) and the template on this list - https://mail.python.org/mailman/listinfo/mailman-i18n and I really can't notice the difference.
Could you please give me a pointer as to which bits are wrong?
Cheers,
Matt
On 29 November 2014 at 01:49, Mark Sapiro <mark@msapiro.net> wrote:
-- Matthew Moore Sysadmin Open Knowledge - www.okfn.org Skype - notmatt
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 12/30/2014 04:50 AM, Matt Moore wrote:
Those are not the templates. They are the pages rendered from the templates.
You need to go to the list's web admin interface and follow the link "Other Administrative Activities -> Edit the public HTML pages and text files" in the section at the upper right ("Outras Atividades Administrativas -> Editar as páginas HTML públicas e arquivos de texto" in pt_BR) and follow the General list information page (Página de informações gerais da lista) link on the resulting page.
This will show you the template your list is using. I have attached a copy of the default pt_BR listinfo.html template. If you think it is OK, you can revert your list to the default by removing any list specific, domain specific or sitewide edited version of this template. This may be found at /var/lib/mailman/lists/cienciaaberta/pt_BR/listinfo.html in a Debian package, or it may be in /var/lib/mailman/templates/site/pt_BR/listinfo.html or /var/lib/mailman/templates/lists.okfn.org/pt_BR/listinfo.html - See the FAQ at <http://wiki.list.org/x/jYA9> for more info.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/20508db314014dc586a2ced61e550e76.jpg?s=120&d=mm&r=g)
Hi Mark,
I probably should have been a bit more detailed, I was looking at the template as you described through the Mailman UI and I was comparing that with the source code from the rendered page, they're quite similar. However your extra information and the pointer to look in the folder made me realise what the mistake was. I'd assumed that the template was supposed to be in English and that some programming magic happened elsewhere to change the lanuage. That's obviously not the case, so I put the copy of the translation into the pt_BR folder as you suggested and that fixed the issue.
Many thanks for the help and detailed explanations. I really appreciate it.
Cheers,
Matt
On 30 December 2014 at 20:02, Mark Sapiro <mark@msapiro.net> wrote:
-- Matthew Moore Sysadmin Open Knowledge - www.okfn.org Skype - notmatt
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 11/28/2014 07:24 AM, Matt Moore wrote:
I can't speak to anything other than the listinfo page in your example, but someone has edited that template, possibly by the Edit the public HTML pages and text files -> General list information page link in the web list admin interface or possibly by using the info in the FAQ at <http://wiki.list.org/x/jYA9>. The default pt_BR template looks fully translated to me.
You won't find anything logged about badly translated templates or missing or incorrect translations in message catalogs. Mailman just takes what's there and assumes that's what's wanted.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 11/30/2014 02:07 PM, Bruinen wrote:
This is because not all the i18n strings in Mailman's admin CGI module are translated in the German message catalog in Mailman 2.1.15.
In Mailman 2.1.18-1 there are a few sections such as bounce processing and content filtering that have significant untranslated portions, and there are a few other untranslated strings, mostly having to do with newly added features.
If you wish to help by providing translations for the untranslated pieces, see <http://wiki.list.org/display/DEV/i18nhowto>, and join the mailman-i18n list at <https://mail.python.org/mailman/listinfo/mailman-i18n> and ask for help there.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/20508db314014dc586a2ced61e550e76.jpg?s=120&d=mm&r=g)
Mark,
I've looked carefully at that template ( https://lists.okfn.org/mailman/listinfo/cienciaaberta ) and the template on this list - https://mail.python.org/mailman/listinfo/mailman-i18n and I really can't notice the difference.
Could you please give me a pointer as to which bits are wrong?
Cheers,
Matt
On 29 November 2014 at 01:49, Mark Sapiro <mark@msapiro.net> wrote:
-- Matthew Moore Sysadmin Open Knowledge - www.okfn.org Skype - notmatt
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 12/30/2014 04:50 AM, Matt Moore wrote:
Those are not the templates. They are the pages rendered from the templates.
You need to go to the list's web admin interface and follow the link "Other Administrative Activities -> Edit the public HTML pages and text files" in the section at the upper right ("Outras Atividades Administrativas -> Editar as páginas HTML públicas e arquivos de texto" in pt_BR) and follow the General list information page (Página de informações gerais da lista) link on the resulting page.
This will show you the template your list is using. I have attached a copy of the default pt_BR listinfo.html template. If you think it is OK, you can revert your list to the default by removing any list specific, domain specific or sitewide edited version of this template. This may be found at /var/lib/mailman/lists/cienciaaberta/pt_BR/listinfo.html in a Debian package, or it may be in /var/lib/mailman/templates/site/pt_BR/listinfo.html or /var/lib/mailman/templates/lists.okfn.org/pt_BR/listinfo.html - See the FAQ at <http://wiki.list.org/x/jYA9> for more info.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/20508db314014dc586a2ced61e550e76.jpg?s=120&d=mm&r=g)
Hi Mark,
I probably should have been a bit more detailed, I was looking at the template as you described through the Mailman UI and I was comparing that with the source code from the rendered page, they're quite similar. However your extra information and the pointer to look in the folder made me realise what the mistake was. I'd assumed that the template was supposed to be in English and that some programming magic happened elsewhere to change the lanuage. That's obviously not the case, so I put the copy of the translation into the pt_BR folder as you suggested and that fixed the issue.
Many thanks for the help and detailed explanations. I really appreciate it.
Cheers,
Matt
On 30 December 2014 at 20:02, Mark Sapiro <mark@msapiro.net> wrote:
-- Matthew Moore Sysadmin Open Knowledge - www.okfn.org Skype - notmatt
participants (4)
-
Bruinen
-
Marco Stoecker
-
Mark Sapiro
-
Matt Moore