Skip to content
Permalink
Browse files

Making DATE_FORMAT translatable. (fixes #2032)

  • Loading branch information
felixfontein committed Sep 6, 2015
1 parent 27dca29 commit bcbffc460d0242a1ab10b017973827f186aac641
Showing with 5 additions and 2 deletions.
  1. +1 −0 CHANGES.txt
  2. +1 −1 nikola/conf.py.in
  3. +3 −1 nikola/nikola.py
@@ -8,6 +8,7 @@ Features
* Made CATEGORY_PATH translatable (Issue #1914)
* Display post counts for archive links (Issue #2011)
* Document link/path handlers (Issue #2008)
* Made DATE_FORMAT translatable (Issue #2032)

Bugfixes
--------
@@ -140,7 +140,7 @@ TIMEZONE = ${TIMEZONE}
# Note that this does not affect DATE_FORMAT.
# FORCE_ISO8601 = False

# Date format used to display post dates.
# (Translatable) Date format used to display post dates.
# (str used by datetime.datetime.strftime)
# DATE_FORMAT = '%Y-%m-%d %H:%M'

@@ -553,6 +553,7 @@ def __init__(self, **config):
# PATH options (Issue #1914)
'TAG_PATH',
'CATEGORY_PATH',
'DATE_FORMAT',
)

self._GLOBAL_CONTEXT_TRANSLATABLE = ('blog_author',
@@ -564,7 +565,8 @@ def __init__(self, **config):
'social_buttons_code',
'search_form',
'body_end',
'extra_head_data',)
'extra_head_data',
'date_format',)
# WARNING: navigation_links SHOULD NOT be added to the list above.
# Themes ask for [lang] there and we should provide it.

0 comments on commit bcbffc4

Please sign in to comment.
You can’t perform that action at this time.