From 51e9175b2f6d178d743cf05ccdd597891117a537 Mon Sep 17 00:00:00 2001 From: floguy Date: Sat, 30 Aug 2008 18:16:54 +0000 Subject: [PATCH 1/1] Added German locale. Thanks, Bela Hausmann! This fixes #9. git-svn-id: https://django-pagination.googlecode.com/svn/trunk@29 7f1efe38-554e-0410-b69d-834cb44da2d5 --- pagination/locale/de/LC_MESSAGES/django.po | 27 +++++++++++++++++++ .../templates/pagination/pagination.html | 9 ++++--- pagination/tests.py | 4 +-- 3 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 pagination/locale/de/LC_MESSAGES/django.po diff --git a/pagination/locale/de/LC_MESSAGES/django.po b/pagination/locale/de/LC_MESSAGES/django.po new file mode 100644 index 0000000..10657fe --- /dev/null +++ b/pagination/locale/de/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: 2008-07-28 13:26+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 "zurück" + +#: templates/pagination/pagination.html:21 +#: templates/pagination/pagination.html:23 +msgid "next" +msgstr "weiter" diff --git a/pagination/templates/pagination/pagination.html b/pagination/templates/pagination/pagination.html index 3799314..37cef40 100644 --- a/pagination/templates/pagination/pagination.html +++ b/pagination/templates/pagination/pagination.html @@ -1,9 +1,10 @@ {% if is_paginated %} +{% load i18n %} {% endif %} diff --git a/pagination/tests.py b/pagination/tests.py index 837e55c..21ec9d2 100644 --- a/pagination/tests.py +++ b/pagination/tests.py @@ -43,10 +43,10 @@ # ENDWARNING >>> t.render(Context({'var': range(21), 'request': RequestProxy()})) -u'\\n