Proper blocktrans usage

This commit is contained in:
Phillip Stephens
2019-07-11 15:40:45 -07:00
parent 5e20c3c34f
commit a8efbfb871
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -1,6 +1,7 @@
*.pyc
*~
__pycache__
*.mo
venv
.venv
db.sqlite3
+2 -2
View File
@@ -38,9 +38,9 @@
<div class="row">
<div class="col-8">
<span class="float-left mt-2 text-light">
{% 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 %}
</span>
</div>
+3 -3
View File
@@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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