From: Jan Szejko Date: Mon, 25 Jan 2016 13:47:54 +0000 (+0100) Subject: fix untranslated english texts X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/0ce414772bea056d8bd6cbd15ed589d4fc827ce9?ds=inline fix untranslated english texts --- diff --git a/src/catalogue/constants.py b/src/catalogue/constants.py index d1a5ddee3..f592c712f 100644 --- 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 122b67057..e16e5534d 100644 --- 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 %} - No description + {% trans "No description." %} {% endif %} - {% endspaceless %} diff --git a/src/catalogue/templates/catalogue/tag_catalogue.html b/src/catalogue/templates/catalogue/tag_catalogue.html index 0279a0e64..22a678f3d 100644 --- a/src/catalogue/templates/catalogue/tag_catalogue.html +++ b/src/catalogue/templates/catalogue/tag_catalogue.html @@ -16,7 +16,7 @@ {% endfor %} -

All {{ title }}

+

{{ whole_category }}

{% plain_list tags %} diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 084396bd4..71b1de320 100644 --- 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], })