From 9913c317f10768d60eb9ef3c363f6037795ecfe3 Mon Sep 17 00:00:00 2001 From: Serafeim Papastefanos Date: Thu, 20 Feb 2014 23:57:46 +0200 Subject: [PATCH] Added i18n for docs,embeds,images and redirects --- .tx/config | 24 +++ .../locale/el/LC_MESSAGES/django.mo | Bin 0 -> 1935 bytes .../locale/el/LC_MESSAGES/django.po | 158 +++++++++++++++++ .../locale/en/LC_MESSAGES/django.mo | Bin 0 -> 367 bytes .../locale/en/LC_MESSAGES/django.po | 156 +++++++++++++++++ .../locale/ro/LC_MESSAGES/django.mo | Bin 0 -> 510 bytes .../locale/ro/LC_MESSAGES/django.po | 158 +++++++++++++++++ wagtail/wagtaildocs/models.py | 7 +- .../wagtaildocs/chooser/chooser.html | 12 +- .../wagtaildocs/chooser/results.html | 13 +- .../wagtaildocs/documents/_file_field.html | 4 +- .../templates/wagtaildocs/documents/add.html | 8 +- .../wagtaildocs/documents/confirm_delete.html | 10 +- .../templates/wagtaildocs/documents/edit.html | 8 +- .../wagtaildocs/documents/index.html | 5 +- .../templates/wagtaildocs/documents/list.html | 7 +- .../wagtaildocs/documents/results.html | 14 +- .../edit_handlers/document_chooser_panel.html | 8 +- wagtail/wagtaildocs/views/documents.py | 11 +- wagtail/wagtailembeds/forms.py | 6 +- .../locale/el/LC_MESSAGES/django.mo | Bin 0 -> 514 bytes .../locale/el/LC_MESSAGES/django.po | 51 ++++++ .../locale/en/LC_MESSAGES/django.mo | Bin 0 -> 367 bytes .../locale/en/LC_MESSAGES/django.po | 49 ++++++ .../locale/ro/LC_MESSAGES/django.mo | Bin 0 -> 510 bytes .../locale/ro/LC_MESSAGES/django.po | 50 ++++++ .../wagtailembeds/chooser/chooser.html | 7 +- wagtail/wagtailembeds/views/chooser.py | 7 +- .../locale/el/LC_MESSAGES/django.mo | Bin 0 -> 2211 bytes .../locale/el/LC_MESSAGES/django.po | 153 ++++++++++++++++ .../locale/en/LC_MESSAGES/django.mo | Bin 0 -> 367 bytes .../locale/en/LC_MESSAGES/django.po | 151 ++++++++++++++++ .../locale/ro/LC_MESSAGES/django.mo | Bin 0 -> 510 bytes .../locale/ro/LC_MESSAGES/django.po | 153 ++++++++++++++++ wagtail/wagtailimages/models.py | 9 +- .../wagtailimages/chooser/chooser.html | 15 +- .../wagtailimages/chooser/results.html | 12 +- .../wagtailimages/chooser/select_format.html | 7 +- .../edit_handlers/image_chooser_panel.html | 7 +- .../wagtailimages/images/_file_field.html | 4 +- .../templates/wagtailimages/images/add.html | 8 +- .../wagtailimages/images/confirm_delete.html | 11 +- .../templates/wagtailimages/images/edit.html | 9 +- .../templates/wagtailimages/images/index.html | 7 +- .../wagtailimages/images/results.html | 15 +- wagtail/wagtailimages/views/images.py | 11 +- .../locale/el/LC_MESSAGES/django.mo | Bin 0 -> 974 bytes .../locale/el/LC_MESSAGES/django.po | 143 +++++++++++++++ .../locale/en/LC_MESSAGES/django.mo | Bin 0 -> 367 bytes .../locale/en/LC_MESSAGES/django.po | 141 +++++++++++++++ .../locale/ro/LC_MESSAGES/django.mo | Bin 0 -> 510 bytes .../locale/ro/LC_MESSAGES/django.po | 143 +++++++++++++++ wagtail/wagtailredirects/models.py | 9 +- .../templates/wagtailredirects/add.html | 9 +- .../wagtailredirects/confirm_delete.html | 11 +- .../templates/wagtailredirects/edit.html | 11 +- .../templates/wagtailredirects/index.html | 7 +- .../templates/wagtailredirects/list.html | 9 +- .../templates/wagtailredirects/results.html | 14 +- wagtail/wagtailredirects/views.py | 11 +- .../locale/el/LC_MESSAGES/django.mo | Bin 861 -> 861 bytes .../locale/ro/LC_MESSAGES/django.mo | Bin 0 -> 4013 bytes .../locale/ro/LC_MESSAGES/django.po | 151 ++++++++++++++++ .../locale/ro/LC_MESSAGES/django.po | 125 +++++++++++++ .../locale/ro/LC_MESSAGES/django.po | 165 ++++++++++++++++++ 65 files changed, 2169 insertions(+), 125 deletions(-) create mode 100644 wagtail/wagtaildocs/locale/el/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtaildocs/locale/el/LC_MESSAGES/django.po create mode 100644 wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtaildocs/locale/en/LC_MESSAGES/django.po create mode 100644 wagtail/wagtaildocs/locale/ro/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtaildocs/locale/ro/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailembeds/locale/el/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailembeds/locale/el/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailembeds/locale/en/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailembeds/locale/ro/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailembeds/locale/ro/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailimages/locale/el/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailimages/locale/el/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailimages/locale/en/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailimages/locale/en/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailimages/locale/ro/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailimages/locale/ro/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailredirects/locale/el/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailredirects/locale/el/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailredirects/locale/en/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailredirects/locale/en/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailredirects/locale/ro/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailredirects/locale/ro/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailsearch/locale/ro/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailsearch/locale/ro/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailsnippets/locale/ro/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailusers/locale/ro/LC_MESSAGES/django.po 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 0000000000000000000000000000000000000000..a4674e312a060f04d2b710ba4a93f2b511a4ccf1 GIT binary patch literal 1935 zcma)*TW=dh6vqczZsuN)`a;{O1X4n~wqsFLZ3qQ&L6s5_TDJ%ZAx*p!d&_#q+8Ng= zPlPsHq`VY05&|Ld(8n~EY23uLso@0)AXt7 zJ_fFXkAU~VgWxY9#r@V>{{cRX^pnJb)s|?_H4M zJ_Jc$fk=xzi9z-#2E|eBls6e921Y$V35ikfNt623H|k~I=pHg$k@SS}&S0QLnD8A| ztjI`mUvm{oUKOTP865BDDB%3kP)XH8BcoxRMo7IK^QPxj4zM|?} z*L#zO2n{!idoqwla#KMbeeW}DyduJ~9BjDQP)f_4^8KAq8PqXwWfQ4jUyDuj^3iP4 z^Nk;t*_0nhHZ6?QW)P;?d2v~?^HM~m3PWcGCma+C&PI3(|lvPK@ipwZckXIxO=d9;kl#%vT=<@eO*$6+#oRc*b8D~b9eb0HTUe-=g zxjZxbPSF{Uq%d%HCXl4d3;B^(oP5D4;-$BR*6y zrsn2yjYcDDNX?&@iGQw^7O8W!TqCV57xWZzGRO^QX3ow`Zr4AO&1c3HzM&9lU8$iy zBNt4r76?Ba<)w;w_jhr!Y1fd!2Dfc{+up|JYWx`v zme~LBSh3CcDs2ILw8??J?E>58WP>3#q5n;sqMXu*)MkF)=C0U z=%U?>zeEQ%kZZgce@;c&F0(f=p=U&KNWV$%yR$aLU#I8pJpuWp8q_Cy$F3o4Bi*_I zr7fQ9&{Ny>c!`|gfF$vD$!D`$Cu!zBRc0x#CL+, 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 0000000000000000000000000000000000000000..490c05f9ec495f3090619d38be86ef9cb459bbdf GIT binary patch literal 367 zcmYL^K~KUk7=|%=+R?Lz9=zd)Wf6lF36&LGY&S9niQX#IS%WR<3eg|p-}ATFB}U%l zNe_L#_WgcNPrh3rM}f1zdEhv35opp6^upy$I2-3bGiTq`%0s$_rE;~lhM*Z8Khh~f zOIFO&Jc|mowa$a6E4_yMT~$MA35sTU31g?E4?~bhuLz29_X=% z)Lu7_|9MZ079es+D0;|=NZZeO#v(3j52cf)-bim9L6ZgND5HX*0TVRkBbp=yo6m4E4$XFBB=kOebo8|`}AV0 literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..dc4ee1892bfd1f34f787035373aec43415cd2305 GIT binary patch literal 510 zcmZut+fD*85XI=zKKkrKO_c0LOS|hOP+TzH5)z4otomG*vefLho3;oh{Dyzzcla&N zg2Ia@IhmRE%;`+O_xC<)fF0lg@CdjIJOx&00>9w01+mg>FfjT}qz?DS_(d2iwPNU% zXO7F<8;VjJhx;~@V|+8qEKW2--ry<0w?=RWVtmJ)U?`&DIi?YgD2gI>ad|=`NcNRH_+F)YELFx(b0pnnScZ)D2KmhJ96xAN zScX)&Ds6n$M(Z^8RUC(1%6#8f$04PiuoWzqzeOC=pkDXYA;ci)Ml1}1wpaTBv4xZF literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..5166d758841d65bd4e2f64dd42883b516e37a353 GIT binary patch literal 514 zcmZvXO-{ow5QPH*7Fi+IEX)oBu9Lt5T#68dqDoX06n?fQou-D=j%=60niU7A#3_&v zD=rakz#X^&6UvW}82OXO*7Nhcx4Eg2hc$`JBP+->vWb+{MrM#BV(YvW5~5}v}IG-p*w@r(pYoiw+~}lHy|8} z>8^0VNfd-@G>B*vkSOBe#&Qq^0Sf6cT+7n*A6>{-*Omh;|3FwrV2a5${E(oJ^ZQ_u2oNXv3I z9A{(Mmji>0E%~ixYwtIISPA^PRt^-7b(>>82RDx8nUJbVlAbUYT>;M1& literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..75634acdb261553cd050aa5bbc07bbabce8a307e GIT binary patch literal 367 zcmYL^K~KUk7=|%=+R?Lz9=zd)WzhsG5-KaW*luJD61`QZvj*FxD@K2af6w1yml%1I zCq4A}+V}f8J^Aj090kq-=YiwEMWD?fa2+m(;cT7%ES!B)8xQFg*2*>78iE#d`atIl zty!^5^DHVKJ`5)>`+5~fZ`ABG^2UJ(@I{uSUDVvORL^oLy>V;n>% z)Q4^#|MMOhEkNXuP;{RYk#?W*j73~F9!e)ovy, 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 0000000000000000000000000000000000000000..c2c746638b428426013189c86dc287ffe8a60e53 GIT binary patch literal 510 zcmZut-A=+V6xQg~F1_}mCQ7zwX*V^2;=qWIkVqtC>U9}q)NJk27Quwq@Qr*9pT#p! zx$#TBoO9am{C*uBe(VAEfycm8-~sRgSfK&@gwH0}O7n-2(XS$PcreA!!dR&lLoYmY zT;|?bl-f8vw3(dZyG3Skq8ai=j|uJ?!5xV4J$Hhkh=x~~MmVAmUxl`+(qNcT4^Lq>a}d|`Nw``Q$i xAysZd8(+52){T7?$6<#u-}lv7NNGE42J7`t5XUsA)qHgVHV8U!>L6%&d*80flk5Nh literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..3ab4fdf488a6826967b20f7bd8a98e9eefe891c1 GIT binary patch literal 2211 zcmai!?`s@I7{^DgRZr`W`s0Ntj)*iN-TP(5x-nIorV`pm~>4(xq)W}fH! z{FvGMbMLM>hVeL_r||rY=V?6N9r(fc3w#&+8+-sfbSGo?fyclB@D#WQoB|&LKLZ~F zuYhE~1l|Mw2<`=cN%#Lq`7gK|>$~qt?Dv4A_awLr>;q}v0xj?WNO32?`@u`#m&ola zu!;E#cQf`3_+83hL4o-#km?(Q810`1`@m1r`6Bo*=D&dj@E?%kJb~mX?qTpjunv;{ zhv0MI6_D!v38ead2akcbQoeL=Vm}Qc&A8809}Vgc%vc5w^_29HW~>Lq^*>54=|D>H zpt>KygOa-jvRD2d_EyVejQL4&Na#!)dm%Ju)xw^T%lc9j|^L^!@;cFT8tHeX9 zj?e3k!-db?ny5%dlk^RK=Yj@Tjr64{e9d*h9qCCexvnCG*z{F4Torx=Igx~oSr91M z(cGK|8mXu9M-r7J)`;V3*RQZq65#vZ&wsFw3&)X8wreSgylt^jcZA-wRBY5&GSq35 z(b*#@{Si!;}S# zts_Xr=EZ#BfR!&=#XK(-?ZV3g`C>i~L+gY*TG0IGZg8wL|dmD-E24Rg$7+^EW~%-{XB%t?PC!*K9Vkn$+A$ z8QbUTNs%g7&oz_Ua$c&ClU}YrGd4Ol(y70Y&1Z%K+(sX1ovWihEzjy)-4m`q$jem` zDyfG~m5y2mJ9ZRsQij%uUk)5x6`LQNaP?-UHkV#z+-rowvyKK~P1)S9$5S;_9OTLC zP@m7A9pZ)l!3@io&!Z`G&8(PZbKSH#Ue`>En^yFZS&u%(^oD6i)8?jWb$?V{el4@s z^=)msx8Z&*afeu|^Rbz45Oy6qD`p;nm$_-1RdYSMNa3UN?6&)JW+9q}W}8D~!7M^- zh9u1@k1k?;l|wqoo{W;JmJp+57Gc+lK0(9%b zt5lr%0TOY9Ehe4)^~C*ZthF4S-=@UO<*t;rM~e4R&y-n-E}+n5X1?f>NdF|v63*`? zq>?Tm<&6`~_V(E5#Z~koKK-7yZM2W{+tE~XX^Zk4A|_|nrZdA7IZ}f!?9er4zC|19 zI#I`4I5aqIEhg5OrHhx|3bKrAo~7e6-aTAW literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..75634acdb261553cd050aa5bbc07bbabce8a307e GIT binary patch literal 367 zcmYL^K~KUk7=|%=+R?Lz9=zd)WzhsG5-KaW*luJD61`QZvj*FxD@K2af6w1yml%1I zCq4A}+V}f8J^Aj090kq-=YiwEMWD?fa2+m(;cT7%ES!B)8xQFg*2*>78iE#d`atIl zty!^5^DHVKJ`5)>`+5~fZ`ABG^2UJ(@I{uSUDVvORL^oLy>V;n>% z)Q4^#|MMOhEkNXuP;{RYk#?W*j73~F9!e)ovy, 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 0000000000000000000000000000000000000000..c2c746638b428426013189c86dc287ffe8a60e53 GIT binary patch literal 510 zcmZut-A=+V6xQg~F1_}mCQ7zwX*V^2;=qWIkVqtC>U9}q)NJk27Quwq@Qr*9pT#p! zx$#TBoO9am{C*uBe(VAEfycm8-~sRgSfK&@gwH0}O7n-2(XS$PcreA!!dR&lLoYmY zT;|?bl-f8vw3(dZyG3Skq8ai=j|uJ?!5xV4J$Hhkh=x~~MmVAmUxl`+(qNcT4^Lq>a}d|`Nw``Q$i xAysZd8(+52){T7?$6<#u-}lv7NNGE42J7`t5XUsA)qHgVHV8U!>L6%&d*80flk5Nh literal 0 HcmV?d00001 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 %}