diff --git a/.gitignore b/.gitignore index 7a0f497..275e710 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc *~ __pycache__ +*.mo venv .venv db.sqlite3 diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 0741144..59c5634 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -38,9 +38,9 @@
- {% blocktrans %}Created on {{ page.created_at }} by {{ page.created_by }}{% endblocktrans %} + {% blocktrans with name=page.created_by date=page.created_at%}Created on {{ date }} by {{ name }}{% endblocktrans %} {% if page.updated_at %} - {% blocktrans %}Updated on {{ page.updated_at }} by {{ page.updated_by }}{% endblocktrans %} + {% blocktrans with name=page.updated_by date=page.updated_at%}Updated on {{ date }} by {{ name }}{% endblocktrans %} {% endif %}
diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index 4ba6011..46832d1 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-07-11 15:30-0700\n" +"POT-Creation-Date: 2019-07-11 15:39-0700\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -40,12 +40,12 @@ msgstr "" #: core/templates/core/index.html:41 #, python-format -msgid "Created on %(page.created_at)s by %(page.created_by)s" +msgid "Created on %(date)s by %(name)s" msgstr "" #: core/templates/core/index.html:43 #, python-format -msgid "Updated on %(page.updated_at)s by %(page.updated_by)s" +msgid "Updated on %(date)s by %(name)s" msgstr "" #: core/templates/core/index.html:53