i18n for "page x of y"
This commit is contained in:
7
bookwyrm/templates/snippets/page_text.html
Normal file
7
bookwyrm/templates/snippets/page_text.html
Normal file
@ -0,0 +1,7 @@
|
||||
{% load humanize %}
|
||||
{% load i18n %}
|
||||
{% if total_pages %}
|
||||
{% blocktrans with page=page|intcomma total_pages=total_pages|intcomma %}page {{ page }} of {{ total_pages }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with page=page|intcomma %}page {{ page }}{% endblocktrans %}
|
||||
{% endif %}
|
Reference in New Issue
Block a user