From 50d84950d1060129da8eb3c3c490a7395b0837e5 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 18 Jul 2007 11:46:44 -0400 Subject: More work on completing the transition to setuptools. * Mailman/testing -> Mailman/test * Removed Mailman/testing/base.py * Fix mailmanctl by using a different way of calculating where the qrunner script is. The configuration file no longer knows what BIN_DIR is, but the mailmanctl script knows where it lives via sys.argv[0]. Also, PREFIX_DIR -> VAR_DIR. Also, * Since the overwhelmingly predominant use of ILanguageManager is to get the description, and since .get_language_data(code)[0] is not very readable, split the interface into .get_description() and .get_charset(). * In the setup, automatically add all Mailman.bin modules as command line scripts. --- Mailman/HTMLFormatter.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Mailman/HTMLFormatter.py') diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index a5e69dbcd..8fa650ed7 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -377,8 +377,8 @@ class HTMLFormatter: # If only one language is enabled for this mailing list, omit the # language choice buttons. if len(self.language_codes) == 1: - listlangs = _(config.languages.get_language_data( - self.preferred_language)) + listlangs = _( + config.languages.get_description(self.preferred_language)) else: listlangs = self.GetLangSelectBox(lang).Format() d = { @@ -425,8 +425,7 @@ class HTMLFormatter: lang = self.preferred_language # Figure out the available languages values = self.language_codes - legend = [config.languages.get_language_data(code)[0] - for code in values] + legend = [config.languages.get_description(code) for code in values] try: selected = values.index(lang) except ValueError: -- cgit v1.2.3-70-g09d2