diff --git a/.tx/config b/.tx/config index 84719c7fce..cb670c9f81 100644 --- a/.tx/config +++ b/.tx/config @@ -1,6 +1,30 @@ [main] host = https://www.transifex.com +[wagtail.wagtaildocs] +file_filter = wagtail/wagtaildocs/locale//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//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//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//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//LC_MESSAGES/django.po source_file = wagtail/wagtailsearch/locale/en/LC_MESSAGES/django.po diff --git a/wagtail/wagtaildocs/locale/el/LC_MESSAGES/django.mo b/wagtail/wagtaildocs/locale/el/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..a4674e312a Binary files /dev/null and b/wagtail/wagtaildocs/locale/el/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtaildocs/locale/el/LC_MESSAGES/django.po b/wagtail/wagtaildocs/locale/el/LC_MESSAGES/django.po new file mode 100644 index 0000000000..00bef632ab --- /dev/null +++ b/wagtail/wagtaildocs/locale/el/LC_MESSAGES/django.po @@ -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 , 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 \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 \"%(search_query)s\"" +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 \"%(query_string)s\"" +msgstr "" + +#: .\templates\wagtaildocs\documents\results.html:21 +#, python-format +msgid "" +"You haven't uploaded any documents. Why not upload one now?" +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 "" diff --git a/wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.mo b/wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..490c05f9ec Binary files /dev/null and b/wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.po b/wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000000..3bf2b6c8db --- /dev/null +++ b/wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.po @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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 \"%(search_query)s\"" +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 \"%(query_string)s\"" +msgstr "" + +#: .\templates\wagtaildocs\documents\results.html:21 +#, python-format +msgid "" +"You haven't uploaded any documents. Why not upload one now?" +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 "" diff --git a/wagtail/wagtaildocs/locale/ro/LC_MESSAGES/django.mo b/wagtail/wagtaildocs/locale/ro/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..dc4ee1892b Binary files /dev/null and b/wagtail/wagtaildocs/locale/ro/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtaildocs/locale/ro/LC_MESSAGES/django.po b/wagtail/wagtaildocs/locale/ro/LC_MESSAGES/django.po new file mode 100644 index 0000000000..6c7b899a73 --- /dev/null +++ b/wagtail/wagtaildocs/locale/ro/LC_MESSAGES/django.po @@ -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 \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 \"%(search_query)s\"" +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 \"%(query_string)s\"" +msgstr "" + +#: .\templates\wagtaildocs\documents\results.html:21 +#, python-format +msgid "" +"You haven't uploaded any documents. Why not upload one now?" +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 "" diff --git a/wagtail/wagtaildocs/models.py b/wagtail/wagtaildocs/models.py index 1938961f90..95ff4ff5bb 100644 --- a/wagtail/wagtaildocs/models.py +++ b/wagtail/wagtaildocs/models.py @@ -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': { diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/chooser/chooser.html b/wagtail/wagtaildocs/templates/wagtaildocs/chooser/chooser.html index d86357af95..414c4907ff 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/chooser/chooser.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/chooser/chooser.html @@ -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 %} {% endif %} @@ -14,7 +16,7 @@ {% for field in searchform %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
  • +
  • @@ -29,7 +31,7 @@ {% for field in uploadform %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
  • +
  • diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/chooser/results.html b/wagtail/wagtaildocs/templates/wagtaildocs/chooser/results.html index e7e45c3e76..fc9a750ba6 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/chooser/results.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/chooser/results.html @@ -1,13 +1,20 @@ +{% load i18n %} {% if documents %} {% if is_searching %} -

    {{ documents.paginator.count }} match{{ documents.paginator.count|pluralize:"es" }}

    +

    + {% blocktrans count counter=documents.paginator.count %} + There is one match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %} +

    {% else %} -

    Latest documents

    +

    {% trans "Latest documents" %}

    {% endif %} {% include "wagtaildocs/documents/list.html" with choosing=1 %} {% include "wagtailadmin/shared/pagination_nav.html" with items=documents is_ajax=1 %} {% else %} -

    Sorry, no documents match "{{ search_query }}" +

    {% blocktrans %}Sorry, no documents match "{{ search_query }}"{% endblocktrans %}

    {% endif %} \ No newline at end of file diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/documents/_file_field.html b/wagtail/wagtaildocs/templates/wagtaildocs/documents/_file_field.html index 2ecbf1b19e..13ba6a8191 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/documents/_file_field.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/documents/_file_field.html @@ -1,7 +1,7 @@ {% extends "wagtailadmin/shared/field_as_li.html" %} - +{% load i18n %} {% block form_field %} {{ document.file }}

    - Change document: + {% trans "Change document:" %} {{ field }} {% endblock %} diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/documents/add.html b/wagtail/wagtaildocs/templates/wagtaildocs/documents/add.html index ae4d9557d9..90e2403e0a 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/documents/add.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/documents/add.html @@ -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 %}
    @@ -20,7 +22,7 @@ {% for field in form %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
  • +
  • diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/documents/confirm_delete.html b/wagtail/wagtaildocs/templates/wagtaildocs/documents/confirm_delete.html index db24ac4245..ec96e7ee1a 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/documents/confirm_delete.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/documents/confirm_delete.html @@ -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 %}
    -

    Are you sure you want to delete this document?

    +

    {% trans "Are you sure you want to delete this document?" %}

    {% csrf_token %} - +
    {% endblock %} diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/documents/edit.html b/wagtail/wagtaildocs/templates/wagtaildocs/documents/edit.html index 8234fa4362..632c9ab61d 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/documents/edit.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/documents/edit.html @@ -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 %}
    @@ -24,7 +26,7 @@ {% include "wagtailadmin/shared/field_as_li.html" %} {% endif %} {% endfor %} -
  • Delete document
  • +
  • {% trans "Delete document" %}
  • diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/documents/index.html b/wagtail/wagtaildocs/templates/wagtaildocs/documents/index.html index 84dc5a86b9..aeb2b8a6b1 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/documents/index.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/documents/index.html @@ -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" %}
    diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/documents/list.html b/wagtail/wagtaildocs/templates/wagtaildocs/documents/list.html index a0679ea3af..5499f4fa32 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/documents/list.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/documents/list.html @@ -1,3 +1,4 @@ +{% load i18n %} @@ -5,7 +6,7 @@ - +
    - Title + {% trans "Title" %} {% if not is_searching %} {% if ordering == "title" %} @@ -14,9 +15,9 @@ {% endif %} {% endif %} File{% trans "File" %} - Uploaded + {% trans "Uploaded" %} {% if not is_searching %} {% if ordering == "-created_at" %} diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/documents/results.html b/wagtail/wagtaildocs/templates/wagtaildocs/documents/results.html index 2f3f496b03..8d56fd6a26 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/documents/results.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/documents/results.html @@ -1,6 +1,13 @@ +{% load i18n %} {% if documents %} {% if is_searching %} -

    {{ documents|length }} match{{ documents|pluralize:"es" }}

    +

    + {% blocktrans count counter=documents|length %} + There is one match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %} +

    {% 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 %} -

    Sorry, no documents match "{{ query_string }}" +

    {% blocktrans %}Sorry, no documents match "{{ query_string }}"{% endblocktrans %}

    {% else %} -

    You haven't uploaded any documents. Why not upload one now?

    + {% url 'wagtaildocs_add_document' as wagtaildocs_add_document_url %} +

    {% blocktrans %}You haven't uploaded any documents. Why not upload one now?{% endblocktrans %}

    {% endif %} {% endif %} diff --git a/wagtail/wagtaildocs/templates/wagtaildocs/edit_handlers/document_chooser_panel.html b/wagtail/wagtaildocs/templates/wagtaildocs/edit_handlers/document_chooser_panel.html index d76066d233..cc3f679cc7 100644 --- a/wagtail/wagtaildocs/templates/wagtaildocs/edit_handlers/document_chooser_panel.html +++ b/wagtail/wagtaildocs/templates/wagtaildocs/edit_handlers/document_chooser_panel.html @@ -1,11 +1,11 @@ {% extends "wagtailadmin/edit_handlers/chooser_panel.html" %} - +{% load i18n %} {% block chooser_class %}document-chooser{% endblock %} {% block chosen_state_view %} {{ document.title }} {% 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 %} diff --git a/wagtail/wagtaildocs/views/documents.py b/wagtail/wagtaildocs/views/documents.py index 4c9e07b677..ca172c3901 100644 --- a/wagtail/wagtaildocs/views/documents.py +++ b/wagtail/wagtaildocs/views/documents.py @@ -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", { diff --git a/wagtail/wagtailembeds/forms.py b/wagtail/wagtailembeds/forms.py index 5770290259..b3be736e4d 100644 --- a/wagtail/wagtailembeds/forms.py +++ b/wagtail/wagtailembeds/forms.py @@ -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]) diff --git a/wagtail/wagtailembeds/locale/el/LC_MESSAGES/django.mo b/wagtail/wagtailembeds/locale/el/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..5166d75884 Binary files /dev/null and b/wagtail/wagtailembeds/locale/el/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtailembeds/locale/el/LC_MESSAGES/django.po b/wagtail/wagtailembeds/locale/el/LC_MESSAGES/django.po new file mode 100644 index 0000000000..4565cb804e --- /dev/null +++ b/wagtail/wagtailembeds/locale/el/LC_MESSAGES/django.po @@ -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 , 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 \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 "" diff --git a/wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.mo b/wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..75634acdb2 Binary files /dev/null and b/wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.po b/wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000000..45419acd4b --- /dev/null +++ b/wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.po @@ -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 , 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 \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: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 "" diff --git a/wagtail/wagtailembeds/locale/ro/LC_MESSAGES/django.mo b/wagtail/wagtailembeds/locale/ro/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..c2c746638b Binary files /dev/null and b/wagtail/wagtailembeds/locale/ro/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtailembeds/locale/ro/LC_MESSAGES/django.po b/wagtail/wagtailembeds/locale/ro/LC_MESSAGES/django.po new file mode 100644 index 0000000000..857794817b --- /dev/null +++ b/wagtail/wagtailembeds/locale/ro/LC_MESSAGES/django.po @@ -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 \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 "" diff --git a/wagtail/wagtailembeds/templates/wagtailembeds/chooser/chooser.html b/wagtail/wagtailembeds/templates/wagtailembeds/chooser/chooser.html index e7ab182436..b9caead7ce 100644 --- a/wagtail/wagtailembeds/templates/wagtailembeds/chooser/chooser.html +++ b/wagtail/wagtailembeds/templates/wagtailembeds/chooser/chooser.html @@ -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 %}
    @@ -10,7 +11,7 @@ {% for field in form %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
  • +
  • diff --git a/wagtail/wagtailembeds/views/chooser.py b/wagtail/wagtailembeds/views/chooser.py index 7de2d635a9..b364d83b74 100644 --- a/wagtail/wagtailembeds/views/chooser.py +++ b/wagtail/wagtailembeds/views/chooser.py @@ -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()) diff --git a/wagtail/wagtailimages/locale/el/LC_MESSAGES/django.mo b/wagtail/wagtailimages/locale/el/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..3ab4fdf488 Binary files /dev/null and b/wagtail/wagtailimages/locale/el/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtailimages/locale/el/LC_MESSAGES/django.po b/wagtail/wagtailimages/locale/el/LC_MESSAGES/django.po new file mode 100644 index 0000000000..0fa942ad2a --- /dev/null +++ b/wagtail/wagtailimages/locale/el/LC_MESSAGES/django.po @@ -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 , 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 \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 \"%(search_query)s\"" +msgstr "" + +#: .\templates\wagtailimages\images\results.html:34 +msgid "" +"You've not uploaded any images. Why not add one now?" +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 "Δεν ήταν δυνατή η δημιουργία της εικόνας." diff --git a/wagtail/wagtailimages/locale/en/LC_MESSAGES/django.mo b/wagtail/wagtailimages/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..75634acdb2 Binary files /dev/null and b/wagtail/wagtailimages/locale/en/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtailimages/locale/en/LC_MESSAGES/django.po b/wagtail/wagtailimages/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000000..e99e528c5b --- /dev/null +++ b/wagtail/wagtailimages/locale/en/LC_MESSAGES/django.po @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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 \"%(search_query)s\"" +msgstr "" + +#: .\templates\wagtailimages\images\results.html:34 +msgid "" +"You've not uploaded any images. Why not add one now?" +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 "" diff --git a/wagtail/wagtailimages/locale/ro/LC_MESSAGES/django.mo b/wagtail/wagtailimages/locale/ro/LC_MESSAGES/django.mo new file mode 100644 index 0000000000..c2c746638b Binary files /dev/null and b/wagtail/wagtailimages/locale/ro/LC_MESSAGES/django.mo differ diff --git a/wagtail/wagtailimages/locale/ro/LC_MESSAGES/django.po b/wagtail/wagtailimages/locale/ro/LC_MESSAGES/django.po new file mode 100644 index 0000000000..952290daa4 --- /dev/null +++ b/wagtail/wagtailimages/locale/ro/LC_MESSAGES/django.po @@ -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 \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 \"%(search_query)s\"" +msgstr "" + +#: .\templates\wagtailimages\images\results.html:34 +msgid "" +"You've not uploaded any images. Why not add one now?" +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 "" diff --git a/wagtail/wagtailimages/models.py b/wagtail/wagtailimages/models.py index 96972b6a6f..d30f969ad5 100644 --- a/wagtail/wagtailimages/models.py +++ b/wagtail/wagtailimages/models.py @@ -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': { diff --git a/wagtail/wagtailimages/templates/wagtailimages/chooser/chooser.html b/wagtail/wagtailimages/templates/wagtailimages/chooser/chooser.html index 072492f629..879fbc3161 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/chooser/chooser.html +++ b/wagtail/wagtailimages/templates/wagtailimages/chooser/chooser.html @@ -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 %} {% endif %} @@ -16,10 +17,10 @@ {% for field in searchform %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
  • +
  • {% if popular_tags %}
  • -

    Popular tags

    +

    {% trans 'Popular tags' %}

    {% for tag in popular_tags %} {{ tag.name }} {% endfor %} @@ -39,7 +40,7 @@ {% for field in uploadform %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
  • +
  • diff --git a/wagtail/wagtailimages/templates/wagtailimages/chooser/results.html b/wagtail/wagtailimages/templates/wagtailimages/chooser/results.html index 1359006087..7b2d64147c 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/chooser/results.html +++ b/wagtail/wagtailimages/templates/wagtailimages/chooser/results.html @@ -1,10 +1,16 @@ {% load image_tags ellipsistrim %} - +{% load i18n %} {% if images %} {% if is_searching %} -

    {{ images.paginator.count }} match{{ images.paginator.count|pluralize:"es" }}

    +

    + {% blocktrans count counter=images.paginator.count %} + There is one match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %} +

    {% else %} -

    Latest images

    +

    {% trans "Latest images" %}

    {% endif %}
      diff --git a/wagtail/wagtailimages/templates/wagtailimages/chooser/select_format.html b/wagtail/wagtailimages/templates/wagtailimages/chooser/select_format.html index b91f9ea04c..79eab3f834 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/chooser/select_format.html +++ b/wagtail/wagtailimages/templates/wagtailimages/chooser/select_format.html @@ -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 %}
      @@ -13,7 +14,7 @@ {% for field in form %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
    • +
    diff --git a/wagtail/wagtailimages/templates/wagtailimages/edit_handlers/image_chooser_panel.html b/wagtail/wagtailimages/templates/wagtailimages/edit_handlers/image_chooser_panel.html index b521c992a0..d12f075f96 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/edit_handlers/image_chooser_panel.html +++ b/wagtail/wagtailimages/templates/wagtailimages/edit_handlers/image_chooser_panel.html @@ -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 @@ {% 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 %} diff --git a/wagtail/wagtailimages/templates/wagtailimages/images/_file_field.html b/wagtail/wagtailimages/templates/wagtailimages/images/_file_field.html index d8a206188b..eaa931a800 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/images/_file_field.html +++ b/wagtail/wagtailimages/templates/wagtailimages/images/_file_field.html @@ -1,8 +1,8 @@ {% extends "wagtailadmin/shared/field_as_li.html" %} - +{% load i18n %} {% block form_field %} {{ image.filename }}

    - Change image: + {% trans "Change image:" %} {{ field }} {% endblock %} diff --git a/wagtail/wagtailimages/templates/wagtailimages/images/add.html b/wagtail/wagtailimages/templates/wagtailimages/images/add.html index bcf3a3d377..719d49b400 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/images/add.html +++ b/wagtail/wagtailimages/templates/wagtailimages/images/add.html @@ -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 %}
    @@ -20,7 +22,7 @@ {% for field in form %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
  • +
  • diff --git a/wagtail/wagtailimages/templates/wagtailimages/images/confirm_delete.html b/wagtail/wagtailimages/templates/wagtailimages/images/confirm_delete.html index 1e926e2b77..cfd3416191 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/images/confirm_delete.html +++ b/wagtail/wagtailimages/templates/wagtailimages/images/confirm_delete.html @@ -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 %}
    {% image image max-800x600 %}
    -

    Are you sure you want to delete this image?

    +

    {% trans "Are you sure you want to delete this image?" %}

    {% csrf_token %} - +
    diff --git a/wagtail/wagtailimages/templates/wagtailimages/images/edit.html b/wagtail/wagtailimages/templates/wagtailimages/images/edit.html index 711272bc64..e0faca9d8d 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/images/edit.html +++ b/wagtail/wagtailimages/templates/wagtailimages/images/edit.html @@ -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 %}
    @@ -29,7 +30,7 @@ {% endif %} {% endfor %} -
  • Delete image
  • +
  • {% trans "Delete image" %}
  • diff --git a/wagtail/wagtailimages/templates/wagtailimages/images/index.html b/wagtail/wagtailimages/templates/wagtailimages/images/index.html index 7515e5852d..d4ce47a0da 100644 --- a/wagtail/wagtailimages/templates/wagtailimages/images/index.html +++ b/wagtail/wagtailimages/templates/wagtailimages/images/index.html @@ -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 %}