mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
localization of email headers, added the datetime format settings in test_project settings.py with some docs
This commit is contained in:
@@ -106,6 +106,25 @@ USE_L10N = False
|
||||
|
||||
USE_TZ = True
|
||||
|
||||
# Webmail datetime formats according to
|
||||
# https://docs.djangoproject.com/en/1.10/ref/templates/builtins/
|
||||
# modoboa-webmail is able to show the datetime of emails
|
||||
# in two ways.
|
||||
# If none is provided, default is RFC 5322 formatted date.
|
||||
# For this, USE_L10N must be set to True!
|
||||
|
||||
# emails of the last week
|
||||
# en-us style
|
||||
WEBMAIL_SHORT_DATETIME_FORMAT = "l, P"
|
||||
# european style
|
||||
# WEBMAIL_SHORT_DATETIME_FORMAT = "l, H:i"
|
||||
|
||||
# emails older than a week
|
||||
# en-us style
|
||||
WEBMAIL_DATETIME_FORMAT = "N, j Y P"
|
||||
# european style
|
||||
# WEBMAIL_DATETIME_FORMAT = "d. N Y H:i"
|
||||
|
||||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/1.6/howto/static-files/
|
||||
|
||||
Reference in New Issue
Block a user