summaryrefslogtreecommitdiff
path: root/src/mailman/constants.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/constants.py')
-rw-r--r--src/mailman/constants.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mailman/constants.py b/src/mailman/constants.py
index 73158d8c7..1701c93f7 100644
--- a/src/mailman/constants.py
+++ b/src/mailman/constants.py
@@ -21,7 +21,7 @@ from __future__ import absolute_import, unicode_literals
__metaclass__ = type
__all__ = [
- 'SystemDefaultPreferences',
+ 'system_preferences',
]
@@ -44,8 +44,16 @@ class SystemDefaultPreferences:
acknowledge_posts = False
hide_address = True
- preferred_language = config.languages['en']
receive_list_copy = True
receive_own_postings = True
delivery_mode = DeliveryMode.regular
delivery_status = DeliveryStatus.enabled
+
+ @property
+ def preferred_language(self):
+ """Return the system preferred language."""
+ return config.languages['en']
+
+
+
+system_preferences = SystemDefaultPreferences()