fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bd36df
)
fix untranslated english texts
author
Jan Szejko
<j-sz@o2.pl>
Mon, 25 Jan 2016 13:47:54 +0000
(14:47 +0100)
committer
Jan Szejko
<j-sz@o2.pl>
Mon, 25 Jan 2016 13:47:54 +0000
(14:47 +0100)
src/catalogue/constants.py
patch
|
blob
|
history
src/catalogue/templates/catalogue/tag_box.html
patch
|
blob
|
history
src/catalogue/templates/catalogue/tag_catalogue.html
patch
|
blob
|
history
src/catalogue/views.py
patch
|
blob
|
history
diff --git
a/src/catalogue/constants.py
b/src/catalogue/constants.py
index
d1a5dde
..
f592c71
100644
(file)
--- a/
src/catalogue/constants.py
+++ b/
src/catalogue/constants.py
@@
-46,3
+46,13
@@
CATEGORIES_NAME_PLURAL = {
'set': _('sets'),
'thing': _('things'),
}
+
+WHOLE_CATEGORY = {
+ 'author': _('All authors'),
+ 'epoch': _('All epochs'),
+ 'kind': _('All kinds'),
+ 'genre': _('All genres'),
+ 'theme': _('All themes'),
+ 'set': _('All sets'),
+ 'thing': _('All things'),
+}
diff --git
a/src/catalogue/templates/catalogue/tag_box.html
b/src/catalogue/templates/catalogue/tag_box.html
index
122b670
..
e16e553
100644
(file)
--- a/
src/catalogue/templates/catalogue/tag_box.html
+++ b/
src/catalogue/templates/catalogue/tag_box.html
@@
-6,8
+6,7
@@
{% if tag.description %}
{{ tag.description|safe|truncatewords_html:40 }}
{% else %}
- <em>
No description
</em>
+ <em>
{% trans "No description." %}
</em>
{% endif %}
-
</div>
{% endspaceless %}
diff --git
a/src/catalogue/templates/catalogue/tag_catalogue.html
b/src/catalogue/templates/catalogue/tag_catalogue.html
index
0279a0e
..
22a678f
100644
(file)
--- a/
src/catalogue/templates/catalogue/tag_catalogue.html
+++ b/
src/catalogue/templates/catalogue/tag_catalogue.html
@@
-16,7
+16,7
@@
</a>
{% endfor %}
-<h2>
All {{ title
}}</h2>
+<h2>
{{ whole_category
}}</h2>
{% plain_list tags %}
diff --git
a/src/catalogue/views.py
b/src/catalogue/views.py
index
084396b
..
71b1de3
100644
(file)
--- a/
src/catalogue/views.py
+++ b/
src/catalogue/views.py
@@
-720,6
+720,7
@@
def tag_catalogue(request, category):
'tags': tags,
'best': best,
'title': constants.CATEGORIES_NAME_PLURAL[category],
+ 'whole_category': constants.WHOLE_CATEGORY[category],
})