diff --git a/.tx/config b/.tx/config index 2cddc45134..84719c7fce 100644 --- a/.tx/config +++ b/.tx/config @@ -1,6 +1,12 @@ [main] host = https://www.transifex.com +[wagtail.wagtailsearch] +file_filter = wagtail/wagtailsearch/locale//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//LC_MESSAGES/django.po source_file = wagtail/wagtailsnippets/locale/en/LC_MESSAGES/django.po diff --git a/wagtail/wagtailsearch/forms.py b/wagtail/wagtailsearch/forms.py index 873c622557..03e4ecd45d 100644 --- a/wagtail/wagtailsearch/forms.py +++ b/wagtail/wagtailsearch/forms.py @@ -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): diff --git a/wagtail/wagtailsearch/locale/el/LC_MESSAGES/django.mo b/wagtail/wagtailsearch/locale/el/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..70f33a6410 Binary files /dev/null and b/wagtail/wagtailsearch/locale/el/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtailsearch/locale/el/LC_MESSAGES/django.po b/wagtail/wagtailsearch/locale/el/LC_MESSAGES/django.po new file mode 100644 index 0000000000..eb218d474d --- /dev/null +++ b/wagtail/wagtailsearch/locale/el/LC_MESSAGES/django.po @@ -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 , 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 \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" +"

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 " +"\"giving\".

\n" +" " +msgstr "" + +#: .\templates\wagtailsearch\editorspicks\add.html:12 +msgid "" +"\n" +"

The \"Search term(s)/phrase\" field below must contain the full " +"and exact search for which you wish to provide recommended results, " +"including any misspellings/user error. To help, you can choose from " +"search terms that have been popular with users of your site.

\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 \"%(search_query)s\"" +msgstr "" + +#: .\templates\wagtailsearch\editorspicks\results.html:21 +#, python-format +msgid "" +"No editor's picks have been created. Why not add one?" +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 "" diff --git a/wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.mo b/wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..08cd61d88b Binary files /dev/null and b/wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.po b/wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000000..b2dbd5e103 --- /dev/null +++ b/wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.po @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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" +"

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 " +"\"giving\".

\n" +" " +msgstr "" + +#: .\templates\wagtailsearch\editorspicks\add.html:12 +msgid "" +"\n" +"

The \"Search term(s)/phrase\" field below must contain the full " +"and exact search for which you wish to provide recommended results, " +"including any misspellings/user error. To help, you can choose from " +"search terms that have been popular with users of your site.

\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 \"%(search_query)s\"" +msgstr "" + +#: .\templates\wagtailsearch\editorspicks\results.html:14 +#, python-format +msgid "" +"No editor's picks have been created. Why not add one?" +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 "" diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/add.html b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/add.html index 327124b4c4..52f183a95d 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/add.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/add.html @@ -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 %}
+ {% blocktrans %}

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 "giving".

- + {% endblocktrans %} + {% blocktrans %}

The "Search term(s)/phrase" field below must contain the full and exact search for which you wish to provide recommended results, including any misspellings/user error. To help, you can choose from search terms that have been popular with users of your site.

- + {% endblocktrans %}
{% csrf_token %} @@ -18,7 +22,7 @@
  • {% include "wagtailsearch/editorspicks/includes/editorspicks_formset.html" with formset=editors_pick_formset only %}
  • -
  • +
  • diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/confirm_delete.html b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/confirm_delete.html index 96124f7524..1ae70117a7 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/confirm_delete.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/confirm_delete.html @@ -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 %}
    -

    Are you sure you want to delete all editors picks for this search term?

    +

    {% trans "Are you sure you want to delete all editors picks for this search term?" %}

    {% csrf_token %} - +
    {% endblock %} diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/edit.html b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/edit.html index 222dfea5f7..7cc2692fdb 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/edit.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/edit.html @@ -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 %}
    {% csrf_token %} @@ -15,8 +16,8 @@ {% include "wagtailsearch/editorspicks/includes/editorspicks_formset.html" with formset=editors_pick_formset only %}
  • - - Delete + + {% trans "Delete" %}
  • diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/includes/editorspicks_form.html b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/includes/editorspicks_form.html index bb5a4a6469..01e891ccd2 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/includes/editorspicks_form.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/includes/editorspicks_form.html @@ -1,12 +1,13 @@ +{% load i18n %}