From 257f7862eceadd97acbe204ca85b9520265fe27c Mon Sep 17 00:00:00 2001 From: dgarcia360 Date: Fri, 8 Feb 2019 15:09:21 +0000 Subject: [PATCH] Fixed gettext is broken when ablog is used #30 --- ablog/templates/catalog.html | 2 +- ablog/templates/collection.html | 6 +++--- ablog/templates/postcard.html | 4 ++-- ablog/templates/postcard2.html | 2 +- ablog/templates/recentposts.html | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ablog/templates/catalog.html b/ablog/templates/catalog.html index 7ef1842..36dee8f 100644 --- a/ablog/templates/catalog.html +++ b/ablog/templates/catalog.html @@ -13,7 +13,7 @@

{% if fa %}{% endif %} {% if post.published %} - {{ post.date.strftime(gettext(ablog.post_date_format)) }} + {{ post.date.strftime(ablog.post_date_format) }} {% else %} Draft {% endif %} diff --git a/ablog/templates/collection.html b/ablog/templates/collection.html index f60672f..d0cd86e 100644 --- a/ablog/templates/collection.html +++ b/ablog/templates/collection.html @@ -18,7 +18,7 @@

{% if fa %}{% endif %} {% if post.published %} - {{ post.date.strftime(gettext(ablog.post_date_format)) }} + {{ post.date.strftime(ablog.post_date_format) }} {% else %} Draft {% endif %} @@ -36,10 +36,10 @@