=== modified file 'src/mailman/utilities/i18n.py' --- src/mailman/utilities/i18n.py 2011-05-08 03:35:18 +0000 +++ src/mailman/utilities/i18n.py 2011-05-25 19:51:28 +0000 @@ -63,9 +63,9 @@ languages.reverse() # File system locations to search. paths = [config.TEMPLATE_DIR, - os.path.join(config.TEMPLATE_DIR, 'site')] + os.path.join(config.LIST_DATA_DIR,'templates','site')] if mailing_list is not None: - paths.append(os.path.join(config.TEMPLATE_DIR, + paths.append(os.path.join(config.LIST_DATA_DIR,'templates', mailing_list.host_name)) paths.append(os.path.join(config.LIST_DATA_DIR, mailing_list.fqdn_listname)) @@ -90,10 +90,10 @@ /lists// * The domain-specific language directory - // + /templates// * The site-wide language directory - /site/ + /templates/site/ * The global default language directory / @@ -102,7 +102,7 @@ templates at the desired level, or if you only use the default templates, you don't need to change anything. NEVER modify files in / since Mailman will overwrite these when you - upgrade. Instead you can use /site. + upgrade. Instead you can use /templates/site. The path component is calculated as follows, in this order: @@ -118,23 +118,23 @@ in order: * /lists/test@example.com/it/foo.txt - * /example.com/it/foo.txt - * /site/it/foo.txt + * /templates/example.com/it/foo.txt + * /templates/site/it/foo.txt * /it/foo.txt * /lists/test@example.com/de/foo.txt - * /example.com/de/foo.txt - * /site/de/foo.txt + * /templates/example.com/de/foo.txt + * /templates/site/de/foo.txt * /de/foo.txt * /lists/test@example.com/fr/foo.txt - * /example.com/fr/foo.txt - * /site/fr/foo.txt + * /templates/example.com/fr/foo.txt + * /templates/site/fr/foo.txt * /fr/foo.txt * /lists/test@example.com/en/foo.txt - * /example.com/en/foo.txt - * /site/en/foo.txt + * /templates/example.com/en/foo.txt + * /templates/site/en/foo.txt * /en/foo.txt :param template_file: The name of the template file to search for.