Added i18n for docs,embeds,images and redirects

pull/82/head
Serafeim Papastefanos 2014-02-20 23:57:46 +02:00
rodzic 5f332a1ca8
commit 9913c317f1
65 zmienionych plików z 2169 dodań i 125 usunięć

Wyświetl plik

@ -1,6 +1,30 @@
[main]
host = https://www.transifex.com
[wagtail.wagtaildocs]
file_filter = wagtail/wagtaildocs/locale/<lang>/LC_MESSAGES/django.po
source_file = wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO
[wagtail.wagtailimages]
file_filter = wagtail/wagtailimages/locale/<lang>/LC_MESSAGES/django.po
source_file = wagtail/wagtailimages/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO
[wagtail.wagtailembeds]
file_filter = wagtail/wagtailembeds/locale/<lang>/LC_MESSAGES/django.po
source_file = wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO
[wagtail.wagtailredirects]
file_filter = wagtail/wagtailredirects/locale/<lang>/LC_MESSAGES/django.po
source_file = wagtail/wagtailredirects/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO
[wagtail.wagtailsearch]
file_filter = wagtail/wagtailsearch/locale/<lang>/LC_MESSAGES/django.po
source_file = wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.po

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,158 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# serafeim <serafeim@torchbox.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:56+0200\n"
"PO-Revision-Date: 2014-02-20 21:50+0000\n"
"Last-Translator: serafeim <serafeim@torchbox.com>\n"
"Language-Team: Greek (http://www.transifex.com/projects/p/wagtail/language/el/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: el\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: .\models.py:16 .\templates\wagtaildocs\documents\list.html:9
msgid "Title"
msgstr "Τίτλος"
#: .\models.py:17 .\templates\wagtaildocs\documents\list.html:18
msgid "File"
msgstr "Αρχείο"
#: .\models.py:21
msgid "Tags"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:2
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:11
msgid "Choose a document"
msgstr "Επιλογή εγγράφου"
#: .\templates\wagtaildocs\chooser\chooser.html:7
#: .\templates\wagtaildocs\chooser\chooser.html:19
msgid "Search"
msgstr "Αναζήτηση"
#: .\templates\wagtaildocs\chooser\chooser.html:8
msgid "Upload"
msgstr "Ανέβασμα"
#: .\templates\wagtaildocs\chooser\chooser.html:34
#: .\templates\wagtaildocs\documents\add.html:25
#: .\templates\wagtaildocs\documents\edit.html:29
msgid "Save"
msgstr "Αποθήκευση"
#: .\templates\wagtaildocs\chooser\results.html:5
#: .\templates\wagtaildocs\documents\results.html:5
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] "\n Βρέθηκε ένα αποτέλεσμα\n "
msgstr[1] "\n Βρέθηκαν %(counter)s αποτελέσματα\n "
#: .\templates\wagtaildocs\chooser\results.html:12
msgid "Latest documents"
msgstr "Τελευταία έγγραφα"
#: .\templates\wagtaildocs\chooser\results.html:19
#, python-format
msgid "Sorry, no documents match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtaildocs\documents\_file_field.html:5
msgid "Change document:"
msgstr "Αλλαγή εγγράφου:"
#: .\templates\wagtaildocs\documents\add.html:4
#: .\templates\wagtaildocs\documents\index.html:17
msgid "Add a document"
msgstr "Προσθήκη εγγράφου"
#: .\templates\wagtaildocs\documents\add.html:15
msgid "Add document"
msgstr "Προσθήκη εγγράφου"
#: .\templates\wagtaildocs\documents\confirm_delete.html:3
#, python-format
msgid "Delete %(document.title)s"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:6
#: .\templates\wagtaildocs\documents\edit.html:29
msgid "Delete document"
msgstr "Διαγραφή εγγράφου"
#: .\templates\wagtaildocs\documents\confirm_delete.html:10
msgid "Are you sure you want to delete this document?"
msgstr "Είστε σίγουροι ότι θέλετε να διαγραφεί αυτό το έγγραφο;"
#: .\templates\wagtaildocs\documents\confirm_delete.html:13
msgid "Yes, delete"
msgstr "Ναι, να διαγραφεί"
#: .\templates\wagtaildocs\documents\edit.html:4
#, python-format
msgid "Editing %(document.title)s"
msgstr ""
#: .\templates\wagtaildocs\documents\edit.html:15
msgid "Editing"
msgstr "Διόρθωση"
#: .\templates\wagtaildocs\documents\index.html:16
msgid "Documents"
msgstr "Έγγραφα"
#: .\templates\wagtaildocs\documents\list.html:20
msgid "Uploaded"
msgstr ""
#: .\templates\wagtaildocs\documents\results.html:18
#, python-format
msgid "Sorry, no documents match \"<em>%(query_string)s</em>\""
msgstr ""
#: .\templates\wagtaildocs\documents\results.html:21
#, python-format
msgid ""
"You haven't uploaded any documents. Why not <a "
"href=\"%(wagtaildocs_add_document_url)s\">upload one now</a>?"
msgstr ""
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:9
msgid "Clear choice"
msgstr ""
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:10
msgid "Choose another document"
msgstr "Επιλογή άλλου εγγράφου"
#: .\views\documents.py:83
msgid "Document '{0}' added."
msgstr ""
#: .\views\documents.py:86 .\views\documents.py:115
msgid "The document could not be saved due to errors."
msgstr "Δεν ήταν δυνατή η αποθήκευση του εγγράφου."
#: .\views\documents.py:112
msgid "Document '{0}' updated"
msgstr ""
#: .\views\documents.py:134
msgid "Document '{0}' deleted."
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,156 @@
# 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.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:56+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: .\models.py:16 .\templates\wagtaildocs\documents\list.html:9
msgid "Title"
msgstr ""
#: .\models.py:17 .\templates\wagtaildocs\documents\list.html:18
msgid "File"
msgstr ""
#: .\models.py:21
msgid "Tags"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:2
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:11
msgid "Choose a document"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:7
#: .\templates\wagtaildocs\chooser\chooser.html:19
msgid "Search"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:8
msgid "Upload"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:34
#: .\templates\wagtaildocs\documents\add.html:25
#: .\templates\wagtaildocs\documents\edit.html:29
msgid "Save"
msgstr ""
#: .\templates\wagtaildocs\chooser\results.html:5
#: .\templates\wagtaildocs\documents\results.html:5
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] ""
msgstr[1] ""
#: .\templates\wagtaildocs\chooser\results.html:12
msgid "Latest documents"
msgstr ""
#: .\templates\wagtaildocs\chooser\results.html:19
#, python-format
msgid "Sorry, no documents match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtaildocs\documents\_file_field.html:5
msgid "Change document:"
msgstr ""
#: .\templates\wagtaildocs\documents\add.html:4
#: .\templates\wagtaildocs\documents\index.html:17
msgid "Add a document"
msgstr ""
#: .\templates\wagtaildocs\documents\add.html:15
msgid "Add document"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:3
#, python-format
msgid "Delete %(document.title)s"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:6
#: .\templates\wagtaildocs\documents\edit.html:29
msgid "Delete document"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:10
msgid "Are you sure you want to delete this document?"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:13
msgid "Yes, delete"
msgstr ""
#: .\templates\wagtaildocs\documents\edit.html:4
#, python-format
msgid "Editing %(document.title)s"
msgstr ""
#: .\templates\wagtaildocs\documents\edit.html:15
msgid "Editing"
msgstr ""
#: .\templates\wagtaildocs\documents\index.html:16
msgid "Documents"
msgstr ""
#: .\templates\wagtaildocs\documents\list.html:20
msgid "Uploaded"
msgstr ""
#: .\templates\wagtaildocs\documents\results.html:18
#, python-format
msgid "Sorry, no documents match \"<em>%(query_string)s</em>\""
msgstr ""
#: .\templates\wagtaildocs\documents\results.html:21
#, python-format
msgid ""
"You haven't uploaded any documents. Why not <a href=\"%"
"(wagtaildocs_add_document_url)s\">upload one now</a>?"
msgstr ""
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:9
msgid "Clear choice"
msgstr ""
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:10
msgid "Choose another document"
msgstr ""
#: .\views\documents.py:83
msgid "Document '{0}' added."
msgstr ""
#: .\views\documents.py:86 .\views\documents.py:115
msgid "The document could not be saved due to errors."
msgstr ""
#: .\views\documents.py:112
msgid "Document '{0}' updated"
msgstr ""
#: .\views\documents.py:134
msgid "Document '{0}' deleted."
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,158 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:56+0200\n"
"PO-Revision-Date: 2014-02-20 21:06+0000\n"
"Last-Translator: serafeim <serafeim@torchbox.com>\n"
"Language-Team: Romanian (http://www.transifex.com/projects/p/wagtail/language/ro/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: .\models.py:16 .\templates\wagtaildocs\documents\list.html:9
msgid "Title"
msgstr ""
#: .\models.py:17 .\templates\wagtaildocs\documents\list.html:18
msgid "File"
msgstr ""
#: .\models.py:21
msgid "Tags"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:2
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:11
msgid "Choose a document"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:7
#: .\templates\wagtaildocs\chooser\chooser.html:19
msgid "Search"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:8
msgid "Upload"
msgstr ""
#: .\templates\wagtaildocs\chooser\chooser.html:34
#: .\templates\wagtaildocs\documents\add.html:25
#: .\templates\wagtaildocs\documents\edit.html:29
msgid "Save"
msgstr ""
#: .\templates\wagtaildocs\chooser\results.html:5
#: .\templates\wagtaildocs\documents\results.html:5
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
#: .\templates\wagtaildocs\chooser\results.html:12
msgid "Latest documents"
msgstr ""
#: .\templates\wagtaildocs\chooser\results.html:19
#, python-format
msgid "Sorry, no documents match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtaildocs\documents\_file_field.html:5
msgid "Change document:"
msgstr ""
#: .\templates\wagtaildocs\documents\add.html:4
#: .\templates\wagtaildocs\documents\index.html:17
msgid "Add a document"
msgstr ""
#: .\templates\wagtaildocs\documents\add.html:15
msgid "Add document"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:3
#, python-format
msgid "Delete %(document.title)s"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:6
#: .\templates\wagtaildocs\documents\edit.html:29
msgid "Delete document"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:10
msgid "Are you sure you want to delete this document?"
msgstr ""
#: .\templates\wagtaildocs\documents\confirm_delete.html:13
msgid "Yes, delete"
msgstr ""
#: .\templates\wagtaildocs\documents\edit.html:4
#, python-format
msgid "Editing %(document.title)s"
msgstr ""
#: .\templates\wagtaildocs\documents\edit.html:15
msgid "Editing"
msgstr ""
#: .\templates\wagtaildocs\documents\index.html:16
msgid "Documents"
msgstr ""
#: .\templates\wagtaildocs\documents\list.html:20
msgid "Uploaded"
msgstr ""
#: .\templates\wagtaildocs\documents\results.html:18
#, python-format
msgid "Sorry, no documents match \"<em>%(query_string)s</em>\""
msgstr ""
#: .\templates\wagtaildocs\documents\results.html:21
#, python-format
msgid ""
"You haven't uploaded any documents. Why not <a "
"href=\"%(wagtaildocs_add_document_url)s\">upload one now</a>?"
msgstr ""
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:9
msgid "Clear choice"
msgstr ""
#: .\templates\wagtaildocs\edit_handlers\document_chooser_panel.html:10
msgid "Choose another document"
msgstr ""
#: .\views\documents.py:83
msgid "Document '{0}' added."
msgstr ""
#: .\views\documents.py:86 .\views\documents.py:115
msgid "The document could not be saved due to errors."
msgstr ""
#: .\views\documents.py:112
msgid "Document '{0}' updated"
msgstr ""
#: .\views\documents.py:134
msgid "Document '{0}' deleted."
msgstr ""

