forked from mirrors/bookwyrm
Properly localize book format
This commit is contained in:
parent
dede101d17
commit
3621224074
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% firstof book.physical_format_detail book.physical_format as format %}
|
{% firstof book.physical_format_detail book.get_physical_format_display as format %}
|
||||||
{% firstof book.physical_format book.physical_format_detail as format_property %}
|
{% firstof book.physical_format book.physical_format_detail as format_property %}
|
||||||
{% with pages=book.pages %}
|
{% with pages=book.pages %}
|
||||||
{% if format or pages %}
|
{% if format or pages %}
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
{% if format and not pages %}
|
{% if format and not pages %}
|
||||||
{% blocktrans %}{{ format }}{% endblocktrans %}
|
{{ format }}
|
||||||
{% elif format and pages %}
|
{% elif format and pages %}
|
||||||
{% blocktrans %}{{ format }}, {{ pages }} pages{% endblocktrans %}
|
{% blocktrans %}{{ format }}, {{ pages }} pages{% endblocktrans %}
|
||||||
{% elif pages %}
|
{% elif pages %}
|
||||||
|
|
Loading…
Reference in a new issue