summaryrefslogtreecommitdiff
path: root/Mailman/HTMLFormatter.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-18 11:46:44 -0400
committerBarry Warsaw2007-07-18 11:46:44 -0400
commit50d84950d1060129da8eb3c3c490a7395b0837e5 (patch)
tree0902bb4b1a5c8f7caa05191e9de9d3d0f76fe648 /Mailman/HTMLFormatter.py
parent012fcb71e7e634b985219a7d5cf0deda87a2aa90 (diff)
downloadmailman-50d84950d1060129da8eb3c3c490a7395b0837e5.tar.gz
mailman-50d84950d1060129da8eb3c3c490a7395b0837e5.tar.zst
mailman-50d84950d1060129da8eb3c3c490a7395b0837e5.zip
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.
Diffstat (limited to 'Mailman/HTMLFormatter.py')
-rw-r--r--Mailman/HTMLFormatter.py7
1 files changed, 3 insertions, 4 deletions
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: