Merge branch 'i18n' of https://github.com/spapas/wagtail into spapas-i18n

pull/82/head
Matt Westcott 2014-02-20 14:49:17 +00:00
commit 5f332a1ca8
41 zmienionych plików z 1136 dodań i 103 usunięć

20
.tx/config 100644
Wyświetl plik

@ -0,0 +1,20 @@
[main]
host = https://www.transifex.com
[wagtail.wagtailsearch]
file_filter = wagtail/wagtailsearch/locale/<lang>/LC_MESSAGES/django.po
source_file = wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO
[wagtail.wagtailsnippets]
file_filter = wagtail/wagtailsnippets/locale/<lang>/LC_MESSAGES/django.po
source_file = wagtail/wagtailsnippets/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO
[wagtail.wagtailusers]
file_filter = wagtail/wagtailusers/locale/<lang>/LC_MESSAGES/django.po
source_file = wagtail/wagtailusers/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

Wyświetl plik

@ -1,11 +1,15 @@
from django import forms
from django.forms.models import inlineformset_factory
from django.utils.translation import ugettext_lazy as _
import models
class QueryForm(forms.Form):
query_string = forms.CharField(label='Search term(s)/phrase', help_text="Enter the full search string to match. An exact match is required for your Editors Picks to be displayed, wildcards are NOT allowed.", required=True)
query_string = forms.CharField(label=_('Search term(s)/phrase'),
help_text=_("""Enter the full search string to match. An
exact match is required for your Editors Picks to be
displayed, wildcards are NOT allowed."""),
required=True)
class EditorsPickForm(forms.ModelForm):

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,191 @@
# 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 00:14+0200\n"
"PO-Revision-Date: 2014-02-19 21:25+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:8
msgid "Search term(s)/phrase"
msgstr ""
#: .\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 ""
#: .\templates\wagtailsearch\editorspicks\add.html:3
#: .\templates\wagtailsearch\editorspicks\add.html:5
msgid "Add editor's pick"
msgstr ""
#: .\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 ""
#: .\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 ""
#: .\templates\wagtailsearch\editorspicks\add.html:25
#: .\templates\wagtailsearch\editorspicks\edit.html:19
msgid "Save"
msgstr "Αποθήκευση"
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:3
#, python-format
msgid "Delete %(query.query_string)s"
msgstr "Διαγραφή %(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 "Διαγραφή"
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:9
msgid "Are you sure you want to delete all editors picks for this search term?"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:12
msgid "Yes, delete"
msgstr "Ναι, να διαγραφεί"
#: .\templates\wagtailsearch\editorspicks\edit.html:3
#, python-format
msgid "Editing %(query.query_string)s"
msgstr "Διόρθωση του %(query.query_string)s"
#: .\templates\wagtailsearch\editorspicks\edit.html:5
msgid "Editing"
msgstr "Διόρθωση"
#: .\templates\wagtailsearch\editorspicks\index.html:3
msgid "Search Terms"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\index.html:17
msgid "Editor's search picks"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\index.html:18
msgid "Add new editor's pick"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:8
msgid "Search term(s)"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:9
msgid "Editors picks"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:10
#: .\templates\wagtailsearch\queries\chooser\results.html:9
msgid "Views (past week)"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:17
msgid "Edit this pick"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:23
msgid "None"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\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\wagtailsearch\editorspicks\results.html:18
#, python-format
msgid "Sorry, no editor's picks match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\templates\wagtailsearch\editorspicks\results.html:21
#, python-format
msgid ""
"No editor's picks have been created. Why not <a href=\"%"
"(wagtailsearch_editorspicks_add_url)s\">add one</a>?"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:4
msgid "Move up"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:5
msgid "Move down"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:10
msgid "Editors pick"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_formset.html:14
msgid "Add recommended page"
msgstr ""
#: .\templates\wagtailsearch\queries\chooser\chooser.html:2
msgid "Popular search terms"
msgstr ""
#: .\templates\wagtailsearch\queries\chooser\chooser.html:10
msgid "Search"
msgstr ""
#: .\templates\wagtailsearch\queries\chooser\results.html:8
msgid "Terms"
msgstr ""
#: .\templates\wagtailsearch\queries\chooser\results.html:23
msgid "No results found"
msgstr ""
#: .\views\editorspicks.py:85
msgid "Editor's picks for '{0}' created."
msgstr ""
#: .\views\editorspicks.py:113
msgid "Editor's picks for '{0}' updated."
msgstr ""
#: .\views\editorspicks.py:132
msgid "Editor's picks deleted."
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,154 @@
# 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-19 23:22+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:8
msgid "Search term(s)/phrase"
msgstr ""
#: .\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 ""
#: .\templates\wagtailsearch\editorspicks\add.html:3
#: .\templates\wagtailsearch\editorspicks\add.html:5
msgid "Add editor's pick"
msgstr ""
#: .\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 ""
#: .\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 ""
#: .\templates\wagtailsearch\editorspicks\add.html:25
#: .\templates\wagtailsearch\editorspicks\edit.html:19
msgid "Save"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:3
#, python-format
msgid "Delete %(query.query_string)s"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:5
#: .\templates\wagtailsearch\editorspicks\edit.html:20
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:6
msgid "Delete"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:9
msgid "Are you sure you want to delete all editors picks for this search term?"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\confirm_delete.html:12
msgid "Yes, delete"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\edit.html:3
#, python-format
msgid "Editing %(query.query_string)s"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\edit.html:5
msgid "Editing"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\index.html:3
msgid "Search Terms"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\index.html:17
msgid "Editor's search picks"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\index.html:18
msgid "Add new editor's pick"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:8
msgid "Search term(s)"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:9
msgid "Editors picks"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:10
msgid "Views (past week)"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\list.html:23
msgid "None"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\results.html:11
#, python-format
msgid "Sorry, no editor's picks match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\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 ""
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:4
msgid "Move up"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:5
msgid "Move down"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_form.html:10
msgid "Editors pick"
msgstr ""
#: .\templates\wagtailsearch\editorspicks\includes\editorspicks_formset.html:14
msgid "Add recommended page"
msgstr ""
#: .\views\editorspicks.py:85
msgid "Editor's picks for '{0}' created."
msgstr ""
#: .\views\editorspicks.py:113
msgid "Editor's picks for '{0}' updated."
msgstr ""
#: .\views\editorspicks.py:132
msgid "Editor's picks deleted."
msgstr ""

Wyświetl plik

@ -1,13 +1,17 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Add editors pick{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Add editor's pick" %}{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Add editor's pick" %}
{% trans "Add editor's pick" as add_str %}
{% include "wagtailadmin/shared/header.html" with title=add_str %}
<div class="nice-padding">
{% blocktrans %}
<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>
{% endblocktrans %}
{% blocktrans %}
<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>
{% endblocktrans %}
<form action="{% url 'wagtailsearch_editorspicks_add' %}" method="POST">
{% csrf_token %}
@ -18,7 +22,7 @@
<li>
{% include "wagtailsearch/editorspicks/includes/editorspicks_formset.html" with formset=editors_pick_formset only %}
</li>
<li><input type="submit" value="Save" /></li>
<li><input type="submit" value="{% trans 'Save' %}" /></li>
</ul>
</form>
</div>

Wyświetl plik

@ -1,15 +1,15 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Delete {{ query.query_string }}{% endblock %}
{% load i18n %}
{% block titletag %}{% blocktrans %}Delete {{ query.query_string }}{% endblocktrans %}{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Delete" subtitle=query.query_string %}
{% trans "Delete" as delete_str %}
{% include "wagtailadmin/shared/header.html" with title=delete_str subtitle=query.query_string %}
<div class="nice-padding">
<p>Are you sure you want to delete all editors picks for this search term?</p>
<p>{% trans "Are you sure you want to delete all editors picks for this search term?" %}</p>
<form action="{% url 'wagtailsearch_editorspicks_delete' query.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,8 +1,9 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Editing {{ query.query_string }}{% endblock %}
{% load i18n %}
{% block titletag %}{% blocktrans %}Editing {{ query.query_string }}{% endblocktrans %}{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=query.query_string %}
{% trans "Editing" as editing_str %}
{% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=query.query_string %}
<form action="{% url 'wagtailsearch_editorspicks_edit' query.id %}" method="POST" class="nice-padding">
{% csrf_token %}
@ -15,8 +16,8 @@
{% include "wagtailsearch/editorspicks/includes/editorspicks_formset.html" with formset=editors_pick_formset only %}
</li>
<li>
<input type="submit" value="Save" />
<a href="{% url 'wagtailsearch_editorspicks_delete' query.id %}" class="button button-secondary no">Delete</a>
<input type="submit" value="{% trans 'Save' %}" />
<a href="{% url 'wagtailsearch_editorspicks_delete' query.id %}" class="button button-secondary no">{% trans "Delete" %}</a>
</li>
</ul>
</form>

Wyświetl plik

@ -1,12 +1,13 @@
{% load i18n %}
<li id="inline_child_{{ form.prefix }}"{% if form.DELETE.value %} style="display: none;"{% endif %}>
<ul class="controls">
<li class="icon text-replace icon-order-up inline-child-move-up" id="{{ form.prefix }}-move-up">Move up</li>
<li class="icon text-replace icon-order-down inline-child-move-down" id="{{ form.prefix }}-move-down">Move down</li>
<li class="icon text-replace icon-bin" id="{{ form.DELETE.id_for_label }}-button">Delete</li>
<li class="icon text-replace icon-order-up inline-child-move-up" id="{{ form.prefix }}-move-up">{% trans "Move up" %}</li>
<li class="icon text-replace icon-order-down inline-child-move-down" id="{{ form.prefix }}-move-down">{% trans "Move down" %}</li>
<li class="icon text-replace icon-bin" id="{{ form.DELETE.id_for_label }}-button">{% trans "Delete" %}</li>
</ul>
<fieldset>
<legend>Editors pick</legend>
<legend>{% trans "Editors pick" %}</legend>
<ul class="fields">
<li class="model_choice_field">
{% if form.instance.page %}

Wyświetl plik

@ -1,3 +1,4 @@
{% load i18n %}
{{ formset.management_form }}
<ul class="multiple" id="id_{{ formset.prefix }}-FORMS">
{% for form in formset.forms %}
@ -10,5 +11,5 @@
</script>
<p class="add">
<a class="button bicolor icon icon-plus" id="id_{{ formset.prefix }}-ADD" value="Add">Add recommended page</a>
<a class="button bicolor icon icon-plus" id="id_{{ formset.prefix }}-ADD" value="Add">{% trans "Add recommended page" %}</a>
</p>

Wyświetl plik

@ -1,5 +1,6 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Search Terms{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Search Terms" %}{% endblock %}
{% block bodyclass %}menu-editorspicks{% endblock %}
{% block extra_js %}
@ -13,7 +14,9 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Editor's search picks" add_link="wagtailsearch_editorspicks_add" add_text="Add new editor's pick" search_url="wagtailsearch_editorspicks_index" %}
{% trans "Editor's search picks" as sp_title_str %}
{% trans "Add new editor's pick" as sp_text_str %}
{% include "wagtailadmin/shared/header.html" with title=sp_title_str add_link="wagtailsearch_editorspicks_add" add_text=sp_text_str search_url="wagtailsearch_editorspicks_index" %}
<div class="nice-padding">
<div id="editorspicks-results" class="redirects">

Wyświetl plik

@ -1,25 +1,26 @@
{% load i18n %}
<table class="listing">
<col width="40%" />
<col width="40%"/>
<col />
<thead>
<tr>
<th class="title">Search term(s)</th>
<th>Editors picks</th>
<th>Views (past week)</th>
<th class="title">{% trans "Search term(s)" %}</th>
<th>{% trans "Editors picks" %}</th>
<th>{% trans "Views (past week)" %}</th>
</tr>
</thead>
<tbody>
{% for query in queries %}
<tr>
<td class="title">
<h2><a href="{% url 'wagtailsearch_editorspicks_edit' query.id %}" title="Edit this pick">{{ query.query_string }}</a></h2>
<h2><a href="{% url 'wagtailsearch_editorspicks_edit' query.id %}" title="{% trans 'Edit this pick' %}">{{ query.query_string }}</a></h2>
</td>
<td>
{% for editors_pick in query.editors_picks.all %}
<a href="{% url 'wagtailadmin_pages_edit' editors_pick.page.id %}" class="nolink">{{ editors_pick.page.title }}</a>{% if not forloop.last %}, {% endif %}
{% empty %}
None
{% trans "None" %}
{% endfor %}
</td>
<td>{{ query.hits }}</td>

Wyświetl plik

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

Wyświetl plik

@ -1,11 +1,13 @@
{% include "wagtailadmin/shared/header.html" with title="Popular search terms" %}
{% load i18n %}
{% trans "Popular search terms" as pop_str %}
{% include "wagtailadmin/shared/header.html" with title=pop_str %}
<form class="query-search search-bar full-width" action="{% url 'wagtailsearch_queries_chooserresults' %}" method="GET" autocomplete="off">
<ul class="fields">
{% 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 class="nice-padding">

Wyświetl plik

@ -1,11 +1,12 @@
{% load i18n %}
<table class="listing chooser">
<col />
<col width="40%"/>
<col />
<thead>
<tr>
<th class="title">Terms</th>
<th>Views (past week)</th>
<th class="title">{% trans "Terms" %}</th>
<th>{% trans "Views (past week)" %}</th>
</tr>
</thead>
<tbody>
@ -19,7 +20,7 @@
</tr>
{% endfor %}
{% else %}
<tr><td colspan="3" class="no-results-message"><p>No results found</p></td></tr>
<tr><td colspan="3" class="no-results-message"><p>{% trans "No results found" %}</p></td></tr>
{% endif %}
</tbody>
</table>

Wyświetl plik

@ -3,6 +3,7 @@ from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.utils.translation import ugettext as _
from wagtail.wagtailsearch import models, forms
from wagtail.wagtailadmin.forms import SearchForm
@ -81,7 +82,7 @@ def add(request):
editors_pick_formset = forms.EditorsPickFormSet(request.POST, instance=query)
if save_editorspicks(query, query, editors_pick_formset):
messages.success(request, "Editor's picks for '%s' created." % query)
messages.success(request, _("Editor's picks for '{0}' created.").format(query))
return redirect('wagtailsearch_editorspicks_index')
else:
editors_pick_formset = forms.EditorsPickFormSet()
@ -109,7 +110,7 @@ def edit(request, query_id):
editors_pick_formset = forms.EditorsPickFormSet(request.POST, instance=query)
if save_editorspicks(query, new_query, editors_pick_formset):
messages.success(request, "Editor's picks for '%s' updated." % new_query)
messages.success(request, _("Editor's picks for '{0}' updated.").format(new_query))
return redirect('wagtailsearch_editorspicks_index')
else:
query_form = forms.QueryForm(initial=dict(query_string=query.query_string))
@ -128,6 +129,7 @@ def delete(request, query_id):
if request.POST:
query.editors_picks.all().delete()
messages.success(request, _("Editor's picks deleted."))
return redirect('wagtailsearch_editorspicks_index')
return render(request, 'wagtailsearch/editorspicks/confirm_delete.html', {

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,126 @@
# 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 00:15+0200\n"
"PO-Revision-Date: 2014-02-19 21:31+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"
#: .\templates\wagtailsnippets\chooser\choose.html:2
msgid "Choose"
msgstr "Επιλογή"
#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:10
#, python-format
msgid "Choose another %(snippet_type_name)s"
msgstr "Επιλογή άλλου %(snippet_type_name)s"
#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:11
#, python-format
msgid "Choose %(snippet_type_name)s"
msgstr "Επιλογή %(snippet_type_name)s"
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:3
#, python-format
msgid "Delete %(snippet_type_name)s - %(instance)s"
msgstr ""
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:6
#: .\templates\wagtailsnippets\snippets\edit.html:20
msgid "Delete"
msgstr "Διαγραφή"
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:10
#, python-format
msgid "Are you sure you want to delete this %(snippet_type_name)s?"
msgstr "Είστε σίγουροι ότι θέλετε να διαγραφεί αυτό το %(snippet_type_name)s;"
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:13
msgid "Yes, delete"
msgstr "Ναι, να διαγραφεί"
#: .\templates\wagtailsnippets\snippets\create.html:3
#, python-format
msgid "New %(snippet_type_name)s"
msgstr "Δημιουργία %(snippet_type_name)s"
#: .\templates\wagtailsnippets\snippets\create.html:6
msgid "New"
msgstr "Δημιουργία"
#: .\templates\wagtailsnippets\snippets\create.html:17
#: .\templates\wagtailsnippets\snippets\edit.html:17
msgid "Save"
msgstr "Αποθήκευση"
#: .\templates\wagtailsnippets\snippets\edit.html:3
#, python-format
msgid "Editing %(snippet_type_name)s - %(instance)s"
msgstr "Διόρθωση %(snippet_type_name)s - %(instance)s"
#: .\templates\wagtailsnippets\snippets\edit.html:6
msgid "Editing"
msgstr "Διόρθωση"
#: .\templates\wagtailsnippets\snippets\index.html:3
msgid "Snippets"
msgstr ""
#: .\templates\wagtailsnippets\snippets\list.html:8
msgid "Title"
msgstr "Τίτλος"
#: .\templates\wagtailsnippets\snippets\type_index.html:3
#, python-format
msgid "Snippets %(snippet_type_name_plural|capfirst)s"
msgstr ""
#: .\templates\wagtailsnippets\snippets\type_index.html:10
#, python-format
msgid "Snippets <span>%(snippet_type_name_plural|capfirst)s</span>"
msgstr ""
#: .\templates\wagtailsnippets\snippets\type_index.html:13
#, python-format
msgid "Add %(snippet_type_name)s"
msgstr "Προσθήκη %(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 ""
#: .\views\snippets.py:127
msgid "{snippet_type} '{instance}' created."
msgstr ""
#: .\views\snippets.py:134
msgid "The snippet could not be created due to errors."
msgstr ""
#: .\views\snippets.py:168
msgid "{snippet_type} '{instance}' updated."
msgstr ""
#: .\views\snippets.py:175
msgid "The snippet could not be saved due to errors."
msgstr ""
#: .\views\snippets.py:204
msgid "{snippet_type} '{instance}' deleted."
msgstr ""

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,123 @@
# 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-19 20:59+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"
#: .\templates\wagtailsnippets\chooser\choose.html:2
msgid "Choose"
msgstr ""
#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:10
#, python-format
msgid "Choose another %(snippet_type_name)s"
msgstr ""
#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:11
#, python-format
msgid "Choose %(snippet_type_name)s"
msgstr ""
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:3
#, python-format
msgid "Delete %(snippet_type_name)s - %(instance)s"
msgstr ""
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:6
#: .\templates\wagtailsnippets\snippets\edit.html:20
msgid "Delete"
msgstr ""
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:10
#, python-format
msgid "Are you sure you want to delete this %(snippet_type_name)s?"
msgstr ""
#: .\templates\wagtailsnippets\snippets\confirm_delete.html:13
msgid "Yes, delete"
msgstr ""
#: .\templates\wagtailsnippets\snippets\create.html:3
#, python-format
msgid "New %(snippet_type_name)s"
msgstr ""
#: .\templates\wagtailsnippets\snippets\create.html:6
msgid "New"
msgstr ""
#: .\templates\wagtailsnippets\snippets\create.html:17
#: .\templates\wagtailsnippets\snippets\edit.html:17
msgid "Save"
msgstr ""
#: .\templates\wagtailsnippets\snippets\edit.html:3
#, python-format
msgid "Editing %(snippet_type_name)s - %(instance)s"
msgstr ""
#: .\templates\wagtailsnippets\snippets\edit.html:6
msgid "Editing"
msgstr ""
#: .\templates\wagtailsnippets\snippets\index.html:3
msgid "Snippets"
msgstr ""
#: .\templates\wagtailsnippets\snippets\list.html:8
msgid "Title"
msgstr ""
#: .\templates\wagtailsnippets\snippets\type_index.html:3
#, python-format
msgid "Snippets %(snippet_type_name_plural|capfirst)s"
msgstr ""
#: .\templates\wagtailsnippets\snippets\type_index.html:10
#, python-format
msgid "Snippets <span>%(snippet_type_name_plural|capfirst)s</span>"
msgstr ""
#: .\templates\wagtailsnippets\snippets\type_index.html:13
#, python-format
msgid "Add %(snippet_type_name)s"
msgstr ""
#: .\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 ""
#: .\views\snippets.py:127
msgid "{snippet_type} '{instance}' created."
msgstr ""
#: .\views\snippets.py:134
msgid "The snippet could not be created due to errors."
msgstr ""
#: .\views\snippets.py:168
msgid "{snippet_type} '{instance}' updated."
msgstr ""
#: .\views\snippets.py:175
msgid "The snippet could not be saved due to errors."
msgstr ""
#: .\views\snippets.py:204
msgid "{snippet_type} '{instance}' deleted."
msgstr ""

Wyświetl plik

@ -1,4 +1,6 @@
{% include "wagtailadmin/shared/header.html" with title="Choose" subtitle=snippet_type_name %}
{% load i18n %}
{% trans "Choose" as choose_str %}
{% include "wagtailadmin/shared/header.html" with title=choose_str subtitle=snippet_type_name %}
<div class="nice-padding">
{% include "wagtailsnippets/snippets/list.html" with choosing=1 %}

Wyświetl plik

@ -1,4 +1,5 @@
{% extends "wagtailadmin/edit_handlers/chooser_panel.html" %}
{% load i18n %}
{% block chooser_class %}snippet-chooser{% endblock %}
@ -6,5 +7,5 @@
<span class="title">{% if is_chosen %}{{ item }}{% endif %}</span>
{% endblock %}
{% block choose_another_button_label %}Choose another {{ snippet_type_name }}{% endblock %}
{% block choose_button_label %}Choose {{ snippet_type_name }}{% endblock %}
{% block choose_another_button_label %}{% blocktrans %}Choose another {{ snippet_type_name }}{% endblocktrans %}{% endblock %}
{% block choose_button_label %}{% blocktrans %}Choose {{ snippet_type_name }}{% endblocktrans %}{% endblock %}

Wyświetl plik

@ -1,15 +1,16 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Delete {{ snippet_type_name}} - {{ instance }}{% endblock %}
{% load i18n %}
{% block titletag %}{% blocktrans %}Delete {{ snippet_type_name}} - {{ instance }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-snippets{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Delete" subtitle=instance %}
{% trans "Delete" as delete_str %}
{% include "wagtailadmin/shared/header.html" with title=delete_str subtitle=instance %}
<div class="nice-padding">
<p>Are you sure you want to delete this {{ snippet_type_name }}?</p>
<p>{% blocktrans %}Are you sure you want to delete this {{ snippet_type_name }}?{% endblocktrans %}</p>
<form action="{% url 'wagtailsnippets_delete' content_type.app_label content_type.model instance.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,9 +1,10 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}New {{ snippet_type_name}}{% endblock %}
{% load i18n %}
{% block titletag %}{% blocktrans %}New {{ snippet_type_name}}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-snippets{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="New" subtitle=snippet_type_name %}
{% trans "New" as new_str %}
{% include "wagtailadmin/shared/header.html" with title=new_str subtitle=snippet_type_name %}
<form action="{% url 'wagtailsnippets_create' content_type.app_label content_type.model %}" method="POST">
{% csrf_token %}
@ -13,7 +14,7 @@
<ul>
<li class="actions">
<div class="dropdown dropup match-width">
<div><input type="submit" value="Save" /></div>
<div><input type="submit" value="{% trans 'Save' %}" /></div>
</div>
</li>
</ul>

Wyświetl plik

@ -1,9 +1,10 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Editing {{ snippet_type_name}} - {{ instance }}{% endblock %}
{% load i18n %}
{% block titletag %}{% blocktrans %}Editing {{ snippet_type_name}} - {{ instance }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-snippets{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=instance %}
{% trans "Editing" as editing_str %}
{% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=instance %}
<form action="{% url 'wagtailsnippets_edit' content_type.app_label content_type.model instance.id %}" method="POST">
{% csrf_token %}
@ -13,10 +14,10 @@
<ul>
<li class="actions">
<div class="dropdown dropup match-width">
<input type="submit" value="Save" class="button" />
<input type="submit" value="{% trans 'Save' %}" class="button" />
<div class="dropdown-toggle icon icon-arrow-up"></div>
<ul role="menu">
<li><a href="{% url 'wagtailsnippets_delete' content_type.app_label content_type.model instance.id %}" class="shortcut">Delete</a></li>
<li><a href="{% url 'wagtailsnippets_delete' content_type.app_label content_type.model instance.id %}" class="shortcut">{% trans "Delete" %}</a></li>
</ul>
</div>
</li>

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Snippets{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Snippets" %}{% endblock %}
{% block bodyclass %}menu-snippets{% endblock %}
{% block content %}

Wyświetl plik

@ -1,10 +1,11 @@
{% load i18n %}
<table class="listing">
<col />
<col />
<col width="16%" />
<thead>
<tr class="table-headers">
<th>Title</th>
<th>{% trans "Title" %}</th>
</tr>
</thead>
<tbody>

Wyświetl plik

@ -1,15 +1,16 @@
{% extends "wagtailadmin/base.html" %}
{% block titletag %}Snippets {{ snippet_type_name_plural|capfirst }}{% endblock %}
{% load i18n %}
{% block titletag %}{% blocktrans %}Snippets {{ snippet_type_name_plural|capfirst }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-snippets{% endblock %}
{% block content %}
<header class="nice-padding">
<div class="row row-flush">
<div class="left col9">
<h1>Snippets <span>{{ snippet_type_name_plural|capfirst }}</span></h1>
<h1>{% blocktrans %}Snippets <span>{{ snippet_type_name_plural|capfirst }}</span>{% endblocktrans %}</h1>
</div>
<div class="right col3">
<a href="{% url 'wagtailsnippets_create' content_type.app_label content_type.model %}" class="button bicolor icon icon-plus">Add {{ snippet_type_name }}</a>
<a href="{% url 'wagtailsnippets_create' content_type.app_label content_type.model %}" class="button bicolor icon icon-plus">{% blocktrans %}Add {{ snippet_type_name }}{% endblocktrans %}</a>
{# TODO: figure out a way of saying "Add a/an [foo]" #}
</div>
</div>
@ -18,7 +19,8 @@
{% if items %}
{% include "wagtailsnippets/snippets/list.html" %}
{% else %}
<p class="no-results-message">No {{ snippet_type_name_plural }} have been created. Why not <a href="{% url 'wagtailsnippets_create' content_type.app_label content_type.model %}">add one</a>?</p>
{% url 'wagtailsnippets_create' content_type.app_label content_type.model as wagtailsnippets_create_url %}
<p class="no-results-message">{% blocktrans %}No {{ snippet_type_name_plural }} have been created. Why not <a href="{{ wagtailsnippets_create_url }}">add one</a>?{% endblocktrans %}</p>
{% endif %}
</div>
{% endblock %}

Wyświetl plik

@ -6,6 +6,7 @@ from django.contrib.contenttypes.models import ContentType
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.utils.translation import ugettext as _
from wagtail.wagtailadmin.edit_handlers import ObjectList, extract_panel_definitions_from_model_class
@ -123,11 +124,14 @@ def create(request, content_type_app_name, content_type_model_name):
messages.success(
request,
"%s '%s' created." % (capfirst(get_snippet_type_name(content_type)[0]), instance)
_("{snippet_type} '{instance}' created.").format(
snippet_type=capfirst(get_snippet_type_name(content_type)[0]),
instance=instance
)
)
return redirect('wagtailsnippets_list', content_type.app_label, content_type.model)
else:
messages.error(request, "The snippet could not be created due to errors.")
messages.error(request, _("The snippet could not be created due to errors."))
edit_handler = edit_handler_class(instance=instance, form=form)
else:
form = form_class(instance=instance)
@ -161,11 +165,14 @@ def edit(request, content_type_app_name, content_type_model_name, id):
messages.success(
request,
"%s '%s' updated." % (capfirst(snippet_type_name), instance)
_("{snippet_type} '{instance}' updated.").format(
snippet_type=capfirst(snippet_type_name),
instance=instance
)
)
return redirect('wagtailsnippets_list', content_type.app_label, content_type.model)
else:
messages.error(request, "The snippet could not be saved due to errors.")
messages.error(request, _("The snippet could not be saved due to errors."))
edit_handler = edit_handler_class(instance=instance, form=form)
else:
form = form_class(instance=instance)
@ -194,7 +201,10 @@ def delete(request, content_type_app_name, content_type_model_name, id):
instance.delete()
messages.success(
request,
"%s '%s' deleted." % (capfirst(snippet_type_name), instance)
_("{snippet_type} '{instance}' deleted.").format(
snippet_type=capfirst(snippet_type_name),
instance=instance
)
)
return redirect('wagtailsnippets_list', content_type.app_label, content_type.model)

Wyświetl plik

@ -13,9 +13,10 @@ class UserCreationForm(BaseUserCreationForm):
required=False,
help_text=_("If ticked, this user has the ability to manage user accounts.")
)
first_name = forms.CharField(required=True)
last_name = forms.CharField(required=True)
email = forms.EmailField(required=True)
email = forms.EmailField(required=True, label=_("Email"))
first_name = forms.CharField(required=True, label=_("First Name"))
last_name = forms.CharField(required=True, label=_("Last Name"))
class Meta:
model = User
@ -54,9 +55,9 @@ class UserEditForm(forms.ModelForm):
'invalid': _("This value may contain only letters, numbers and @/./+/-/_ characters.")
})
email = forms.EmailField(required=True)
first_name = forms.CharField(required=True)
last_name = forms.CharField(required=True)
email = forms.EmailField(required=True, label=_("Email"))
first_name = forms.CharField(required=True, label=_("First Name"))
last_name = forms.CharField(required=True, label=_("Last Name"))
password1 = forms.CharField(
label=_("Password"),

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,191 @@
# 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
# serafeim <serafeim@torchbox.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: Wagtail\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-02-20 00:14+0200\n"
"PO-Revision-Date: 2014-02-19 21:48+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:12 .\forms.py:73
msgid "Administrator"
msgstr "Διαχειριστής"
#: .\forms.py:14
msgid "If ticked, this user has the ability to manage user accounts."
msgstr ""
"Αν επιλεγεί, ο συγκεκριμένος χρήστης έχει τη δυνατότητα διαχείρισης "
"λογαριασμών χρηστών."
#: .\forms.py:17 .\forms.py:58
msgid "Email"
msgstr "Email"
#: .\forms.py:18 .\forms.py:59
msgid "First Name"
msgstr "Όνομα"
#: .\forms.py:19 .\forms.py:60
msgid "Last Name"
msgstr "Επίθετο"
#: .\forms.py:46
msgid "A user with that username already exists."
msgstr "Υπάρχει ήδη χρήστης με το συγκεκριμένο όνομα χρήστη."
#: .\forms.py:47
msgid "The two password fields didn't match."
msgstr "Τα δύο πεδία κωδικών δεν είναι ίδια."
#: .\forms.py:50 .\templates\wagtailusers\list.html:15
msgid "Username"
msgstr "Όνομα χρήστη"
#: .\forms.py:53
msgid "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only."
msgstr ""
"Απαραίτητο. Λιγότερο από 30 χαρακτήρες. Επιτρέπονται μόνο γράμματα, αριθμοί "
"και οι χαρακτήρες @/./+/-/_."
#: .\forms.py:55
msgid "This value may contain only letters, numbers and @/./+/-/_ characters."
msgstr ""
"Η τιμή επιτρέπεται να έχει μόνο γράμματα, αριθμούς και τους χαρακτήρες @/./"
"+/-/_."
#: .\forms.py:63
msgid "Password"
msgstr "Κωδικός"
#: .\forms.py:66
msgid "Leave blank if not changing."
msgstr "Αφήστε κενό αν δεν το αλλάζετε."
#: .\forms.py:68
msgid "Password confirmation"
msgstr "Επιβεβαίωση κωδικού."
#: .\forms.py:70
msgid "Enter the same password as above, for verification."
msgstr "Εισάγετε τον ίδιο κωδικό για επιβεβαίωση"
#: .\forms.py:75
msgid "Administrators have the ability to manage user accounts."
msgstr ""
"Οι Διαχειριστές έχουν τη δυνατότητα να διαχειρίζονται λογαριασμούς χρηστών."
#: .\templates\wagtailusers\create.html:4
#: .\templates\wagtailusers\create.html:8
#: .\templates\wagtailusers\create.html:35
msgid "Add user"
msgstr "Προσθήκη χρήστη"
#: .\templates\wagtailusers\create.html:12
#: .\templates\wagtailusers\edit.html:12
msgid "Account"
msgstr "Λογαριασμός"
#: .\templates\wagtailusers\create.html:13
#: .\templates\wagtailusers\create.html:28
#: .\templates\wagtailusers\edit.html:13
msgid "Roles"
msgstr "Ρόλοι"
#: .\templates\wagtailusers\edit.html:4 .\templates\wagtailusers\edit.html:8
msgid "Editing"
msgstr "Διόρθωση"
#: .\templates\wagtailusers\edit.html:30 .\templates\wagtailusers\edit.html:37
msgid "Save"
msgstr "Αποθήκευση"
#: .\templates\wagtailusers\index.html:4
#: .\templates\wagtailusers\index.html:17
msgid "Users"
msgstr "Χρήστες"
#: .\templates\wagtailusers\index.html:18
msgid "Add a user"
msgstr "Προσθήκη χρήστη"
#: .\templates\wagtailusers\list.html:7
msgid "Name"
msgstr "Όνομα"
#: .\templates\wagtailusers\list.html:22
msgid "Level"
msgstr "Επίπεδο"
#: .\templates\wagtailusers\list.html:23
msgid "Status"
msgstr "Κατάσταση"
#: .\templates\wagtailusers\list.html:36
msgid "Admin"
msgstr "Διαχειριστής"
#: .\templates\wagtailusers\list.html:37
msgid "Active"
msgstr "Ενεργός"
#: .\templates\wagtailusers\list.html:37
msgid "Inactive"
msgstr "Μη ενεργός"
#: .\templates\wagtailusers\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\wagtailusers\results.html:18
#, python-format
msgid "Sorry, no users match \"<em>%(search_query)s</em>\""
msgstr ""
"Λυπούμαστε, δε βρέθηκαν χρήστες που να ταιριάζουν με το \"<em>%(search_query)"
"s</em>\""
#: .\templates\wagtailusers\results.html:21
#, python-format
msgid ""
"There are no users configured. Why not <a href=\"%(wagtailusers_create_url)s"
"\">add some</a>?"
msgstr ""
"Δεν έχουν [προστεθεί χρήστες. Θέλετε να <a href=\"%(wagtailusers_create_url)s"
"\">προσθέσετε μερικούς</a>?"
#: .\views\users.py:75
msgid "User '{0}' created."
msgstr "Ο χρήστης '{0}' δημιουργήθηκε."
#: .\views\users.py:78
msgid "The user could not be created due to errors."
msgstr "Δεν ήταν δυνατή η δημιουργία του χρήστη."
#: .\views\users.py:94
msgid "User '{0}' updated."
msgstr "Τα στοιχεία του χρήστη '{0}' ενημερώθηκαν."
#: .\views\users.py:97
msgid "The user could not be saved due to errors."
msgstr "Δεν ήταν δυνατή η ενημέρωση των στοιχείων του χρήστη."

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -0,0 +1,163 @@
# 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-19 20:59+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:12 .\forms.py:73
msgid "Administrator"
msgstr ""
#: .\forms.py:14
msgid "If ticked, this user has the ability to manage user accounts."
msgstr ""
#: .\forms.py:17 .\forms.py:58
msgid "Email"
msgstr ""
#: .\forms.py:18 .\forms.py:59
msgid "First Name"
msgstr ""
#: .\forms.py:19 .\forms.py:60
msgid "Last Name"
msgstr ""
#: .\forms.py:46
msgid "A user with that username already exists."
msgstr ""
#: .\forms.py:47
msgid "The two password fields didn't match."
msgstr ""
#: .\forms.py:50 .\templates\wagtailusers\list.html:15
msgid "Username"
msgstr ""
#: .\forms.py:53
msgid "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only."
msgstr ""
#: .\forms.py:55
msgid "This value may contain only letters, numbers and @/./+/-/_ characters."
msgstr ""
#: .\forms.py:63
msgid "Password"
msgstr ""
#: .\forms.py:66
msgid "Leave blank if not changing."
msgstr ""
#: .\forms.py:68
msgid "Password confirmation"
msgstr ""
#: .\forms.py:70
msgid "Enter the same password as above, for verification."
msgstr ""
#: .\forms.py:75
msgid "Administrators have the ability to manage user accounts."
msgstr ""
#: .\templates\wagtailusers\create.html:4
#: .\templates\wagtailusers\create.html:8
#: .\templates\wagtailusers\create.html:35
msgid "Add user"
msgstr ""
#: .\templates\wagtailusers\create.html:12
#: .\templates\wagtailusers\edit.html:12
msgid "Account"
msgstr ""
#: .\templates\wagtailusers\create.html:13
#: .\templates\wagtailusers\create.html:28
#: .\templates\wagtailusers\edit.html:13
msgid "Roles"
msgstr ""
#: .\templates\wagtailusers\edit.html:4 .\templates\wagtailusers\edit.html:8
msgid "Editing"
msgstr ""
#: .\templates\wagtailusers\edit.html:30 .\templates\wagtailusers\edit.html:37
msgid "Save"
msgstr ""
#: .\templates\wagtailusers\index.html:4
#: .\templates\wagtailusers\index.html:17
msgid "Users"
msgstr ""
#: .\templates\wagtailusers\index.html:18
msgid "Add a user"
msgstr ""
#: .\templates\wagtailusers\list.html:7
msgid "Name"
msgstr ""
#: .\templates\wagtailusers\list.html:22
msgid "Level"
msgstr ""
#: .\templates\wagtailusers\list.html:23
msgid "Status"
msgstr ""
#: .\templates\wagtailusers\list.html:36
msgid "Admin"
msgstr ""
#: .\templates\wagtailusers\list.html:37
msgid "Active"
msgstr ""
#: .\templates\wagtailusers\list.html:37
msgid "Inactive"
msgstr ""
#: .\templates\wagtailusers\results.html:12
#, python-format
msgid "Sorry, no users match \"<em>%(search_query)s</em>\""
msgstr ""
#: .\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 ""
#: .\views\users.py:75
msgid "User '{0}' created."
msgstr ""
#: .\views\users.py:78
msgid "The user could not be created due to errors."
msgstr ""
#: .\views\users.py:94
msgid "User '{0}' updated."
msgstr ""
#: .\views\users.py:97
msgid "The user could not be saved due to errors."
msgstr ""

Wyświetl plik

@ -1,14 +1,16 @@
{% extends "wagtailadmin/base.html" %}
{% load image_tags %}
{% block titletag %}Add user{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Add user" %}{% endblock %}
{% block bodyclass %}menu-users{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Add user" merged=1 tabbed=1 %}
{% trans "Add user" as add_user_str %}
{% include "wagtailadmin/shared/header.html" with title=add_user_str merged=1 tabbed=1 %}
<ul class="tab-nav merged">
<li class="active"><a href="#account">Account</a></li>
<li><a href="#roles">Roles</a></li>
<li class="active"><a href="#account">{% trans "Account" %}</a></li>
<li><a href="#roles">{% trans "Roles" %}</a></li>
</ul>
<form action="{% url 'wagtailusers_create' %}" method="POST">
@ -23,14 +25,14 @@
{% include "wagtailadmin/shared/field_as_li.html" with field=form.password1 %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.password2 %}
<li><a href="#roles" class="button lowpriority tab-toggle icon icon-arrow-right-after" />Roles</a></li>
<li><a href="#roles" class="button lowpriority tab-toggle icon icon-arrow-right-after" />{% trans "Roles" %}</a></li>
</ul>
</section>
<section id="roles" class="nice-padding">
<ul class="fields">
{% include "wagtailadmin/shared/field_as_li.html" with field=form.is_superuser %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.groups %}
<li><input type="submit" value="Add user" /></li>
<li><input type="submit" value='{% trans "Add user" %}' /></li>
</ul>
</section>
</div>

Wyświetl plik

@ -1,14 +1,16 @@
{% extends "wagtailadmin/base.html" %}
{% load image_tags %}
{% block titletag %}Editing {{ user.username}}{% endblock %}
{% load i18n %}
{% block titletag %}{% trans "Editing" %} {{ user.username}}{% endblock %}
{% block bodyclass %}menu-users{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=user.username merged=1 tabbed=1 %}
{% trans "Editing" as editing_str %}
{% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=user.username merged=1 tabbed=1 %}
<ul class="tab-nav merged">
<li class="active"><a href="#account">Account</a></li>
<li><a href="#roles">Roles</a></li>
<li class="active"><a href="#account">{% trans "Account" %}</a></li>
<li><a href="#roles">{% trans "Roles" %}</a></li>
</ul>
<form action="{% url 'wagtailusers_edit' user.id %}" method="POST">
@ -25,14 +27,14 @@
{% include "wagtailadmin/shared/field_as_li.html" with field=form.password2 %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.is_active %}
<li><input type="submit" value="Save" /></li>
<li><input type="submit" value="{% trans 'Save' %}" /></li>
</ul>
</section>
<section id="roles" class="nice-padding">
<ul class="fields">
{% include "wagtailadmin/shared/field_as_li.html" with field=form.is_superuser %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.groups %}
<li><input type="submit" value="Save" /></li>
<li><input type="submit" value="{% trans 'Save' %}" /></li>
</ul>
</section>
</div>

Wyświetl plik

@ -1,6 +1,7 @@
{% extends "wagtailadmin/base.html" %}
{% load i18n %}
{% load gravatar %}
{% block titletag %}Users{% endblock %}
{% block titletag %}{% trans "Users" %}{% endblock %}
{% block bodyclass %}menu-users{% endblock %}
{% block extra_js %}
<script>
@ -13,7 +14,9 @@
{% endblock %}
{% block content %}
{% include "wagtailadmin/shared/header.html" with title="Users" add_link="wagtailusers_create" add_text="Add a user" search_url="wagtailusers_index" %}
{% trans "Users" as users_str %}
{% trans "Add a user" as add_a_user_str %}
{% include "wagtailadmin/shared/header.html" with title=users_str add_link="wagtailusers_create" add_text=add_a_user_str search_url="wagtailusers_index" %}
<div class="nice-padding">
<div id="user-results" class="users">

Wyświetl plik

@ -1,9 +1,10 @@
{% load i18n %}
{% load gravatar %}
<table class="listing">
<thead>
<tr>
<th class="name">
Name
{% trans "Name" %}
{% if ordering == "name" %}
<a href="{% url 'wagtailusers_index' %}" class="icon icon-arrow-down-after teal"></a>
{% else %}
@ -11,15 +12,15 @@
{% endif %}
</th>
<th class="username">
Username
{% trans "Username" %}
{% if ordering == "username" %}
<a href="{% url 'wagtailusers_index' %}" class="icon icon-arrow-down-after teal"></a>
{% else %}
<a href="{% url 'wagtailusers_index' %}?ordering=username" class="icon icon-arrow-down-after"></a>
{% endif %}
</th>
<th class="level">Level</th>
<th class="status">Status</th>
<th class="level">{% trans "Level" %}</th>
<th class="status">{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
@ -32,8 +33,8 @@
</h2>
</td>
<td class="username">{{ user.username }}</td>
<td class="level">{% if user.is_superuser %}Admin{% endif %}</td>
<td class="status"><div class="status-tag {% if user.is_active %}primary{% endif %}">{% if user.is_active %}Active{% else %}Inactive{% endif %}</div></td>
<td class="level">{% if user.is_superuser %}{% trans "Admin" %}{% endif %}</td>
<td class="status"><div class="status-tag {% if user.is_active %}primary{% endif %}">{% if user.is_active %}{% trans "Active" %}{% else %}{% trans "Inactive" %}{% endif %}</div></td>
</li>
{% endfor %}
</tbody>

Wyświetl plik

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

Wyświetl plik

@ -4,6 +4,7 @@ from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.contrib import messages
from django.db.models import Q
from django.utils.translation import ugettext as _
from wagtail.wagtailadmin.forms import SearchForm
from wagtail.wagtailusers.forms import UserCreationForm, UserEditForm
@ -71,10 +72,10 @@ def create(request):
form = UserCreationForm(request.POST)
if form.is_valid():
user = form.save()
messages.success(request, "User '%s' created." % user)
messages.success(request, _("User '{0}' created.").format(user))
return redirect('wagtailusers_index')
else:
messages.error(request, "The user could not be created due to errors.")
messages.error(request, _("The user could not be created due to errors.") )
else:
form = UserCreationForm()
@ -90,10 +91,10 @@ def edit(request, user_id):
form = UserEditForm(request.POST, instance=user)
if form.is_valid():
user = form.save()
messages.success(request, "User '%s' updated." % user)
messages.success(request, _("User '{0}' updated.").format(user))
return redirect('wagtailusers_index')
else:
messages.error(request, "The user could not be saved due to errors.")
messages.error(request, _("The user could not be saved due to errors."))
else:
form = UserEditForm(instance=user)