Skip to content

Commit

Permalink
Making DATE_FORMAT translatable. (fixes #2032)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Sep 6, 2015
1 parent 27dca29 commit bcbffc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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
--------
Expand Down
2 changes: 1 addition & 1 deletion nikola/conf.py.in
Expand Up @@ -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'

Expand Down
4 changes: 3 additions & 1 deletion nikola/nikola.py
Expand Up @@ -553,6 +553,7 @@ def __init__(self, **config):
# PATH options (Issue #1914)
'TAG_PATH',
'CATEGORY_PATH',
'DATE_FORMAT',
)

self._GLOBAL_CONTEXT_TRANSLATABLE = ('blog_author',
Expand All @@ -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.

Expand Down

0 comments on commit bcbffc4

Please sign in to comment.