Wyświetl plik

@ -7,17 +7,18 @@ from django.db.models.signals import pre_delete
from django.dispatch.dispatcher import receiver
from django.core.urlresolvers import reverse
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from wagtail.wagtailadmin.taggable import TagSearchable
class Document(models.Model, TagSearchable):
title = models.CharField(max_length=255)
file = models.FileField(upload_to='documents')
title = models.CharField(max_length=255, verbose_name=_('Title'))
file = models.FileField(upload_to='documents' , verbose_name=_('File'))
created_at = models.DateTimeField(auto_now_add=True)
uploaded_by_user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True, editable=False)
tags = TaggableManager(help_text=None, blank=True)
tags = TaggableManager(help_text=None, blank=True, verbose_name=_('Tags'))
indexed_fields = {
'uploaded_by_user_id': {

Wyświetl plik

@ -1,9 +1,11 @@
{% include "wagtailadmin/shared/header.html" with title="Choose a document" tabbed=1 merged=1 %}
{% load i18n %}
{% trans "Choose a document" as choose_str %}
{% include "wagtailadmin/shared/header.html" with title=choose_str tabbed=1 merged=1 %}
{% if uploadform %}
<ul class="tab-nav merged">
<li class="active"><a href="#search">Search</a></li>
<li><a href="#upload">Upload</a></li>
<li class="active"><a href="#search">{% trans "Search" %}</a></li>
<li><a href="#upload">{% trans "Upload" %}</a></li>
</ul>
{% endif %}
@ -14,7 +16,7 @@
{% for field in searchform %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li class="submit"><input type="submit" value="Search" /></li>
<li class="submit"><input type="submit" value="{% trans 'Search' %}" /></li>
</ul>
</form>
<div id="search-results" class="listing documents">
@ -29,7 +31,7 @@
{% for field in uploadform %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li><input type="submit" value="Save" /></li>
<li><input type="submit" value="{% trans 'Save' %}" /></li>
</ul>
</form>
</section>

Wyświetl plik

@ -1,13 +1,20 @@
{% load i18n %}
{% if documents %}
{% if is_searching %}
<h2>{{ documents.paginator.count }} match{{ documents.paginator.count|pluralize:"es" }}</h2>
<h2>
{% blocktrans count counter=documents.paginator.count %}
There is one match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}
</h2>
{% else %}
<h2>Latest documents</h2>
<h2>{% trans "Latest documents" %}</h2>
{% endif %}
{% include "wagtaildocs/documents/list.html" with choosing=1 %}
{% include "wagtailadmin/shared/pagination_nav.html" with items=documents is_ajax=1 %}
{% else %}
<p>Sorry, no documents match "<em>{{ search_query }}</em>"
<p>{% blocktrans %}Sorry, no documents match "<em>{{ search_query }}</em>"{% endblocktrans %}</p>
{% endif %}

Wyświetl plik

@ -1,7 +1,7 @@
{% extends "wagtailadmin/shared/field_as_li.html" %}
{% load i18n %}
{% block form_field %}
<a href="{{ document.url }}" class="icon icon-doc-full-inverse">{{ document.file }}</a><br /><br />
Change document:
{% trans "Change document:" %}
{{ field }}
{% endblock %}

Wyświetl plik

@ -1,6 +1,7 @@
{% extends "wagtailadmin/base.html" %}
{% load i18n %}
{% load image_tags %}
{% block titletag %}Add a document{% endblock %}
{% block titletag %}{% trans "Add a document" %}{% endblock %}
{% block bodyclass %}menu-documents{% endblock %}
{% block extra_css %}
{% include "wagtailadmin/shared/tag_field_css.html" %}
@ -11,7 +12,8 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Add document" %}
{% trans "Add document" as add_str %}
{% include "wagtailadmin/shared/header.html" with title=add_str %}
<div class="nice-padding">
<form action="{% url 'wagtaildocs_add_document' %}" method="POST" enctype="multipart/form-data">
@ -20,7 +22,7 @@
{% for field in form %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li><input type="submit" value="Save" /></li>
<li><input type="submit" value="{% trans 'Save' %}" /></li>
</ul>
</form>
</div>

Wyświetl plik

@ -1,14 +1,16 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Delete {{ document.title }}{% endblock %}
{% load i18n %}
{% block titletag %}{% blocktrans %}Delete {{ document.title }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-documents{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Delete document" subtitle=document.title %}
{% trans "Delete document" as del_str %}
{% include "wagtailadmin/shared/header.html" with title=del_str subtitle=document.title %}
<div class="nice-padding">
<p>Are you sure you want to delete this document?</p>
<p>{% trans "Are you sure you want to delete this document?" %}</p>
<form action="{% url 'wagtaildocs_delete_document' document.id %}" method="POST">
{% csrf_token %}
<input type="submit" value="Yes, delete" class="serious" />
<input type="submit" value='{% trans "Yes, delete" %}' class="serious" />
</form>
</div>
{% endblock %}

Wyświetl plik

@ -1,6 +1,7 @@
{% extends "wagtailadmin/base.html" %}
{% load i18n %}
{% load image_tags %}
{% block titletag %}Editing {{ document.title }}{% endblock %}
{% block titletag %}{% blocktrans %}Editing {{ document.title }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-documents{% endblock %}
{% block extra_css %}
{% include "wagtailadmin/shared/tag_field_css.html" %}
@ -11,7 +12,8 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=document.title %}
{% trans "Editing" as editing_str %}
{% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=document.title %}
<div class="nice-padding">
<form action="{% url 'wagtaildocs_edit_document' document.id %}" method="POST" enctype="multipart/form-data">
@ -24,7 +26,7 @@
{% include "wagtailadmin/shared/field_as_li.html" %}
{% endif %}
{% endfor %}
<li><input type="submit" value="Save" /> <a href="{% url 'wagtaildocs_delete_document' document.id %}" class="button button-secondary no">Delete document</a></li>
<li><input type="submit" value="{% trans 'Save' %}" /> <a href="{% url 'wagtaildocs_delete_document' document.id %}" class="button button-secondary no">{% trans "Delete document" %}</a></li>
</ul>
</form>

Wyświetl plik

@ -1,4 +1,5 @@
{% extends "wagtailadmin/base.html" %}
{% load i18n %}
{% block titletag %}Documents{% endblock %}
{% block bodyclass %}menu-documents{% endblock %}
{% block extra_js %}
@ -12,7 +13,9 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Documents" add_link="wagtaildocs_add_document" add_text="Add a document" search_url="wagtaildocs_index" %}
{% trans "Documents" as doc_str %}
{% trans "Add a document" as add_doc_str %}
{% include "wagtailadmin/shared/header.html" with title=doc_str add_link="wagtaildocs_add_document" add_text=add_doc_str search_url="wagtaildocs_index" %}
<div class="nice-padding">
<div id="document-results" class="documents">

Wyświetl plik

@ -1,3 +1,4 @@
{% load i18n %}
<table class="listing">
<col />
<col />
@ -5,7 +6,7 @@
<thead>
<tr class="table-headers">
<th>
Title
{% trans "Title" %}
{% if not is_searching %}
{% if ordering == "title" %}
<a href="{% url 'wagtaildocs_index' %}" class="icon icon-arrow-down-after teal"></a>
@ -14,9 +15,9 @@
{% endif %}
{% endif %}
</th>
<th>File</th>
<th>{% trans "File" %}</th>
<th>
Uploaded
{% trans "Uploaded" %}
{% if not is_searching %}
{% if ordering == "-created_at" %}
<a href="{% url 'wagtaildocs_index' %}" class="icon icon-arrow-down-after teal"></a>

Wyświetl plik

@ -1,6 +1,13 @@
{% load i18n %}
{% if documents %}
{% if is_searching %}
<h2>{{ documents|length }} match{{ documents|pluralize:"es" }}</h2>
<h2>
{% blocktrans count counter=documents|length %}
There is one match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}
</h2>
{% endif %}
{% include "wagtaildocs/documents/list.html" %}
@ -8,8 +15,9 @@
{% include "wagtailadmin/shared/pagination_nav.html" with items=documents is_searching=is_searching linkurl="wagtaildocs_index" %}
{% else %}
{% if is_searching %}
<p>Sorry, no documents match "<em>{{ query_string }}</em>"
<p>{% blocktrans %}Sorry, no documents match "<em>{{ query_string }}</em>"{% endblocktrans %}</p>
{% else %}
<p>You haven't uploaded any documents. Why not <a href="{% url 'wagtaildocs_add_document' %}">upload one now</a>?</p>
{% url 'wagtaildocs_add_document' as wagtaildocs_add_document_url %}
<p>{% blocktrans %}You haven't uploaded any documents. Why not <a href="{{ wagtaildocs_add_document_url }}">upload one now</a>?{% endblocktrans %}</p>
{% endif %}
{% endif %}

Wyświetl plik

@ -1,11 +1,11 @@
{% extends "wagtailadmin/edit_handlers/chooser_panel.html" %}
{% load i18n %}
{% block chooser_class %}document-chooser{% endblock %}
{% block chosen_state_view %}
<span class="title">{{ document.title }}</span>
{% endblock %}
{% block clear_button_label %}Clear choice{% endblock %}
{% block choose_another_button_label %}Choose another document{% endblock %}
{% block choose_button_label %}Choose a document{% endblock %}
{% block clear_button_label %}{% trans "Clear choice" %}{% endblock %}
{% block choose_another_button_label %}{% trans "Choose another document" %}{% endblock %}
{% block choose_button_label %}{% trans "Choose a document" %}{% endblock %}

Wyświetl plik

@ -3,6 +3,7 @@ from django.contrib import messages
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.contrib.auth.decorators import login_required, permission_required
from django.core.exceptions import PermissionDenied
from django.utils.translation import ugettext as _
from wagtail.wagtailadmin.forms import SearchForm
@ -79,10 +80,10 @@ def add(request):
form = DocumentForm(request.POST, request.FILES, instance=doc)
if form.is_valid():
form.save()
messages.success(request, "Document '%s' added." % doc.title)
messages.success(request, _("Document '{0}' added.").format(doc.title))
return redirect('wagtaildocs_index')
else:
messages.error(request, "The document could not be saved due to errors.")
messages.error(request, _("The document could not be saved due to errors."))
else:
form = DocumentForm()
@ -108,10 +109,10 @@ def edit(request, document_id):
# which definitely isn't what we want...
original_file.storage.delete(original_file.name)
doc = form.save()
messages.success(request, "Document '%s' updated" % doc.title)
messages.success(request, _("Document '{0}' updated").format(doc.title))
return redirect('wagtaildocs_index')
else:
messages.error(request, "The document could not be saved due to errors.")
messages.error(request, _("The document could not be saved due to errors."))
else:
form = DocumentForm(instance=doc)
@ -130,7 +131,7 @@ def delete(request, document_id):
if request.POST:
doc.delete()
messages.success(request, "Document '%s' deleted." % doc.title)
messages.success(request, _("Document '{0}' deleted.").format(doc.title))
return redirect('wagtaildocs_index')
return render(request, "wagtaildocs/documents/confirm_delete.html", {

Wyświetl plik

@ -1,15 +1,15 @@
from django import forms
from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
def validate_url(url):
validator = URLValidator()
try:
validator(url)
except ValidationError:
raise ValidationError("Please enter a valid URL")
raise ValidationError(_("Please enter a valid URL"))
class EmbedForm(forms.Form):
url = forms.CharField(label="URL", validators=[validate_url])
url = forms.CharField(label=_("URL"), validators=[validate_url])

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,51 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# serafeim <serafeim@torchbox.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:19+0200\n"
"PO-Revision-Date: 2014-02-20 21:34+0000\n"
"Last-Translator: serafeim <serafeim@torchbox.com>\n"
"Language-Team: Greek (http://www.transifex.com/projects/p/wagtail/language/el/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: el\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: .\forms.py:11
msgid "Please enter a valid URL"
msgstr ""
#: .\forms.py:15
msgid "URL"
msgstr ""
#: .\templates\wagtailembeds\chooser\chooser.html:3
msgid "Insert embed"
msgstr ""
#: .\templates\wagtailembeds\chooser\chooser.html:14
msgid "Insert"
msgstr "Εισαγωγή"
#: .\views\chooser.py:34
msgid ""
"There seems to be a problem with your embedly API key. Please check your "
"settings."
msgstr ""
#: .\views\chooser.py:36
msgid "Cannot find an embed for this URL."
msgstr ""
#: .\views\chooser.py:38
msgid ""
"There seems to be an error with Embedly while trying to embed this URL. "
"Please try again later."
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,49 @@
# 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.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:19+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: .\forms.py:11
msgid "Please enter a valid URL"
msgstr ""
#: .\forms.py:15
msgid "URL"
msgstr ""
#: .\templates\wagtailembeds\chooser\chooser.html:3
msgid "Insert embed"
msgstr ""
#: .\templates\wagtailembeds\chooser\chooser.html:14
msgid "Insert"
msgstr ""
#: .\views\chooser.py:34
msgid ""
"There seems to be a problem with your embedly API key. Please check your "
"settings."
msgstr ""
#: .\views\chooser.py:36
msgid "Cannot find an embed for this URL."
msgstr ""
#: .\views\chooser.py:38
msgid ""
"There seems to be an error with Embedly while trying to embed this URL. "
"Please try again later."
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,50 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:19+0200\n"
"PO-Revision-Date: 2014-02-20 21:05+0000\n"
"Last-Translator: serafeim <serafeim@torchbox.com>\n"
"Language-Team: Romanian (http://www.transifex.com/projects/p/wagtail/language/ro/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: .\forms.py:11
msgid "Please enter a valid URL"
msgstr ""
#: .\forms.py:15
msgid "URL"
msgstr ""
#: .\templates\wagtailembeds\chooser\chooser.html:3
msgid "Insert embed"
msgstr ""
#: .\templates\wagtailembeds\chooser\chooser.html:14
msgid "Insert"
msgstr ""
#: .\views\chooser.py:34
msgid ""
"There seems to be a problem with your embedly API key. Please check your "
"settings."
msgstr ""
#: .\views\chooser.py:36
msgid "Cannot find an embed for this URL."
msgstr ""
#: .\views\chooser.py:38
msgid ""
"There seems to be an error with Embedly while trying to embed this URL. "
"Please try again later."
msgstr ""

Wyświetl plik

@ -1,6 +1,7 @@
{% load image_tags ellipsistrim%}
{% include "wagtailadmin/shared/header.html" with title="Insert embed" merged=1 %}
{% load i18n %}
{% trans "Insert embed" as ins_emb_str %}
{% include "wagtailadmin/shared/header.html" with title=ins_emb_str merged=1 %}
<div class="tab-content">
<section id="form" class="active nice-padding">
@ -10,7 +11,7 @@
{% for field in form %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li><input type="submit" value="Insert" /></li>
<li><input type="submit" value="{% trans 'Insert' %}" /></li>
</ul>
</form>
</section>

Wyświetl plik

@ -1,5 +1,6 @@
from django.forms.util import ErrorList
from django.conf import settings
from django.utils.translation import ugettext as _
from wagtail.wagtailadmin.modal_workflow import render_modal_workflow
from wagtail.wagtailembeds.forms import EmbedForm
@ -30,11 +31,11 @@ def chooser_upload(request):
{'embed_html': embed_html}
)
except AccessDeniedEmbedlyException:
error = "There seems to be a problem with your embedly API key. Please check your settings."
error = _("There seems to be a problem with your embedly API key. Please check your settings.")
except EmbedNotFoundException:
error = "Cannot find an embed for this URL."
error = _("Cannot find an embed for this URL.")
except EmbedlyException:
error = "There seems to be an error with Embedly while trying to embed this URL. Please try again later."
error = _("There seems to be an error with Embedly while trying to embed this URL. Please try again later.")
if error:
errors = form._errors.setdefault('url', ErrorList())

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,153 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# serafeim <serafeim@torchbox.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:19+0200\n"
"PO-Revision-Date: 2014-02-20 21:50+0000\n"
"Last-Translator: serafeim <serafeim@torchbox.com>\n"
"Language-Team: Greek (http://www.transifex.com/projects/p/wagtail/language/el/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: el\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: .\models.py:39
msgid "Not a valid image format. Please use a gif, jpeg or png file instead."
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:3
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:19
msgid "Choose an image"
msgstr "Επιλέξατε εικόνα"
#: .\templates\wagtailimages\chooser\chooser.html:8
#: .\templates\wagtailimages\chooser\chooser.html:20
msgid "Search"
msgstr "Αναζήτηση"
#: .\templates\wagtailimages\chooser\chooser.html:9
#: .\templates\wagtailimages\chooser\chooser.html:43
msgid "Upload"
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:23
msgid "Popular tags"
msgstr ""
#: .\templates\wagtailimages\chooser\results.html:6
#: .\templates\wagtailimages\images\results.html:6
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] "\nΒρέθηκε ένα αποτέλεσμα"
msgstr[1] "\n Βρέθηκαν %(counter)s αποτελέσματα\n "
#: .\templates\wagtailimages\chooser\results.html:13
msgid "Latest images"
msgstr "Τελευταίες εικόνες"
#: .\templates\wagtailimages\chooser\select_format.html:3
msgid "Choose a format"
msgstr ""
#: .\templates\wagtailimages\chooser\select_format.html:17
msgid "Insert image"
msgstr "Εισαγωγή εικόνας"
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:17
msgid "Clear image"
msgstr ""
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:18
msgid "Choose another image"
msgstr "Επιλογή άλλης εικόνας"
#: .\templates\wagtailimages\images\_file_field.html:6
msgid "Change image:"
msgstr "Αλλαγή εικόνας:"
#: .\templates\wagtailimages\images\add.html:4
#: .\templates\wagtailimages\images\index.html:19
msgid "Add an image"
msgstr "Προσθήκη εικόνας"
#: .\templates\wagtailimages\images\add.html:15
msgid "Add image"
msgstr "Προσθήκη εικόνας"
#: .\templates\wagtailimages\images\add.html:25
#: .\templates\wagtailimages\images\edit.html:33
msgid "Save"
msgstr "Αποθήκευση"
#: .\templates\wagtailimages\images\confirm_delete.html:4
#: .\templates\wagtailimages\images\confirm_delete.html:8
#: .\templates\wagtailimages\images\edit.html:33
msgid "Delete image"
msgstr "Διαγραφή εικόνας"
#: .\templates\wagtailimages\images\confirm_delete.html:16
msgid "Are you sure you want to delete this image?"
msgstr "Είστε σίγουροι ότι θέλετε να διαγραφεί αυτή η εικόνα;"
#: .\templates\wagtailimages\images\confirm_delete.html:19
msgid "Yes, delete"
msgstr "Ναι, να διαγραφεί"
#: .\templates\wagtailimages\images\edit.html:4
#, python-format
msgid "Editing image %(image.title)s"
msgstr ""
#: .\templates\wagtailimages\images\edit.html:15
msgid "Editing"
msgstr "Διόρθωση"
#: .\templates\wagtailimages\images\index.html:5
#: .\templates\wagtailimages\images\index.html:18
msgid "Images"
msgstr "Εικόνες"
#: .\templates\wagtailimages\images\results.html:31
#, python-format
msgid "Sorry, no images match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtailimages\images\results.html:34
msgid ""
"You've not uploaded any images. Why not <a "
"href=\"wagtailimages_add_image_url\">add one now</a>?"
msgstr ""
#: .\views\images.py:92
msgid "Image '{0}' updated."
msgstr "Η εικόνα '{0}' ενημερώθηκε."
#: .\views\images.py:95
msgid "The image could not be saved due to errors."
msgstr "Δεν ήταν δυνατή η αποθήκευση της εικόνας."
#: .\views\images.py:114
msgid "Image '{0}' deleted."
msgstr "Η εικόνα '{0}' διαγράφηκε."
#: .\views\images.py:132
msgid "Image '{0}' added."
msgstr "Η εικόνα '{0}' δημιουργήθηκε."
#: .\views\images.py:135
msgid "The image could not be created due to errors."
msgstr "Δεν ήταν δυνατή η δημιουργία της εικόνας."

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,151 @@
# 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.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:19+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: .\models.py:39
msgid "Not a valid image format. Please use a gif, jpeg or png file instead."
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:3
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:19
msgid "Choose an image"
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:8
#: .\templates\wagtailimages\chooser\chooser.html:20
msgid "Search"
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:9
#: .\templates\wagtailimages\chooser\chooser.html:43
msgid "Upload"
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:23
msgid "Popular tags"
msgstr ""
#: .\templates\wagtailimages\chooser\results.html:6
#: .\templates\wagtailimages\images\results.html:6
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] ""
msgstr[1] ""
#: .\templates\wagtailimages\chooser\results.html:13
msgid "Latest images"
msgstr ""
#: .\templates\wagtailimages\chooser\select_format.html:3
msgid "Choose a format"
msgstr ""
#: .\templates\wagtailimages\chooser\select_format.html:17
msgid "Insert image"
msgstr ""
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:17
msgid "Clear image"
msgstr ""
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:18
msgid "Choose another image"
msgstr ""
#: .\templates\wagtailimages\images\_file_field.html:6
msgid "Change image:"
msgstr ""
#: .\templates\wagtailimages\images\add.html:4
#: .\templates\wagtailimages\images\index.html:19
msgid "Add an image"
msgstr ""
#: .\templates\wagtailimages\images\add.html:15
msgid "Add image"
msgstr ""
#: .\templates\wagtailimages\images\add.html:25
#: .\templates\wagtailimages\images\edit.html:33
msgid "Save"
msgstr ""
#: .\templates\wagtailimages\images\confirm_delete.html:4
#: .\templates\wagtailimages\images\confirm_delete.html:8
#: .\templates\wagtailimages\images\edit.html:33
msgid "Delete image"
msgstr ""
#: .\templates\wagtailimages\images\confirm_delete.html:16
msgid "Are you sure you want to delete this image?"
msgstr ""
#: .\templates\wagtailimages\images\confirm_delete.html:19
msgid "Yes, delete"
msgstr ""
#: .\templates\wagtailimages\images\edit.html:4
#, python-format
msgid "Editing image %(image.title)s"
msgstr ""
#: .\templates\wagtailimages\images\edit.html:15
msgid "Editing"
msgstr ""
#: .\templates\wagtailimages\images\index.html:5
#: .\templates\wagtailimages\images\index.html:18
msgid "Images"
msgstr ""
#: .\templates\wagtailimages\images\results.html:31
#, python-format
msgid "Sorry, no images match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtailimages\images\results.html:34
msgid ""
"You've not uploaded any images. Why not <a href=\"wagtailimages_add_image_url"
"\">add one now</a>?"
msgstr ""
#: .\views\images.py:92
msgid "Image '{0}' updated."
msgstr ""
#: .\views\images.py:95
msgid "The image could not be saved due to errors."
msgstr ""
#: .\views\images.py:114
msgid "Image '{0}' deleted."
msgstr ""
#: .\views\images.py:132
msgid "Image '{0}' added."
msgstr ""
#: .\views\images.py:135
msgid "The image could not be created due to errors."
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,153 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 22:19+0200\n"
"PO-Revision-Date: 2014-02-20 21:05+0000\n"
"Last-Translator: serafeim <serafeim@torchbox.com>\n"
"Language-Team: Romanian (http://www.transifex.com/projects/p/wagtail/language/ro/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: .\models.py:39
msgid "Not a valid image format. Please use a gif, jpeg or png file instead."
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:3
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:19
msgid "Choose an image"
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:8
#: .\templates\wagtailimages\chooser\chooser.html:20
msgid "Search"
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:9
#: .\templates\wagtailimages\chooser\chooser.html:43
msgid "Upload"
msgstr ""
#: .\templates\wagtailimages\chooser\chooser.html:23
msgid "Popular tags"
msgstr ""
#: .\templates\wagtailimages\chooser\results.html:6
#: .\templates\wagtailimages\images\results.html:6
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
#: .\templates\wagtailimages\chooser\results.html:13
msgid "Latest images"
msgstr ""
#: .\templates\wagtailimages\chooser\select_format.html:3
msgid "Choose a format"
msgstr ""
#: .\templates\wagtailimages\chooser\select_format.html:17
msgid "Insert image"
msgstr ""
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:17
msgid "Clear image"
msgstr ""
#: .\templates\wagtailimages\edit_handlers\image_chooser_panel.html:18
msgid "Choose another image"
msgstr ""
#: .\templates\wagtailimages\images\_file_field.html:6
msgid "Change image:"
msgstr ""
#: .\templates\wagtailimages\images\add.html:4
#: .\templates\wagtailimages\images\index.html:19
msgid "Add an image"
msgstr ""
#: .\templates\wagtailimages\images\add.html:15
msgid "Add image"
msgstr ""
#: .\templates\wagtailimages\images\add.html:25
#: .\templates\wagtailimages\images\edit.html:33
msgid "Save"
msgstr ""
#: .\templates\wagtailimages\images\confirm_delete.html:4
#: .\templates\wagtailimages\images\confirm_delete.html:8
#: .\templates\wagtailimages\images\edit.html:33
msgid "Delete image"
msgstr ""
#: .\templates\wagtailimages\images\confirm_delete.html:16
msgid "Are you sure you want to delete this image?"
msgstr ""
#: .\templates\wagtailimages\images\confirm_delete.html:19
msgid "Yes, delete"
msgstr ""
#: .\templates\wagtailimages\images\edit.html:4
#, python-format
msgid "Editing image %(image.title)s"
msgstr ""
#: .\templates\wagtailimages\images\edit.html:15
msgid "Editing"
msgstr ""
#: .\templates\wagtailimages\images\index.html:5
#: .\templates\wagtailimages\images\index.html:18
msgid "Images"
msgstr ""
#: .\templates\wagtailimages\images\results.html:31
#, python-format
msgid "Sorry, no images match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtailimages\images\results.html:34
msgid ""
"You've not uploaded any images. Why not <a "
"href=\"wagtailimages_add_image_url\">add one now</a>?"
msgstr ""
#: .\views\images.py:92
msgid "Image '{0}' updated."
msgstr ""
#: .\views\images.py:95
msgid "The image could not be saved due to errors."
msgstr ""
#: .\views\images.py:114
msgid "Image '{0}' deleted."
msgstr ""
#: .\views\images.py:132
msgid "Image '{0}' added."
msgstr ""
#: .\views\images.py:135
msgid "The image could not be created due to errors."
msgstr ""

Wyświetl plik

@ -12,13 +12,14 @@ from django.dispatch.dispatcher import receiver
from django.utils.safestring import mark_safe
from django.utils.html import escape
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from wagtail.wagtailadmin.taggable import TagSearchable
from wagtail.wagtailimages import image_ops
class AbstractImage(models.Model, TagSearchable):
title = models.CharField(max_length=255)
title = models.CharField(max_length=255, verbose_name=_('Title') )
def get_upload_to(self, filename):
folder_name = 'original_images'
@ -35,15 +36,15 @@ class AbstractImage(models.Model, TagSearchable):
def file_extension_validator(ffile):
extension = ffile.name.split(".")[-1].lower()
if extension not in ["gif", "jpg", "jpeg", "png"]:
raise ValidationError("Not a valid image format. Please use a gif, jpeg or png file instead.")
raise ValidationError(_("Not a valid image format. Please use a gif, jpeg or png file instead."))
file = models.ImageField(upload_to=get_upload_to, width_field='width', height_field='height', validators=[file_extension_validator])
file = models.ImageField(verbose_name=_('File'), upload_to=get_upload_to, width_field='width', height_field='height', validators=[file_extension_validator])
width = models.IntegerField(editable=False)
height = models.IntegerField(editable=False)
created_at = models.DateTimeField(auto_now_add=True)
uploaded_by_user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True, editable=False)
tags = TaggableManager(help_text=None, blank=True)
tags = TaggableManager(help_text=None, blank=True, verbose_name=_('Tags'))
indexed_fields = {
'uploaded_by_user_id': {

Wyświetl plik

@ -1,11 +1,12 @@
{% load image_tags ellipsistrim%}
{% include "wagtailadmin/shared/header.html" with title="Choose an image" merged=1 tabbed=1 %}
{% load i18n %}
{% trans "Choose an image" as choose_str %}
{% include "wagtailadmin/shared/header.html" with title=choose_str merged=1 tabbed=1 %}
{% if uploadform %}
<ul class="tab-nav merged">
<li class="active"><a href="#search" >Search</a></li>
<li><a href="#upload">Upload</a></li>
<li class="active"><a href="#search" >{% trans "Search" %}</a></li>
<li><a href="#upload">{% trans "Upload" %}</a></li>
</ul>
{% endif %}
@ -16,10 +17,10 @@
{% for field in searchform %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li class="submit"><input type="submit" value="Search" /></li>
<li class="submit"><input type="submit" value="{% trans 'Search' %}" /></li>
{% if popular_tags %}
<li class="taglist">
<h3>Popular tags</h3>
<h3>{% trans 'Popular tags' %}</h3>
{% for tag in popular_tags %}
<a class="suggested-tag tag" href="{% url 'wagtailimages_index' %}?q={{ tag.name|urlencode }}">{{ tag.name }}</a>
{% endfor %}
@ -39,7 +40,7 @@
{% for field in uploadform %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li><input type="submit" value="Upload" /></li>
<li><input type="submit" value="{% trans 'Upload' %}" /></li>
</ul>
</form>
</section>

Wyświetl plik

@ -1,10 +1,16 @@
{% load image_tags ellipsistrim %}
{% load i18n %}
{% if images %}
{% if is_searching %}
<h2>{{ images.paginator.count }} match{{ images.paginator.count|pluralize:"es" }}</h2>
<h2>
{% blocktrans count counter=images.paginator.count %}
There is one match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}
</h2>
{% else %}
<h2>Latest images</h2>
<h2>{% trans "Latest images" %}</h2>
{% endif %}
<ul class="listing horiz images chooser">

Wyświetl plik

@ -1,6 +1,7 @@
{% load image_tags %}
{% include "wagtailadmin/shared/header.html" with title="Choose a format" %}
{% load i18n %}
{% trans "Choose a format" as choose_str %}
{% include "wagtailadmin/shared/header.html" with title=choose_str %}
<div class="row row-flush nice-padding">
<div class="col6">
@ -13,7 +14,7 @@
{% for field in form %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li><input type="submit" value="Insert image" /></li>
<li><input type="submit" value="{% trans 'Insert image' %}" /></li>
</ul>
</form>
</div>

Wyświetl plik

@ -1,5 +1,6 @@
{% extends "wagtailadmin/edit_handlers/chooser_panel.html" %}
{% load image_tags %}
{% load i18n %}
{% block chooser_class %}image-chooser{% endblock %}
@ -13,6 +14,6 @@
</div>
{% endblock %}
{% block clear_button_label %}Clear image{% endblock %}
{% block choose_another_button_label %}Choose another image{% endblock %}
{% block choose_button_label %}Choose an image{% endblock %}
{% block clear_button_label %}{% trans "Clear image" %}{% endblock %}
{% block choose_another_button_label %}{% trans "Choose another image" %}{% endblock %}
{% block choose_button_label %}{% trans "Choose an image" %}{% endblock %}

Wyświetl plik

@ -1,8 +1,8 @@
{% extends "wagtailadmin/shared/field_as_li.html" %}
{% load i18n %}
{% block form_field %}
<a href="{{MEDIA_URL}}images/{{ image.file }}" class="icon icon-image">{{ image.filename }}</a><br /><br />
Change image:
{% trans "Change image:" %}
{{ field }}
{% endblock %}

Wyświetl plik

@ -1,6 +1,7 @@
{% extends "wagtailadmin/base.html" %}
{% load image_tags %}
{% block titletag %}Add an image{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Add an image" %}{% endblock %}
{% block bodyclass %}menu-images{% endblock %}
{% block extra_css %}
{% include "wagtailadmin/shared/tag_field_css.html" %}
@ -11,7 +12,8 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Add image" %}
{% trans "Add image" as add_str %}
{% include "wagtailadmin/shared/header.html" with title=add_str %}
<div class="nice-padding">
<form action="{% url 'wagtailimages_add_image' %}" method="POST" enctype="multipart/form-data">
@ -20,7 +22,7 @@
{% for field in form %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li><input type="submit" value="Save" /></li>
<li><input type="submit" value="{% trans 'Save' %}" /></li>
</ul>
</form>
</div>

Wyświetl plik

@ -1,21 +1,22 @@
{% extends "wagtailadmin/base.html" %}
{% load image_tags %}
{% block titletag %}Delete image{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Delete image" %}{% endblock %}
{% block bodyclass %}menu-images{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Delete image" %}
{% trans "Delete image" as del_str %}
{% include "wagtailadmin/shared/header.html" with title=del_str %}
<div class="row row-flush nice-padding">
<div class="col6">
{% image image max-800x600 %}
</div>
<div class="col6">
<p>Are you sure you want to delete this image?</p>
<p>{% trans "Are you sure you want to delete this image?" %}</p>
<form action="{% url 'wagtailimages_delete_image' image.id %}" method="POST">
{% csrf_token %}
<input type="submit" value="Yes, delete" class="serious" />
<input type="submit" value="{% trans 'Yes, delete' %}" class="serious" />
</form>
</div>
</div>

Wyświetl plik

@ -1,6 +1,7 @@
{% extends "wagtailadmin/base.html" %}
{% load image_tags %}
{% block titletag %}Editing image {{ image.title }}{% endblock %}
{% load i18n %}
{% block titletag %}{% blocktrans %}Editing image {{ image.title }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-images{% endblock %}
{% block extra_css %}
{% include "wagtailadmin/shared/tag_field_css.html" %}
@ -11,8 +12,8 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=image.title %}
{% trans "Editing" as editing_str %}
{% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=image.title %}
<div class="row row-flush nice-padding">
@ -29,7 +30,7 @@
{% endif %}
{% endfor %}
<li><input type="submit" value="Save" /><a href="{% url 'wagtailimages_delete_image' image.id %}" class="button button-secondary no">Delete image</a></li>
<li><input type="submit" value="{% trans 'Save' %}" /><a href="{% url 'wagtailimages_delete_image' image.id %}" class="button button-secondary no">{% trans "Delete image" %}</a></li>
</ul>
</form>

Wyświetl plik

@ -1,7 +1,8 @@
{% extends "wagtailadmin/base.html" %}
{% load image_tags ellipsistrim %}
{% load i18n %}
{% block titletag %}Images{% endblock %}
{% block titletag %}{% trans "Images" %}{% endblock %}
{% block bodyclass %}menu-images{% endblock %}
{% block extra_js %}
<script>
@ -14,7 +15,9 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Images" add_link="wagtailimages_add_image" add_text="Add an image" search_url="wagtailimages_index" %}
{% trans "Images" as im_str %}
{% trans "Add an image" as add_img_str %}
{% include "wagtailadmin/shared/header.html" with title=im_str add_link="wagtailimages_add_image" add_text=add_img_str search_url="wagtailimages_index" %}
<div class="nice-padding">
<div id="image-results">

Wyświetl plik

@ -1,8 +1,14 @@
{% load image_tags ellipsistrim %}
{% load i18n %}
{% if images %}
{% if is_searching %}
<h2>{{ images.paginator.count }} match{{ images.paginator.count|pluralize:"es" }}</h2>
<h2>
{% blocktrans count counter=images.paginator.count %}
There is one match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}
</h2>
{% else %}
<h2>Latest images</h2>
{% endif %}
@ -22,8 +28,9 @@
{% else %}
{% if is_searching %}
<p>Sorry, no images match "<em>{{ search_query }}</em>"</p>
<p>{% blocktrans %}Sorry, no images match "<em>{{ search_query }}</em>"{% endblocktrans %}</p>
{% else %}
<p>You've not uploaded any images. Why not <a href="{% url 'wagtailimages_add_image' %}">add one now</a>?</p>
{% url 'wagtailimages_add_image' as wagtailimages_add_image_url %}
<p>{% blocktrans %}You've not uploaded any images. Why not <a href="{{ wagtailimages_add_image_url }}">add one now</a>?{% endblocktrans %}</p>
{% endif %}
{% endif %}

Wyświetl plik

@ -3,6 +3,7 @@ from django.contrib import messages
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.contrib.auth.decorators import permission_required, login_required
from django.core.exceptions import PermissionDenied
from django.utils.translation import ugettext as _
from wagtail.wagtailadmin.forms import SearchForm
@ -88,10 +89,10 @@ def edit(request, image_id):
original_file.storage.delete(original_file.name)
image.renditions.all().delete()
form.save()
messages.success(request, "Image '%s' updated." % image.title)
messages.success(request, _("Image '{0}' updated.").format(image.title))
return redirect('wagtailimages_index')
else:
messages.error(request, "The image could not be saved due to errors.")
messages.error(request, _("The image could not be saved due to errors."))
else:
form = ImageForm(instance=image)
@ -110,7 +111,7 @@ def delete(request, image_id):
if request.POST:
image.delete()
messages.success(request, "Image '%s' deleted." % image.title)
messages.success(request, _("Image '{0}' deleted.").format(image.title))
return redirect('wagtailimages_index')
return render(request, "wagtailimages/images/confirm_delete.html", {
@ -128,10 +129,10 @@ def add(request):
form = ImageForm(request.POST, request.FILES, instance=image)
if form.is_valid():
form.save()
messages.success(request, "Image '%s' added." % image.title)
messages.success(request, _("Image '{0}' added.").format(image.title))
return redirect('wagtailimages_index')
else:
messages.error(request, "The image could not be created due to errors.")
messages.error(request, _("The image could not be created due to errors."))
else:
form = ImageForm()

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,143 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# serafeim <serafeim@torchbox.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 21:32+0200\n"
"PO-Revision-Date: 2014-02-20 21:11+0000\n"
"Last-Translator: serafeim <serafeim@torchbox.com>\n"
"Language-Team: Greek (http://www.transifex.com/projects/p/wagtail/language/el/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: el\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: .\models.py:10
msgid "Redirect from"
msgstr "Ανακατεύθυνση από"
#: .\models.py:12
msgid "Permanent"
msgstr "Μόνιμη"
#: .\models.py:12
msgid ""
"Recommended. Permanent redirects ensure search engines forget the old page "
"(the 'Redirect from') and index the new page instead."
msgstr ""
#: .\models.py:13
msgid "Redirect to a page"
msgstr "Ανακατεύθυνση σε σελίδα"
#: .\models.py:14
msgid "Redirect to any URL"
msgstr ""
#: .\views.py:79
msgid "Redirect '{0}' updated."
msgstr "Η ανακατεύθυνση '{0}' αποθηκεύθηκε."
#: .\views.py:82
msgid "The redirect could not be saved due to errors."
msgstr ""
#: .\views.py:100
msgid "Redirect '{0}' deleted."
msgstr ""
#: .\views.py:120
msgid "Redirect '{0} added."
msgstr ""
#: .\views.py:123
msgid "The redirect could not be created due to errors."
msgstr ""
#: .\templates\wagtailredirects\add.html:3
#: .\templates\wagtailredirects\add.html:6
#: .\templates\wagtailredirects\index.html:18
msgid "Add redirect"
msgstr ""
#: .\templates\wagtailredirects\add.html:14
#: .\templates\wagtailredirects\edit.html:14
msgid "Save"
msgstr "Αποθήκευση"
#: .\templates\wagtailredirects\confirm_delete.html:4
#, python-format
msgid "Delete redirect %(redirect.title)s"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:6
msgid "Delete"
msgstr "Διαγραφή"
#: .\templates\wagtailredirects\confirm_delete.html:10
msgid "Are you sure you want to delete this redirect?"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:13
msgid "Yes, delete"
msgstr "Ναι, να διαγραφεί"
#: .\templates\wagtailredirects\edit.html:4
#, python-format
msgid "Editing %(redirect.title)s"
msgstr ""
#: .\templates\wagtailredirects\edit.html:6
msgid "Editing"
msgstr "Διόρθωση"
#: .\templates\wagtailredirects\edit.html:15
msgid "Delete redirect"
msgstr ""
#: .\templates\wagtailredirects\index.html:3
#: .\templates\wagtailredirects\index.html:17
msgid "Redirects"
msgstr ""
#: .\templates\wagtailredirects\list.html:18
msgid "To"
msgstr ""
#: .\templates\wagtailredirects\list.html:26
msgid "Edit this redirect"
msgstr ""
#: .\templates\wagtailredirects\list.html:35
msgid "primary"
msgstr ""
#: .\templates\wagtailredirects\results.html:5
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] ""
msgstr[1] ""
#: .\templates\wagtailredirects\results.html:18
#, python-format
msgid "Sorry, no redirects match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtailredirects\results.html:21
msgid ""
"No redirects have been created. Why not <a "
"href=\"wagtailredirects_add_redirect_url\">add one</a>?"
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,141 @@
# 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.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 21:32+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: .\models.py:10
msgid "Redirect from"
msgstr ""
#: .\models.py:12
msgid "Permanent"
msgstr ""
#: .\models.py:12
msgid ""
"Recommended. Permanent redirects ensure search engines forget the old page "
"(the 'Redirect from') and index the new page instead."
msgstr ""
#: .\models.py:13
msgid "Redirect to a page"
msgstr ""
#: .\models.py:14
msgid "Redirect to any URL"
msgstr ""
#: .\views.py:79
msgid "Redirect '{0}' updated."
msgstr ""
#: .\views.py:82
msgid "The redirect could not be saved due to errors."
msgstr ""
#: .\views.py:100
msgid "Redirect '{0}' deleted."
msgstr ""
#: .\views.py:120
msgid "Redirect '{0} added."
msgstr ""
#: .\views.py:123
msgid "The redirect could not be created due to errors."
msgstr ""
#: .\templates\wagtailredirects\add.html:3
#: .\templates\wagtailredirects\add.html:6
#: .\templates\wagtailredirects\index.html:18
msgid "Add redirect"
msgstr ""
#: .\templates\wagtailredirects\add.html:14
#: .\templates\wagtailredirects\edit.html:14
msgid "Save"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:4
#, python-format
msgid "Delete redirect %(redirect.title)s"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:6
msgid "Delete"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:10
msgid "Are you sure you want to delete this redirect?"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:13
msgid "Yes, delete"
msgstr ""
#: .\templates\wagtailredirects\edit.html:4
#, python-format
msgid "Editing %(redirect.title)s"
msgstr ""
#: .\templates\wagtailredirects\edit.html:6
msgid "Editing"
msgstr ""
#: .\templates\wagtailredirects\edit.html:15
msgid "Delete redirect"
msgstr ""
#: .\templates\wagtailredirects\index.html:3
#: .\templates\wagtailredirects\index.html:17
msgid "Redirects"
msgstr ""
#: .\templates\wagtailredirects\list.html:18
msgid "To"
msgstr ""
#: .\templates\wagtailredirects\list.html:26
msgid "Edit this redirect"
msgstr ""
#: .\templates\wagtailredirects\list.html:35
msgid "primary"
msgstr ""
#: .\templates\wagtailredirects\results.html:5
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] ""
msgstr[1] ""
#: .\templates\wagtailredirects\results.html:18
#, python-format
msgid "Sorry, no redirects match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtailredirects\results.html:21
msgid ""
"No redirects have been created. Why not <a href="
"\"wagtailredirects_add_redirect_url\">add one</a>?"
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,143 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 21:32+0200\n"
"PO-Revision-Date: 2014-02-20 21:04+0000\n"
"Last-Translator: serafeim <serafeim@torchbox.com>\n"
"Language-Team: Romanian (http://www.transifex.com/projects/p/wagtail/language/ro/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: .\models.py:10
msgid "Redirect from"
msgstr ""
#: .\models.py:12
msgid "Permanent"
msgstr ""
#: .\models.py:12
msgid ""
"Recommended. Permanent redirects ensure search engines forget the old page "
"(the 'Redirect from') and index the new page instead."
msgstr ""
#: .\models.py:13
msgid "Redirect to a page"
msgstr ""
#: .\models.py:14
msgid "Redirect to any URL"
msgstr ""
#: .\views.py:79
msgid "Redirect '{0}' updated."
msgstr ""
#: .\views.py:82
msgid "The redirect could not be saved due to errors."
msgstr ""
#: .\views.py:100
msgid "Redirect '{0}' deleted."
msgstr ""
#: .\views.py:120
msgid "Redirect '{0} added."
msgstr ""
#: .\views.py:123
msgid "The redirect could not be created due to errors."
msgstr ""
#: .\templates\wagtailredirects\add.html:3
#: .\templates\wagtailredirects\add.html:6
#: .\templates\wagtailredirects\index.html:18
msgid "Add redirect"
msgstr ""
#: .\templates\wagtailredirects\add.html:14
#: .\templates\wagtailredirects\edit.html:14
msgid "Save"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:4
#, python-format
msgid "Delete redirect %(redirect.title)s"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:6
msgid "Delete"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:10
msgid "Are you sure you want to delete this redirect?"
msgstr ""
#: .\templates\wagtailredirects\confirm_delete.html:13
msgid "Yes, delete"
msgstr ""
#: .\templates\wagtailredirects\edit.html:4
#, python-format
msgid "Editing %(redirect.title)s"
msgstr ""
#: .\templates\wagtailredirects\edit.html:6
msgid "Editing"
msgstr ""
#: .\templates\wagtailredirects\edit.html:15
msgid "Delete redirect"
msgstr ""
#: .\templates\wagtailredirects\index.html:3
#: .\templates\wagtailredirects\index.html:17
msgid "Redirects"
msgstr ""
#: .\templates\wagtailredirects\list.html:18
msgid "To"
msgstr ""
#: .\templates\wagtailredirects\list.html:26
msgid "Edit this redirect"
msgstr ""
#: .\templates\wagtailredirects\list.html:35
msgid "primary"
msgstr ""
#: .\templates\wagtailredirects\results.html:5
#, python-format
msgid ""
"\n"
" There is one match\n"
" "
msgid_plural ""
"\n"
" There are %(counter)s matches\n"
" "
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
#: .\templates\wagtailredirects\results.html:18
#, python-format
msgid "Sorry, no redirects match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtailredirects\results.html:21
msgid ""
"No redirects have been created. Why not <a "
"href=\"wagtailredirects_add_redirect_url\">add one</a>?"
msgstr ""

Wyświetl plik

@ -1,4 +1,5 @@
from django.db import models
from django.utils.translation import ugettext_lazy as _
from wagtail.wagtailadmin.edit_handlers import FieldPanel, MultiFieldPanel, PageChooserPanel
@ -6,11 +7,11 @@ from urlparse import urlparse
class Redirect(models.Model):
old_path = models.CharField("Redirect from", max_length=255, unique=True, db_index=True)
old_path = models.CharField(verbose_name=_("Redirect from"), max_length=255, unique=True, db_index=True)
site = models.ForeignKey('wagtailcore.Site', null=True, blank=True, related_name='redirects', db_index=True, editable=False)
is_permanent = models.BooleanField("Permanent", default=True, help_text="Recommended. Permanent redirects ensure search engines forget the old page (the 'Redirect from') and index the new page instead.")
redirect_page = models.ForeignKey('wagtailcore.Page', verbose_name="Redirect to a page", null=True, blank=True)
redirect_link = models.URLField("Redirect to any URL", blank=True)
is_permanent = models.BooleanField(verbose_name=_("Permanent"), default=True, help_text=_("Recommended. Permanent redirects ensure search engines forget the old page (the 'Redirect from') and index the new page instead.") )
redirect_page = models.ForeignKey('wagtailcore.Page', verbose_name=_("Redirect to a page"), null=True, blank=True)
redirect_link = models.URLField(verbose_name=_("Redirect to any URL"), blank=True)
@property
def title(self):

Wyświetl plik

@ -1,16 +1,17 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Add redirect{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Add redirect" %}{% endblock %}
{% block bodyclass %}menu-redirects{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Add redirect" %}
{% trans "Add redirect" as add_red_str %}
{% include "wagtailadmin/shared/header.html" with title=add_red_str %}
<form action="{% url 'wagtailredirects_add_redirect' %}" method="POST" class="nice-padding">
{% csrf_token %}
{{ edit_handler.render_form_content }}
<div>
<input type="submit" value="Save" />
<input type="submit" value="{% trans 'Save' %}" />
</div>
</form>

Wyświetl plik

@ -1,15 +1,16 @@
{% extends "wagtailadmin/base.html" %}
{% load i18n %}
{% block bodyclass %}menu-redirects{% endblock %}
{% block titletag %}Delete redirect {{ redirect.title }}{% endblock %}
{% block titletag %}{% blocktrans %}Delete redirect {{ redirect.title }}{% endblocktrans %}{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Delete" subtitle=redirect.title %}
{% trans "Delete" as delete_str %}
{% include "wagtailadmin/shared/header.html" with title=delete_str subtitle=redirect.title %}
<div class="row row-flush nice-padding">
<p>Are you sure you want to delete this redirect?</p>
<p>{% trans "Are you sure you want to delete this redirect?" %}</p>
<form action="{% url 'wagtailredirects_delete_redirect' redirect.id %}" method="POST">
{% csrf_token %}
<input type="submit" value="Yes, delete" class="serious" />
<input type="submit" value="{% trans 'Yes, delete' %}" class="serious" />
</form>
</div>

Wyświetl plik

@ -1,17 +1,18 @@
{% extends "wagtailadmin/base.html" %}
{% load i18n %}
{% block bodyclass %}menu-redirects{% endblock %}
{% block titletag %}Editing {{ redirect.title }}{% endblock %}
{% block titletag %}{% blocktrans %}Editing {{ redirect.title }}{% endblocktrans %}{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=redirect.title %}
{% trans "Editing" as editing_str %}
{% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=redirect.title %}
<form action="{% url 'wagtailredirects_edit_redirect' redirect.id %}" method="POST" class="nice-padding">
{% csrf_token %}
{{ edit_handler.render_form_content }}
<div>
<input type="submit" value="Save" />
<a href="{% url 'wagtailredirects_delete_redirect' redirect.id %}" class="button button-secondary no">Delete redirect</a>
<input type="submit" value="{% trans 'Save' %}" />
<a href="{% url 'wagtailredirects_delete_redirect' redirect.id %}" class="button button-secondary no">{% trans "Delete redirect" %}</a>
</div>
</form>

Wyświetl plik

@ -1,5 +1,6 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Redirects{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Redirects" %}{% endblock %}
{% block bodyclass %}menu-redirects{% endblock %}
{% block extra_js %}
@ -13,7 +14,9 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Redirects" add_link="wagtailredirects_add_redirect" add_text="Add redirect" search_url="wagtailredirects_index" %}
{% trans "Redirects" as redirects_str %}
{% trans "Add redirect" as add_str %}
{% include "wagtailadmin/shared/header.html" with title=redirects_str add_link="wagtailredirects_add_redirect" add_text=add_str search_url="wagtailredirects_index" %}
<div class="nice-padding">
<div id="redirects-results" class="redirects">

Wyświetl plik

@ -1,3 +1,4 @@
{% load i18n %}
<table class="listing">
<col width="50%"/>
<col width="40%"/>
@ -14,15 +15,15 @@
{% endif %}
{% endif %}
</th>
<th>To</th>
<th class="type">Type</th>
<th>{% trans "To" %}</th>
<th class="type">{% trans "Type" %}</th>
</tr>
</thead>
<tbody>
{% for redirect in redirects %}
<tr>
<td class="title">
<h2><a href="{% url 'wagtailredirects_edit_redirect' redirect.id %}" title="Edit this redirect">{{ redirect.title }}</a></h2>
<h2><a href="{% url 'wagtailredirects_edit_redirect' redirect.id %}" title="{% trans 'Edit this redirect' %}">{{ redirect.title }}</a></h2>
</td>
<td>
{% if redirect.redirect_page %}
@ -31,7 +32,7 @@
{{ redirect.link }}
{% endif %}
</td>
<td class="type"><div class="status-tag {% if redirect.get_is_permanent_display = "permanent" %}primary{% endif %}">{{ redirect.get_is_permanent_display }}</div></td>
<td class="type"><div class="status-tag {% if redirect.get_is_permanent_display = "permanent" %}{% trans "primary" %}{% endif %}">{{ redirect.get_is_permanent_display }}</div></td>
</tr>
{% endfor %}
</tbody>

Wyświetl plik

@ -1,6 +1,13 @@
{% load i18n %}
{% if redirects %}
{% if is_searching %}
<h2>{{ redirects|length }} match{{ redirects|pluralize:"es" }}</h2>
<h2>
{% blocktrans count counter=redirects|length %}
There is one match
{% plural %}
There are {{ counter }} matches
{% endblocktrans %}
</h2>
{% endif %}
{% include "wagtailredirects/list.html" %}
@ -8,8 +15,9 @@
{% include "wagtailadmin/shared/pagination_nav.html" with items=redirects is_searching=is_searching linkurl="wagtailredirects_index" %}
{% else %}
{% if is_searching %}
<p>Sorry, no redirects match "<em>{{ search_query }}</em>"
<p>{% blocktrans %}Sorry, no redirects match "<em>{{ search_query }}</em>"{% endblocktrans %}
{% else %}
<p>No redirects have been created. Why not <a href="{% url 'wagtailredirects_add_redirect' %}">add one</a>?</p>
{% url 'wagtailredirects_add_redirect' as wagtailredirects_add_redirect_url %}
<p>{% blocktrans %}No redirects have been created. Why not <a href="wagtailredirects_add_redirect_url">add one</a>?{% endblocktrans %}</p>
{% endif %}
{% endif %}

Wyświetl plik

@ -2,6 +2,7 @@ from django.shortcuts import render, redirect, get_object_or_404
from django.contrib import messages
from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.utils.translation import ugettext as _
from wagtail.wagtailadmin.edit_handlers import ObjectList
from wagtail.wagtailadmin.forms import SearchForm
@ -75,10 +76,10 @@ def edit(request, redirect_id):
form = form_class(request.POST, request.FILES, instance=theredirect)
if form.is_valid():
form.save()
messages.success(request, "Redirect '%s' updated." % theredirect.title)
messages.success(request, _("Redirect '{0}' updated.").format(theredirect.title))
return redirect('wagtailredirects_index')
else:
messages.error(request, "The redirect could not be saved due to errors.")
messages.error(request, _("The redirect could not be saved due to errors."))
edit_handler = REDIRECT_EDIT_HANDLER(instance=theredirect, form=form)
else:
form = form_class(instance=theredirect)
@ -96,7 +97,7 @@ def delete(request, redirect_id):
if request.POST:
theredirect.delete()
messages.success(request, "Redirect '%s' deleted." % theredirect.title)
messages.success(request, _("Redirect '{0}' deleted.").format(theredirect.title))
return redirect('wagtailredirects_index')
return render(request, "wagtailredirects/confirm_delete.html", {
@ -116,10 +117,10 @@ def add(request):
theredirect.site = request.site
theredirect.save()
messages.success(request, "Redirect '%s' added." % theredirect.title)
messages.success(request, _("Redirect '{0} added.").format(theredirect.title))
return redirect('wagtailredirects_index')
else:
messages.error(request, "The redirect could not be created due to errors.")
messages.error(request, _("The redirect could not be created due to errors."))
edit_handler = REDIRECT_EDIT_HANDLER(instance=theredirect, form=form)
else:
form = form_class()

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,151 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# zerolab, 2014
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-19 23:22+0200\n"
"PO-Revision-Date: 2014-02-19 23:10+0000\n"
"Last-Translator: zerolab\n"
"Language-Team: Romanian (http://www.transifex.com/projects/p/wagtail/language/ro/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: .\forms.py:8
msgid "Search term(s)/phrase"
msgstr "Termeni/frază de căutare"
#: .\forms.py:9
msgid ""
"Enter the full search string to match. An \n"
" exact match is required for your Editors Picks to be \n"
" displayed, wildcards are NOT allowed."
msgstr "Introduceți șirul complet de căutare. \nEste nevoie de potrivire exactă pentru a afișa selecții \neditoriale. Metacaractere NU sunt permise."
#: .\templates\wagtailsearch\editorspicks\add.html:3
#: .\templates\wagtailsearch\editorspicks\add.html:5
msgid "Add editor's pick"
msgstr "Adaugă selecție editorială"
#: .\templates\wagtailsearch\editorspicks\add.html:9
msgid ""
"\n"
" <p>Editors picks are a means of recommending specific pages that might not organically come high up in search results. E.g recommending your primary donation page to a user searching with a less common term like \"<em>giving</em>\".</p>\n"
" "
msgstr "\n<p>Selecțiile editoriale sunt mijloace de recomandare de pagini particulare ce pot să nu apară la începutul rezultatelor de căutare în mod natural. De exemplu, recomandarea paginii de donații utilizatorilor care au căutat termeni mai puțin specifici ca \"<em>dare</em>\".</p>"
#: .\templates\wagtailsearch\editorspicks\add.html:12
msgid ""
"\n"
" <p>The \"Search term(s)/phrase\" field below must contain the full and exact search for which you wish to provide recommended results, <em>including</em> any misspellings/user error. To help, you can choose from search terms that have been popular with users of your site.</p>\n"
" "
msgstr "\n<p>Câmpul \"Termeni/frază de căutare\" de mai jos trebuie să conțină șirul exact pentru care doriți să furnizați rezultate recomandate. <em>Includeți</em> greșeli ortografice și alte greșeli. Puteți să alegeți din termenii de căutare populari printre utilizatorii sitului Dvstră.</p>"
#: .\templates\wagtailsearch\editorspicks\add.html:25
#: .\templates\wagtailsearch\editorspicks\edit.html:19
msgid "Save"
msgstr "Salvează"
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:3
#, python-format
msgid "Delete %(query.query_string)s"
msgstr "Șterge %(query.query_string)s"
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:5
#: .\templates\wagtailsearch\editorspicks\edit.html:20
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:6
msgid "Delete"
msgstr "Șterge"
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:9
msgid ""
"Are you sure you want to delete all editors picks for this search term?"
msgstr "Sigur doriți să ștergeți toate selecțiile editoriale pentru acest termen de căutare?"
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:12
msgid "Yes, delete"
msgstr "Da, șterge"
#: .\templates\wagtailsearch\editorspicks\edit.html:3
#, python-format
msgid "Editing %(query.query_string)s"
msgstr "Editare %(query.query_string)s"
#: .\templates\wagtailsearch\editorspicks\edit.html:5
msgid "Editing"
msgstr "Editare"
#: .\templates\wagtailsearch\editorspicks\index.html:3
msgid "Search Terms"
msgstr "Termeni de căutare"
#: .\templates\wagtailsearch\editorspicks\index.html:17
msgid "Editor's search picks"
msgstr "Selecții editoriale de căutare"
#: .\templates\wagtailsearch\editorspicks\index.html:18
msgid "Add new editor's pick"
msgstr "Adaugă selecție editorială nouă"
#: .\templates\wagtailsearch\editorspicks\list.html:8
msgid "Search term(s)"
msgstr "Termen de căutare"
#: .\templates\wagtailsearch\editorspicks\list.html:9
msgid "Editors picks"
msgstr "Selecții editoriale"
#: .\templates\wagtailsearch\editorspicks\list.html:10
msgid "Views (past week)"
msgstr "Vizualizări (săptămâna trecută)"
#: .\templates\wagtailsearch\editorspicks\list.html:23
msgid "None"
msgstr "Nici una"
#: .\templates\wagtailsearch\editorspicks\results.html:11
#, python-format
msgid "Sorry, no editor's picks match \"<em>%(search_query)s</em>\""
msgstr "Ne pare rău, \"<em>%(search_query)s</em>\" nu se potrivește cu nici o selecție editorială"
#: .\templates\wagtailsearch\editorspicks\results.html:14
#, python-format
msgid ""
"No editor's picks have been created. Why not <a "
"href=\"%(wagtailsearch_editorspicks_add_url)s\">add one</a>?"
msgstr "Nu a fost creată nici o selecție editorială. De ce n-ai <a href=\"%(wagtailsearch_editorspicks_add_url)s\">adauga una</a>?"
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:4
msgid "Move up"
msgstr "Deplasează în sus"
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:5
msgid "Move down"
msgstr "Deplasează în jos"
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:10
msgid "Editors pick"
msgstr "Selecție editorială"
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_formset.html:14
msgid "Add recommended page"
msgstr "Adaugă pagină recomandată"
#: .\views\editorspicks.py:85
msgid "Editor's picks for '{0}' created."
msgstr "Selecția editorială pentru '{0}' a fost creată."
#: .\views\editorspicks.py:113
msgid "Editor's picks for '{0}' updated."
msgstr "Selecțiile editoriale pentru '{0}' au fost actualizate."
#: .\views\editorspicks.py:132
msgid "Editor's picks deleted."
msgstr "Selecții editoriale au fost șterse"

Wyświetl plik

@ -0,0 +1,125 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# zerolab, 2014
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-19 20:59+0200\n"
"PO-Revision-Date: 2014-02-19 23:08+0000\n"
"Last-Translator: zerolab\n"
"Language-Team: Romanian (http://www.transifex.com/projects/p/wagtail/language/ro/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: .\templates\wagtailsnippets\chooser\choose.html:2
msgid "Choose"
msgstr "Alege"
#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:10
#, python-format
msgid "Choose another %(snippet_type_name)s"
msgstr "Alege alt %(snippet_type_name)s"
#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:11
#, python-format
msgid "Choose %(snippet_type_name)s"
msgstr "Alege %(snippet_type_name)s"
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:3
#, python-format
msgid "Delete %(snippet_type_name)s - %(instance)s"
msgstr "Șterge %(snippet_type_name)s - %(instance)s"
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:6
#: .\templates\wagtailsnippets\snippets\edit.html:20
msgid "Delete"
msgstr "Șterge"
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:10
#, python-format
msgid "Are you sure you want to delete this %(snippet_type_name)s?"
msgstr "Sigur doriți să ștergeți acest %(snippet_type_name)s?"
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:13
msgid "Yes, delete"
msgstr "Da, șterge"
#: .\templates\wagtailsnippets\snippets\create.html:3
#, python-format
msgid "New %(snippet_type_name)s"
msgstr "%(snippet_type_name)s nou"
#: .\templates\wagtailsnippets\snippets\create.html:6
msgid "New"
msgstr "Nou"
#: .\templates\wagtailsnippets\snippets\create.html:17
#: .\templates\wagtailsnippets\snippets\edit.html:17
msgid "Save"
msgstr "Salveză"
#: .\templates\wagtailsnippets\snippets\edit.html:3
#, python-format
msgid "Editing %(snippet_type_name)s - %(instance)s"
msgstr "Editare %(snippet_type_name)s - %(instance)s"
#: .\templates\wagtailsnippets\snippets\edit.html:6
msgid "Editing"
msgstr "Editare"
#: .\templates\wagtailsnippets\snippets\index.html:3
msgid "Snippets"
msgstr "Fragmente"
#: .\templates\wagtailsnippets\snippets\list.html:8
msgid "Title"
msgstr "Titlu"
#: .\templates\wagtailsnippets\snippets\type_index.html:3
#, python-format
msgid "Snippets %(snippet_type_name_plural|capfirst)s"
msgstr "Fragmente %(snippet_type_name_plural|capfirst)s"
#: .\templates\wagtailsnippets\snippets\type_index.html:10
#, python-format
msgid "Snippets <span>%(snippet_type_name_plural|capfirst)s</span>"
msgstr "Fragmente <span>%(snippet_type_name_plural|capfirst)s</span>"
#: .\templates\wagtailsnippets\snippets\type_index.html:13
#, python-format
msgid "Add %(snippet_type_name)s"
msgstr "Adaugă %(snippet_type_name)s"
#: .\templates\wagtailsnippets\snippets\type_index.html:23
#, python-format
msgid ""
"No %(snippet_type_name_plural)s have been created. Why not <a "
"href=\"%(wagtailsnippets_create_url)s\">add one</a>?"
msgstr "Nu au fost create nici un %(snippet_type_name_plural)s. De nu ai <a href=\"%(wagtailsnippets_create_url)s\">adăuga unul</a>?"
#: .\views\snippets.py:127
msgid "{snippet_type} '{instance}' created."
msgstr "{snippet_type} '{instance}' a fost creat."
#: .\views\snippets.py:134
msgid "The snippet could not be created due to errors."
msgstr "Fragmentul nu a fost creat din cauze erorilor."
#: .\views\snippets.py:168
msgid "{snippet_type} '{instance}' updated."
msgstr "{snippet_type} '{instance}' a fost actualizat."
#: .\views\snippets.py:175
msgid "The snippet could not be saved due to errors."
msgstr "Fragmentul nu a fost salvat din cauza erorilor."
#: .\views\snippets.py:204
msgid "{snippet_type} '{instance}' deleted."
msgstr "{snippet_type} '{instance}' a fost eliminat."

Wyświetl plik

@ -0,0 +1,165 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# zerolab, 2014
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-19 20:59+0200\n"
"PO-Revision-Date: 2014-02-19 23:08+0000\n"
"Last-Translator: zerolab\n"
"Language-Team: Romanian (http://www.transifex.com/projects/p/wagtail/language/ro/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ro\n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
#: .\forms.py:12 .\forms.py:73
msgid "Administrator"
msgstr "Administrator"
#: .\forms.py:14
msgid "If ticked, this user has the ability to manage user accounts."
msgstr "Acest utilizator poate gestiona conturi de utilizator dacă este bifat."
#: .\forms.py:17 .\forms.py:58
msgid "Email"
msgstr "E-mail"
#: .\forms.py:18 .\forms.py:59
msgid "First Name"
msgstr "Prenume"
#: .\forms.py:19 .\forms.py:60
msgid "Last Name"
msgstr "Nume"
#: .\forms.py:46
msgid "A user with that username already exists."
msgstr "Un alt utilizator cu acest nume există deja."
#: .\forms.py:47
msgid "The two password fields didn't match."
msgstr "Câmpurile de parolă nu se potrivesc."
#: .\forms.py:50 .\templates\wagtailusers\list.html:15
msgid "Username"
msgstr "Nume utlizator"
#: .\forms.py:53
msgid "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only."
msgstr "Necesar. Până la 30 caractere. Numai litere, numere și @/./+/-/_"
#: .\forms.py:55
msgid "This value may contain only letters, numbers and @/./+/-/_ characters."
msgstr "Această valoare poate conține numai litere, numere și @/./+/-/_"
#: .\forms.py:63
msgid "Password"
msgstr "Parolă"
#: .\forms.py:66
msgid "Leave blank if not changing."
msgstr "Lăsați liber dacă nu schimbați."
#: .\forms.py:68
msgid "Password confirmation"
msgstr "Confirmare parolă"
#: .\forms.py:70
msgid "Enter the same password as above, for verification."
msgstr "Introduceți aceeași parolă ca mai sus pentru verificare"
#: .\forms.py:75
msgid "Administrators have the ability to manage user accounts."
msgstr "Administratorii pot gestiona conturi de utilizator."
#: .\templates\wagtailusers\create.html:4
#: .\templates\wagtailusers\create.html:8
#: .\templates\wagtailusers\create.html:35
msgid "Add user"
msgstr "Adaugă utilizator"
#: .\templates\wagtailusers\create.html:12
#: .\templates\wagtailusers\edit.html:12
msgid "Account"
msgstr "Cont"
#: .\templates\wagtailusers\create.html:13
#: .\templates\wagtailusers\create.html:28
#: .\templates\wagtailusers\edit.html:13
msgid "Roles"
msgstr "Roluri"
#: .\templates\wagtailusers\edit.html:4 .\templates\wagtailusers\edit.html:8
msgid "Editing"
msgstr "Editare"
#: .\templates\wagtailusers\edit.html:30 .\templates\wagtailusers\edit.html:37
msgid "Save"
msgstr "Salvează"
#: .\templates\wagtailusers\index.html:4
#: .\templates\wagtailusers\index.html:17
msgid "Users"
msgstr "Utilizatori"
#: .\templates\wagtailusers\index.html:18
msgid "Add a user"
msgstr "Adaugă un utilizator"
#: .\templates\wagtailusers\list.html:7
msgid "Name"
msgstr "Nume"
#: .\templates\wagtailusers\list.html:22
msgid "Level"
msgstr "Nivel"
#: .\templates\wagtailusers\list.html:23
msgid "Status"
msgstr "Status"
#: .\templates\wagtailusers\list.html:36
msgid "Admin"
msgstr "Administrator"
#: .\templates\wagtailusers\list.html:37
msgid "Active"
msgstr "Activ"
#: .\templates\wagtailusers\list.html:37
msgid "Inactive"
msgstr "Inactiv"
#: .\templates\wagtailusers\results.html:12
#, python-format
msgid "Sorry, no users match \"<em>%(search_query)s</em>\""
msgstr "Ne pare rău, \"<em>%(search_query)s</em>\" nu se potrivesc cu nici un utilizator"
#: .\templates\wagtailusers\results.html:15
#, python-format
msgid ""
"There are no users configured. Why not <a "
"href=\"%(wagtailusers_create_url)s\">add some</a>?"
msgstr "Nu există nici un utilizator. De ce sa nu <a href=\"%(wagtailusers_create_url)s\">adăugați unii</a>?"
#: .\views\users.py:75
msgid "User '{0}' created."
msgstr "Utilizatorul '{0}' a fost creat."
#: .\views\users.py:78
msgid "The user could not be created due to errors."
msgstr "Utilizatorul nu a fost creat din cauze erorilor."
#: .\views\users.py:94
msgid "User '{0}' updated."
msgstr "Utilizatorul '{0}' a fost actualizat."
#: .\views\users.py:97
msgid "The user could not be saved due to errors."
msgstr "Utilizatorul nu a fost salvat din cauza erorilor."