From: Zygmunt Krynicki Date: Mon, 13 Jun 2011 11:56:31 +0000 (+0200) Subject: Merge branch 'master' of git://github.com/hgrimelid/django-pagination X-Git-Tag: release-2.0~36 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/8bdbfba8a3c27400c1535b761de439cf87884481?hp=5cbe6d1e24e434332fd8872e8fb5d2a1c830a052 Merge branch 'master' of git://github.com/hgrimelid/django-pagination Conflicts: linaro_django_pagination/templatetags/pagination_tags.py --- diff --git a/linaro_django_pagination/locale/nn/LC_MESSAGES/django.po b/linaro_django_pagination/locale/nn/LC_MESSAGES/django.po new file mode 100644 index 0000000..c6e35da --- /dev/null +++ b/linaro_django_pagination/locale/nn/LC_MESSAGES/django.po @@ -0,0 +1,27 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-03-28 10:48+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: templates/pagination/pagination.html:5 +#: templates/pagination/pagination.html:7 +msgid "previous" +msgstr "Førre" + +#: templates/pagination/pagination.html:21 +#: templates/pagination/pagination.html:23 +msgid "next" +msgstr "Neste" diff --git a/linaro_django_pagination/locale/no/LC_MESSAGES/django.po b/linaro_django_pagination/locale/no/LC_MESSAGES/django.po new file mode 100644 index 0000000..cbf0fda --- /dev/null +++ b/linaro_django_pagination/locale/no/LC_MESSAGES/django.po @@ -0,0 +1,27 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2010-03-28 10:48+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: templates/pagination/pagination.html:5 +#: templates/pagination/pagination.html:7 +msgid "previous" +msgstr "Forrige" + +#: templates/pagination/pagination.html:21 +#: templates/pagination/pagination.html:23 +msgid "next" +msgstr "Neste" diff --git a/linaro_django_pagination/templates/pagination/pagination.html b/linaro_django_pagination/templates/pagination/pagination.html index fe566a8..037f6d3 100644 --- a/linaro_django_pagination/templates/pagination/pagination.html +++ b/linaro_django_pagination/templates/pagination/pagination.html @@ -11,14 +11,14 @@ {% ifequal page page_obj.number %} {{ page }} {% else %} - {{ page }} + {{ page }} {% endifequal %} {% else %} ... {% endif %} {% endfor %} {% if page_obj.has_next %} - + {% else %} {% trans "next" %} ›› {% endif %} diff --git a/linaro_django_pagination/templatetags/pagination_tags.py b/linaro_django_pagination/templatetags/pagination_tags.py index ab87ed4..aec6405 100644 --- a/linaro_django_pagination/templatetags/pagination_tags.py +++ b/linaro_django_pagination/templatetags/pagination_tags.py @@ -124,8 +124,7 @@ class AutoPaginateNode(template.Node): context['page_obj'] = page_obj return u'' - -def paginate(context, window=DEFAULT_WINDOW, hashtag=''): +def paginate(context, window=DEFAULT_WINDOW): """ Renders the ``pagination/pagination.html`` template, resulting in a Digg-like display of the available pages, given the current page. If there @@ -230,7 +229,6 @@ def paginate(context, window=DEFAULT_WINDOW, hashtag=''): 'records': records, 'page_obj': page_obj, 'paginator': paginator, - 'hashtag': hashtag, 'is_paginated': paginator.count > paginator.per_page, } if 'request' in context: