<strong>{% trans "all" %}</strong>
{% endif %}
-{% for lang in languages %}
+{% for lang, lang_name in languages %}
|
{% if lang == language %}
- <strong>{{ lang }}</strong>
+ <strong>{{ lang_name }}</strong>
{% else %}
- <a href='?{% set_get "page" lang=lang %}'>{{ lang }}</a>
+ <a href='?{% set_get "page" lang=lang %}'>{{ lang_name }}</a>
{% endif %}
{% endfor %}
</p>
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from django.views.generic.list import ListView
+from django.conf import settings
from django.db.models import Count, Q
+from catalogue.constants import LANGUAGES_3TO2
from .constants import FN_TYPES
from .models import Note, Qualifier
nobj = nobj.filter(fltr)
self.languages = nobj.order_by('language').values_list(
'language', flat=True).distinct()
+ lang_names = dict(settings.LANGUAGES)
+ self.languages = [
+ (lang, lang_names.get(LANGUAGES_3TO2.get(lang, lang), lang))
+ for lang in self.languages]
nobj = objects
for key, fltr in filters.items():
<li><a href="{% url 'suggest' %}" id="suggest" class="ajaxable">{% trans "Report a bug or suggestion" %}</a></li>
<!--li><a href="http://turniej.wolnelektury.pl">Turniej Elektrybałtów</a></li-->
<li><a href="{% url 'reporting_catalogue_pdf' %}">{% trans "Download the catalogue in PDF format." %}</a></li>
- <!--li><a href="{% url 'infopage' "widget" %}">{% trans "Widget" %}</a></li-->
+ <li><a href="{% url 'dictionary_notes' %}">{% trans "Footnotes" %}</a></li>
<li><a href="{% url 'suggest_publishing' %}" id="suggest-publishing" class="ajaxable">{% trans "Missing a book?" %}</a></li>
<li><a href="{% url 'publish_plan' %}">{% trans "Publishing plan" %}</a></li>
<li><a href="{% url 'api' %}">API</a></li>