diff options
| author | Barry Warsaw | 2009-02-12 20:36:21 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-02-12 20:36:21 -0500 |
| commit | 62f4c909f90535986614a411db982bdcccaec3a1 (patch) | |
| tree | 2fe5dd3316cea73f63cb34230d848758050eade3 /src/mailman/constants.py | |
| parent | 2b28803e7165e91d812cd9e9e3804a6d9bdce8a1 (diff) | |
| download | mailman-62f4c909f90535986614a411db982bdcccaec3a1.tar.gz mailman-62f4c909f90535986614a411db982bdcccaec3a1.tar.zst mailman-62f4c909f90535986614a411db982bdcccaec3a1.zip | |
Much clean up of the language code, though more can be done. Factor out the
language manager stuff into a separate Language class, and be clearer in the
APIs about whether we want a language code or a Language instance.
The impetus to this was to get rid of Utils.GetCharSet(), which is done.
Diffstat (limited to 'src/mailman/constants.py')
| -rw-r--r-- | src/mailman/constants.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/constants.py b/src/mailman/constants.py index 39c4547f8..2cd48270c 100644 --- a/src/mailman/constants.py +++ b/src/mailman/constants.py @@ -17,7 +17,7 @@ """Various constants and enumerations.""" -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals __metaclass__ = type __all__ = [ @@ -27,6 +27,7 @@ __all__ = [ from zope.interface import implements +from mailman.config import config from mailman.interfaces.member import DeliveryMode, DeliveryStatus from mailman.interfaces.preferences import IPreferences @@ -37,7 +38,7 @@ class SystemDefaultPreferences: acknowledge_posts = False hide_address = True - preferred_language = 'en' + preferred_language = config.languages['en'] receive_list_copy = True receive_own_postings = True delivery_mode = DeliveryMode.regular |
