From 263e2a71c685149e406d7bee1de93b362970a88f Mon Sep 17 00:00:00 2001 From: Lukasz Anwajler Date: Tue, 11 May 2010 09:27:08 +0200 Subject: [PATCH 1/1] Started i18n. --- wolnelektury/locale/pl/LC_MESSAGES/django.mo | Bin 1644 -> 0 bytes wolnelektury/locale/pl/LC_MESSAGES/django.po | 158 ++++-------------- wolnelektury/settings.py | 3 +- wolnelektury/templates/1percent.html | 1 + wolnelektury/templates/404.html | 7 +- wolnelektury/templates/500.html | 7 +- wolnelektury/templates/admin/base_site.html | 5 +- .../admin/catalogue/book/change_list.html | 3 +- wolnelektury/templates/auth/login.html | 15 +- wolnelektury/templates/base.html | 29 ++-- .../templates/catalogue/book_detail.html | 55 +++--- .../templates/catalogue/book_fragments.html | 13 +- .../templates/catalogue/book_list.html | 7 +- .../templates/catalogue/book_sets.html | 9 +- .../templates/catalogue/book_short.html | 7 +- .../templates/catalogue/book_text.html | 5 +- .../templates/catalogue/breadcrumbs.html | 3 +- .../templates/catalogue/folded_tag_list.html | 7 +- .../templates/catalogue/fragment_sets.html | 9 +- .../templates/catalogue/fragment_short.html | 7 +- .../templates/catalogue/main_page.html | 51 +++--- .../templates/catalogue/tag_list.html | 1 + .../catalogue/tagged_object_list.html | 1 + .../templates/catalogue/user_shelves.html | 1 + .../lessons/ajax_document_detail.html | 3 +- .../templates/lessons/document_detail.html | 5 +- .../templates/lessons/document_list.html | 7 +- .../templates/pagination/pagination.html | 9 +- 28 files changed, 180 insertions(+), 248 deletions(-) delete mode 100644 wolnelektury/locale/pl/LC_MESSAGES/django.mo diff --git a/wolnelektury/locale/pl/LC_MESSAGES/django.mo b/wolnelektury/locale/pl/LC_MESSAGES/django.mo deleted file mode 100644 index d0ea820cd7e3c89031b1701579df950393d634c8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1644 zcmYL{J&YSg6vrPBK4QKTJ_3O-i3CJMdpJPgvV?Hvymzti$KmsxAQWhBcf6jgZ^!J; z;@AZekq}ZU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++ b/wolnelektury/locale/pl/LC_MESSAGES/django.po @@ -3,11 +3,12 @@ # 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-09-04 06:17-0500\n" +"POT-Creation-Date: 2010-05-04 14:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -15,140 +16,45 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: catalogue/models.py:15 -msgid "author" -msgstr "autor" - -#: catalogue/models.py:16 -msgid "epoch" -msgstr "epoka" - -#: catalogue/models.py:17 -msgid "kind" -msgstr "rodzaj" - -#: catalogue/models.py:18 -msgid "genre" -msgstr "gatunek" - -#: catalogue/models.py:19 -msgid "theme" -msgstr "motyw" - -#: catalogue/models.py:20 -msgid "set" -msgstr "zestaw" - -#: catalogue/models.py:34 -msgid "name" -msgstr "nazwa" - -#: catalogue/models.py:35 catalogue/models.py:71 -msgid "slug" -msgstr "slug" - -#: catalogue/models.py:36 -msgid "sort key" -msgstr "klucz sortowania" - -#: catalogue/models.py:37 -msgid "category" -msgstr "kategoria" - -#: catalogue/models.py:45 catalogue/models.py:72 catalogue/models.py:86 -#: chunks/models.py:11 -msgid "description" -msgstr "opis" - -#: catalogue/models.py:54 newtagging/models.py:470 -msgid "tag" -msgstr "tag" - -#: catalogue/models.py:55 newtagging/admin.py:38 -msgid "tags" -msgstr "tagi" - -#: catalogue/models.py:70 -msgid "title" -msgstr "tytuł" - -#: catalogue/models.py:73 -msgid "creation date" -msgstr "data utworzenia" - -#: catalogue/models.py:76 -msgid "XML file" -msgstr "plik XML" - -#: catalogue/models.py:77 -msgid "PDF file" -msgstr "plik PDF" - -#: catalogue/models.py:78 -msgid "ODT file" -msgstr "plik ODT" - -#: catalogue/models.py:79 -msgid "HTML file" -msgstr "plik HTML" - -#: catalogue/models.py:162 -msgid "book" -msgstr "książka" - -#: catalogue/models.py:163 -msgid "books" -msgstr "książki" - -#: catalogue/models.py:180 -msgid "fragment" -msgstr "fragment" - -#: catalogue/models.py:181 -msgid "fragments" -msgstr "fragmenty" - -#: chunks/models.py:10 -msgid "key" -msgstr "klucz" - -#: chunks/models.py:10 -msgid "A unique name for this chunk of content" -msgstr "Unikalna nazwa dla tego kawałka treści" +#: templates/base.html:19 +msgid "" +"Internet Explorer cannot display this site properly. Click here to read " +"more..." +msgstr "" -#: chunks/models.py:12 -msgid "content" -msgstr "zawartość" +#: templates/base.html:27 +msgid "See more" +msgstr "" -#: chunks/models.py:16 -msgid "chunk" -msgstr "kawałek" +#: templates/base.html:36 +msgid "Welcome" +msgstr "" -#: chunks/models.py:17 -msgid "chunks" -msgstr "kawałki" +#: templates/base.html:37 +msgid "Your shelf" +msgstr "" -#: newtagging/models.py:471 -msgid "content type" -msgstr "typ zawartości" +#: templates/base.html:39 +msgid "Administration" +msgstr "" -#: newtagging/models.py:472 -msgid "object id" -msgstr "id obiektu" +#: templates/base.html:41 +msgid "Logout" +msgstr "" -#: newtagging/views.py:29 -msgid "tagged_object_list must be called with a queryset or a model." +#: templates/base.html:44 templates/base.html.py:76 templates/base.html:80 +#: templates/base.html.py:84 +msgid "Sign in" msgstr "" -#: newtagging/views.py:31 -msgid "tagged_object_list must be called with a tag model." +#: templates/base.html:73 templates/base.html.py:94 +msgid "Close" msgstr "" -#: newtagging/views.py:33 -msgid "tagged_object_list must be called with a tag." +#: templates/base.html:76 templates/base.html.py:84 templates/base.html:88 +msgid "Register" msgstr "" -#: newtagging/views.py:37 -#, python-format -msgid "No tags found matching \"%s\"." -msgstr "Nie znaleziono tagów zgodnych z \"%s\"." +#: templates/base.html:96 +msgid "Loading" +msgstr "" diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 6b7d33383..164a7de52 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -3,7 +3,7 @@ from os import path PROJECT_DIR = path.abspath(path.dirname(__file__)) -DEBUG = False +DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = [ @@ -75,6 +75,7 @@ MIDDLEWARE_CLASSES = [ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'pagination.middleware.PaginationMiddleware', + 'django.middleware.locale.LocaleMiddleware', ] ROOT_URLCONF = 'wolnelektury.urls' diff --git a/wolnelektury/templates/1percent.html b/wolnelektury/templates/1percent.html index 7ecb7a235..2e4c5576b 100644 --- a/wolnelektury/templates/1percent.html +++ b/wolnelektury/templates/1percent.html @@ -1,3 +1,4 @@ +{% load i18n %} {% extends 'base.html' %} {% block title %}1% podatku na WolneLektury.pl{% endblock title %} diff --git a/wolnelektury/templates/404.html b/wolnelektury/templates/404.html index e51ec8216..b4968a248 100644 --- a/wolnelektury/templates/404.html +++ b/wolnelektury/templates/404.html @@ -1,8 +1,9 @@ +{% load i18n %} -404 - Zagubiona strona w WolneLektury.pl +404 - {% trans "Site does not exist" %} - WolneLektury.pl @@ -11,9 +12,9 @@ -

Podana strona nie istnieje

+

{% trans "Site does not exist" %}

-Przepraszamy, ale ta strona nie istnieje. Sprawdź czy podałeś dobry adres, lub przejdź do strony głównej. +{% trans "We are sorry, but this site does not exist. Please check if you entered correct address or go to "%} {% trans "homepage" %}.

{% endblock extrahead %} {% block body %} -

Materiały pomocnicze dla nauczycieli

+

{% trans "Hand-outs for teachers" %}

-

{{ form.q }} lub wróć do strony głównej

+

{{ form.q }} {% trans "or" %} {% trans "return to homepage" %}

diff --git a/wolnelektury/templates/pagination/pagination.html b/wolnelektury/templates/pagination/pagination.html index 36c297bc1..7489d4a55 100644 --- a/wolnelektury/templates/pagination/pagination.html +++ b/wolnelektury/templates/pagination/pagination.html @@ -1,9 +1,10 @@ +{% load i18n %} {% if is_paginated %} {% endif %} -- 2.20.1