msgstr ""
"Project-Id-Version: Platforma Redakcyjna\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-05-10 16:00+0200\n"
-"PO-Revision-Date: 2012-05-10 16:05+0100\n"
-"Last-Translator: Marcin Koziej <marcin@bohomass.com>\n"
+"POT-Creation-Date: 2012-06-18 12:52+0200\n"
+"PO-Revision-Date: 2012-06-18 12:53+0100\n"
+"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: Fundacja Nowoczesna Polska <fundacja@nowoczesnapolska.org.pl>\n"
"Language: pl\n"
"MIME-Version: 1.0\n"
msgid "File should be UTF-8 encoded."
msgstr "Plik powinien mieć kodowanie UTF-8."
-#: models/book.py:23
+#: models/book.py:27
#: models/chunk.py:23
msgid "title"
msgstr "tytuł"
-#: models/book.py:24
+#: models/book.py:28
#: models/chunk.py:24
msgid "slug"
msgstr "slug"
-#: models/book.py:25
+#: models/book.py:29
msgid "public"
msgstr "publiczna"
-#: models/book.py:26
+#: models/book.py:30
msgid "scan gallery name"
msgstr "nazwa galerii skanów"
-#: models/book.py:29
+#: models/book.py:33
msgid "parent"
msgstr "rodzic"
-#: models/book.py:30
+#: models/book.py:34
msgid "parent number"
msgstr "numeracja rodzica"
-#: models/book.py:47
+#: models/book.py:51
#: models/chunk.py:21
#: models/publish_log.py:17
msgid "book"
msgstr "książka"
-#: models/book.py:48
+#: models/book.py:52
msgid "books"
msgstr "książki"
-#: models/book.py:235
+#: models/book.py:250
msgid "No chunks in the book."
msgstr "Książka nie ma części."
-#: models/book.py:239
+#: models/book.py:254
msgid "Not all chunks have publishable revisions."
msgstr "Niektóre części nie są gotowe do publikacji."
-#: models/book.py:248
+#: models/book.py:263
msgid "Invalid XML"
msgstr "Nieprawidłowy XML"
-#: models/book.py:250
+#: models/book.py:265
msgid "No Dublin Core found."
msgstr "Brak sekcji Dublin Core."
-#: models/book.py:252
+#: models/book.py:267
msgid "Invalid Dublin Core"
msgstr "Nieprawidłowy Dublin Core"
-#: models/book.py:255
+#: models/book.py:270
msgid "rdf:about is not"
msgstr "rdf:about jest różny od"
msgid "Add"
msgstr "Dodaj"
+#: templatetags/catalogue.py:37
+msgid "Covers"
+msgstr "Okładki"
+
#: templatetags/wall.py:49
msgid "Related edit"
msgstr "Powiązana zmiana"
import re
from urllib2 import urlopen
from django import forms
+from django.utils.translation import ugettext_lazy as _
from cover.models import Image
class ImageAddForm(forms.ModelForm):
class FlickrForm(forms.Form):
- source_url = forms.URLField()
+ source_url = forms.URLField(label=_('Flickr URL'))
def clean_source_url(self):
url = self.cleaned_data['source_url']
--- /dev/null
+# 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 <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-06-18 12:36+0200\n"
+"PO-Revision-Date: 2012-06-18 12:38+0100\n"
+"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
+
+#: forms.py:37
+msgid "Flickr URL"
+msgstr "URL z Flickra"
+
+#: models.py:18
+msgid "title"
+msgstr "tytuł"
+
+#: models.py:19
+msgid "author"
+msgstr "autor"
+
+#: models.py:20
+msgid "license name"
+msgstr "nazwa licencji"
+
+#: models.py:21
+msgid "license URL"
+msgstr "URL licencji"
+
+#: models.py:22
+msgid "source URL"
+msgstr "URL źródła"
+
+#: models.py:23
+msgid "image download URL"
+msgstr "URL pliku do pobrania"
+
+#: models.py:24
+msgid "file"
+msgstr "plik"
+
+#: models.py:27
+msgid "cover image"
+msgstr "obrazek na okładkę"
+
+#: models.py:28
+msgid "cover images"
+msgstr "obrazki na okładki"
+
+#: templates/cover/add_image.html:6
+#: templates/cover/add_image.html.py:21
+msgid "Add image"
+msgstr "Dodaj obrazek"
+
+#: templates/cover/add_image.html:13
+msgid "Load from Flickr"
+msgstr "Pobierz z Flickra"
+
+#: templates/cover/image_detail.html:7
+msgid "Cover image"
+msgstr "Obrazek na okładkę"
+
+#: templates/cover/image_detail.html:23
+msgid "source"
+msgstr "źródło"
+
+#: templates/cover/image_detail.html:31
+msgid "Change"
+msgstr "Zmień"
+
+#: templates/cover/image_list.html:8
+msgid "Cover images"
+msgstr "Obrazki na okładki"
+
+#: templates/cover/image_list.html:11
+msgid "Add new"
+msgstr "Dodaj nowy"
+
class Image(models.Model):
- title = models.CharField(max_length=255)
- author = models.CharField(max_length=255)
- license_name = models.CharField(max_length=255)
- license_url = models.URLField(max_length=255, blank=True)
- source_url = models.URLField()
- download_url = models.URLField(unique=True)
- file = models.ImageField(upload_to='cover/image', editable=False)
+ title = models.CharField(max_length=255, verbose_name=_('title'))
+ author = models.CharField(max_length=255, verbose_name=_('author'))
+ license_name = models.CharField(max_length=255, verbose_name=_('license name'))
+ license_url = models.URLField(max_length=255, blank=True, verbose_name=_('license URL'))
+ source_url = models.URLField(verbose_name=_('source URL'))
+ download_url = models.URLField(unique=True, verbose_name=_('image download URL'))
+ file = models.ImageField(upload_to='cover/image', editable=False, verbose_name=_('file'))
class Meta:
verbose_name = _('cover image')
{% block content %}
<h1>{% trans "Add image" %}</h1>
-<form method="post">
-{% csrf_token %}
+
+<form method="post">{% csrf_token %}
<input type="hidden" name='form_id' value="flickr" />
-{{ ff.as_p }}
-<input type="submit" value="{% trans "Load from Flickr" %}" />
+<table class='editable'><tbody>
+ {{ ff.as_table }}
+ <tr><td></td><td><button type="submit">{% trans "Load from Flickr" %}</button></td></tr>
+</tbody></table>
</form>
-<form method="post">
-{% csrf_token %}
-{{ form.as_p }}
-<input type="submit" value="{% trans "Add image" %}" />
+<form method="post">{% csrf_token %}
+<table class='editable'><tbody>
+ {{ form.as_table }}
+ <tr><td></td><td><button type="submit">{% trans "Add image" %}</button></td></tr>
+</tbody></table>
</form>
+
+
{% endblock %}
{% extends "catalogue/base.html" %}
{% load i18n %}
+{% load thumbnail %}
{% load build_absolute_uri from common_tags %}
{% block content %}
<h1>{% trans "Cover image" %}</h1>
-<div style="float: right">
-<a href="{{ object.file.url }}"><img style="width:400px" src="{{ object.file.url }}" /></a>
+<div style="float: right; margin-bottom:1em;">
+
+<a href="{{ object.file.url }}"><img style="width:400px"
+ src="{% thumbnail object.file "400x" as thumb %}
+ {{ thumb.url }}
+ {% empty %}
+ {{ object.file.url }}
+ {% endthumbnail %}" />
+ </a>
<br/><a href="{{ object.source_url }}">{{ object.title }}</a> by {{ object.author }},
{% if object.license_url %}<a href="{{ object.license_url }}">{% endif %}
{{ object.license_name }}</a>
<br/>{% trans "source" %}: {{ object.download_url }}
</div>
-<form method="post">
-{% csrf_token %}
-{{ form.as_p }}
-<input type="submit" value="{% trans "Change" %}" />
-</form>
+
+{% if editable %}<form method="post">{% csrf_token %}{% endif %}
+<table class='editable'><tbody>
+ {{ form.as_table }}
+ {% if editable %}
+ <tr><td></td><td><button type="submit">{% trans "Change" %}</button></td></tr>
+ {% endif %}
+</tbody></table>
+{% if editable %}</form>{% endif %}
+
<textarea style="width:100%" rows="5">
<dc:relation.coverImage.url xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.file.url|build_absolute_uri:request }}</dc:relation.coverImage.url>
<dc:relation.coverImage.attribution xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.author }}, {{ object.license_name }}</dc:relation.coverImage.attribution>
-<dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.source_url }}</dc:relation.coverImage.source>
+<dc:relation.coverImage.source xmlns:dc="http://purl.org/dc/elements/1.1/">{{ object.get_absolute_url|build_absolute_uri:request }}</dc:relation.coverImage.source>
</textarea>
{% endblock %}
{% endif %}
<ul>
-{% autopaginate object_list 100 %}
+{% autopaginate object_list 1 %}
{% for image in object_list %}
- <a href="{{ image.get_absolute_url }}">
+ <a href="{{ image.get_absolute_url }}" style="display:inline-block; width:200px;">
- <img style="height: 200px"
- src="{% thumbnail image.file "x200" as thumb %}
+ <img style="height: 100px"
+ src="{% thumbnail image.file "x100" as thumb %}
{{ thumb.url }}
{% empty %}
{{ image.file.url }}
{% endthumbnail %}" />
+ <br/>
{{ image }}</a>
{% endfor %}
{% paginate %}