From 5c1f57abc0099048cb2a96ca0e8da29196e20caa Mon Sep 17 00:00:00 2001 From: Serafeim Papastefanos Date: Wed, 19 Feb 2014 14:57:35 +0200 Subject: [PATCH 1/3] Added transifex config + strings for wagtailusers --- .tx/config | 8 + wagtail/wagtailusers/forms.py | 13 +- .../locale/el/LC_MESSAGES/django.mo | Bin 0 -> 3989 bytes .../locale/el/LC_MESSAGES/django.po | 179 ++++++++++++++++++ .../locale/en/LC_MESSAGES/django.mo | Bin 0 -> 367 bytes .../locale/en/LC_MESSAGES/django.po | 165 ++++++++++++++++ .../templates/wagtailusers/create.html | 14 +- .../templates/wagtailusers/edit.html | 16 +- .../templates/wagtailusers/index.html | 7 +- .../templates/wagtailusers/list.html | 13 +- .../templates/wagtailusers/results.html | 6 +- wagtail/wagtailusers/views/users.py | 9 +- 12 files changed, 397 insertions(+), 33 deletions(-) create mode 100644 .tx/config create mode 100644 wagtail/wagtailusers/locale/el/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailusers/locale/el/LC_MESSAGES/django.po create mode 100644 wagtail/wagtailusers/locale/en/LC_MESSAGES/django.mo create mode 100644 wagtail/wagtailusers/locale/en/LC_MESSAGES/django.po diff --git a/.tx/config b/.tx/config new file mode 100644 index 0000000000..87de8de338 --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[wagtail.wagtailusers] +file_filter = wagtail/wagtailusers/locale//LC_MESSAGES/django.po +source_file = wagtail/wagtailusers/locale/en/LC_MESSAGES/django.po +source_lang = en +type = PO \ No newline at end of file diff --git a/wagtail/wagtailusers/forms.py b/wagtail/wagtailusers/forms.py index cc11827dbe..c5535bfc35 100644 --- a/wagtail/wagtailusers/forms.py +++ b/wagtail/wagtailusers/forms.py @@ -13,9 +13,10 @@ class UserCreationForm(BaseUserCreationForm): required=False, help_text=_("If ticked, this user has the ability to manage user accounts.") ) - first_name = forms.CharField(required=True) - last_name = forms.CharField(required=True) - email = forms.EmailField(required=True) + + email = forms.EmailField(required=True, label=_("Email")) + first_name = forms.CharField(required=True, label=_("First Name")) + last_name = forms.CharField(required=True, label=_("Last Name")) class Meta: model = User @@ -54,9 +55,9 @@ class UserEditForm(forms.ModelForm): 'invalid': _("This value may contain only letters, numbers and @/./+/-/_ characters.") }) - email = forms.EmailField(required=True) - first_name = forms.CharField(required=True) - last_name = forms.CharField(required=True) + email = forms.EmailField(required=True, label=_("Email")) + first_name = forms.CharField(required=True, label=_("First Name")) + last_name = forms.CharField(required=True, label=_("Last Name")) password1 = forms.CharField( label=_("Password"), diff --git a/wagtail/wagtailusers/locale/el/LC_MESSAGES/django.mo b/wagtail/wagtailusers/locale/el/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..0c80870cf36cee80db3131c8f30dc93b3ff20c37 GIT binary patch literal 3989 zcma);U2Ggz6~_k%(38+}ZWou^VNQ z+5gPF=bn4c|NPG#fAGYfYZljD?r(7){D@`cz=@CY!}Zw5EUOQE9Q-7B0Q>}a80-R% zfscX5!Ows%f``B&DE7YxzYe|&ejMBY4}kB1vi`r|2)JiY>gO2vIPWij63=N+)&(H{ zt#kaye!l|03|g>mU3Kg8u>~-Y1#t0iOo@!3prYU<3RacoQ50{|7z+ zjNZjAxeu^6!Onsou@D7;z zi}r*!;ac)0J#$Gd+SeC&Kz=5E>!_-SI#4rCR8djIj?AlPSGBU;K-^ zI3=fGM~?4htuZGEBlTnKt?`nIoWfaM?8k=_rcqQ_{76BLdv;31gxz*Hp(VvB*Y?gT zr=&bTQiY1`mB}S*P3URuT4v)Dtw62zgDUu5$qA|^M(d=0rS1f}m{kV`#6iGDItUfH zl=KWls0kg(NWUsNWhWwAuc)5QWpn#;ncNxWdu}6Zo%CHDTBnG}I^_pJqn~(8iXp5= zg^KDP*3~0Dy`i>)LgmaWbsaSN!r>f)-PWndj_RQ`3ANFT-(j}oXtx-$ZPD8orGB!; z%7_SkxJ8rplvV}Q6X~KV*74yh9Rz+rZN=qIcuBzp96G_K_bD1@)e`U1F=+4WXZPo?%Y8 zZF0SObxL^O&Tgk5S?e?#seL`+zIL`-hw8PW5ReXuZjE_poe2Dwbs@@(7c(#79#!Vm zOKIR;Cw0vaqRjEI>=ZM{>g6yq>E~6~iJweno)bPX&ioLsc{MaJcrY_Clo|ZK8a$XE zd}jZ^(7*tOnUi|j5vRM@4dn;Fw|{`EOEjCA3~VoSrB(BaMC_7ws%p6X^ep3r%9MXD zTkxw#SmBlH^lD~O+ts{!KG6EC>a9dkEuYKH%*uYPjv{D}uo^Y;i}blDS97V#VbcSljz&&Tj%5yY>}11|4l<)& z!7tKdd39*Yi8dq6EA4ijaO;8XX2$%W8s?Q(Gq2&u&|#H6j`Vu!sS!2Uceu-n-%ZZP z^T}-TTHK7+RJ<79j#pLkS~43iCa)$J{Y@qL+? z6X11u+v2Ph-(YwpUN+Xt$*b|bWG=a2#n-TJGPshyzQf}Nvv-JK{ecLq_~El}5XW+w zfb3$zUX(rFmW+0rU67;}Sh7Jn_a(Je72lR;99<+L$@?O?$N)3jHdu=PL`wH%Ui{yE zFh87L#lPWjRf0)=6W@mj0>Sfad?&d=qN_Uwgj_hrN@}r`Tp_X#`wBoGdB*cF+hkE% z9qi*J6YPefJXg%)dNQZ5f+28$v5@sXO{#SHK9Qonjg;oFIB z5sUCDS|Y9wW3@x*Qd+T8W;>`9=5`YKmiTRM*UvRlTS7g;#s+yLms|R6LWLL$4a<_< zZFx)8%)nj#%~MdrB1JNO@YTc)KU=7IvqPxS?`~Xfp()& zr*h0ut>xrA0rKgCyVQIg^F=0`$pscjSZgS07S*2Lsy@02BJi-n+&uk92eNXRqNOc& zhmnnVNmwv)MPIva()pGW^&jvm#aK%d*l4w7Gr5#1<^~Uhkz6&~iENu}2(v1_B{5>Z zYBp?DFI5MrD6{NR+E)@MS;;XXB}jV_kFB%jVc+WbO_S!lX&E_HXs4T|Rf&nyC@tWU zjC2}7#MCN3^<9$QmIh8+W|_3#Fw%f_2~2F;CqlfajF!pj9?=phQLnI)(+<5Qmr{|o zn&1&UiF(D?0w=HOLj0J9-{lN==nkDj?B__xoT1n^r4uOnmUBGS(RFG=V~a^zgGc*A zqU{>D3y|GfPo+%p)G)&oFtpFm1Tx;bEvkD3HcyAf`ny-( M_>Yjb*$~$M0sq^=`Tzg` literal 0 HcmV?d00001 diff --git a/wagtail/wagtailusers/locale/el/LC_MESSAGES/django.po b/wagtail/wagtailusers/locale/el/LC_MESSAGES/django.po new file mode 100644 index 0000000000..80ca004662 --- /dev/null +++ b/wagtail/wagtailusers/locale/el/LC_MESSAGES/django.po @@ -0,0 +1,179 @@ +# 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-19 14:36+0200\n" +"PO-Revision-Date: 2014-02-19 12:36+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:12 .\forms.py:73 +msgid "Administrator" +msgstr "Διαχειριστής" + +#: .\forms.py:14 +msgid "If ticked, this user has the ability to manage user accounts." +msgstr "" +"Αν επιλεγεί, ο συγκεκριμένος χρήστης έχει τη δυνατότητα διαχείρισης " +"λογαριασμών χρηστών." + +#: .\forms.py:17 .\forms.py:58 +msgid "Email" +msgstr "Email" + +#: .\forms.py:18 .\forms.py:59 +msgid "First Name" +msgstr "Όνομα" + +#: .\forms.py:19 .\forms.py:60 +msgid "Last Name" +msgstr "Επίθετο" + +#: .\forms.py:46 +msgid "A user with that username already exists." +msgstr "Υπάρχει ήδη χρήστης με το συγκεκριμένο όνομα χρήστη." + +#: .\forms.py:47 +msgid "The two password fields didn't match." +msgstr "Τα δύο πεδία κωδικών δεν είναι ίδια." + +#: .\forms.py:50 .\templates\wagtailusers\list.html.py:15 +msgid "Username" +msgstr "Όνομα χρήστη" + +#: .\forms.py:53 +msgid "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only." +msgstr "" +"Απαραίτητο. Λιγότερο από 30 χαρακτήρες. Επιτρέπονται μόνο γράμματα, αριθμοί " +"και οι χαρακτήρες @/./+/-/_." + +#: .\forms.py:55 +msgid "This value may contain only letters, numbers and @/./+/-/_ characters." +msgstr "" +"Η τιμή επιτρέπεται να έχει μόνο γράμματα, αριθμούς και τους χαρακτήρες @/./" +"+/-/_." + +#: .\forms.py:63 +msgid "Password" +msgstr "Κωδικός" + +#: .\forms.py:66 +msgid "Leave blank if not changing." +msgstr "Αφήστε κενό αν δεν το αλλάζετε." + +#: .\forms.py:68 +msgid "Password confirmation" +msgstr "Επιβεβαίωση κωδικού." + +#: .\forms.py:70 +msgid "Enter the same password as above, for verification." +msgstr "Εισάγετε τον ίδιο κωδικό για επιβεβαίωση" + +#: .\forms.py:75 +msgid "Administrators have the ability to manage user accounts." +msgstr "" +"Οι Διαχειριστές έχουν τη δυνατότητα να διαχειρίζονται λογαριασμούς χρηστών." + +#: .\templates\wagtailusers\create.html.py:8 +#: .\templates\wagtailusers\create.html.py:35 +msgid "Add user" +msgstr "Προσθήκη χρήστη" + +#: .\templates\wagtailusers\create.html.py:12 +#: .\templates\wagtailusers\edit.html.py:12 +msgid "Account" +msgstr "Λογαριασμός" + +#: .\templates\wagtailusers\create.html.py:13 +#: .\templates\wagtailusers\create.html.py:28 +#: .\templates\wagtailusers\edit.html.py:13 +msgid "Roles" +msgstr "Ρόλοι" + +#: .\templates\wagtailusers\edit.html.py:4 +#: .\templates\wagtailusers\edit.html.py:8 +msgid "Editing" +msgstr "Διόρθωση" + +#: .\templates\wagtailusers\edit.html.py:37 +msgid "Save" +msgstr "Αποθήκευση" + +#: .\templates\wagtailusers\index.html.py:4 +#: .\templates\wagtailusers\index.html.py:17 +msgid "Users" +msgstr "Χρήστες" + +#: .\templates\wagtailusers\index.html.py:18 +msgid "Add a user" +msgstr "Προσθήκη χρήστη" + +#: .\templates\wagtailusers\list.html.py:7 +msgid "Name" +msgstr "Όνομα" + +#: .\templates\wagtailusers\list.html.py:22 +msgid "Level" +msgstr "Επίπεδο" + +#: .\templates\wagtailusers\list.html.py:23 +msgid "Status" +msgstr "Κατάσταση" + +#: .\templates\wagtailusers\list.html.py:36 +msgid "Admin" +msgstr "Διαχειριστής" + +#: .\templates\wagtailusers\list.html.py:37 +msgid "Active" +msgstr "Ενεργός" + +#: .\templates\wagtailusers\list.html.py:37 +msgid "Inactive" +msgstr "Μη ενεργός" + +#: .\templates\wagtailusers\results.html.py:12 +#, python-format +msgid "Sorry, no users match \"%(search_query)s\"" +msgstr "" +"Λυπούμαστε, δε βρέθηκαν χρήστες που να ταιριάζουν με το \"%(search_query)" +"s\"" + +#: .\templates\wagtailusers\results.html.py:15 +#, python-format +msgid "" +"There are no users configured. Why not add some?" +msgstr "" +"Δεν έχουν [προστεθεί χρήστες. Θέλετε να προσθέσετε μερικούς?" + +#: .\views\users.py:75 +#, python-format +msgid "User '%s' created." +msgstr "Ο χρήστης '%s' δημιουργήθηκε." + +#: .\views\users.py:78 +msgid "The user could not be created due to errors." +msgstr "Δεν ήταν δυνατή η δημιουργία του χρήστη." + +#: .\views\users.py:94 +#, python-format +msgid "User '%s' updated." +msgstr "Τα στοιχεία του χρήστη '%s' ενημερώθηκαν." + +#: .\views\users.py:97 +msgid "The user could not be saved due to errors." +msgstr "Δεν ήταν δυνατή η ενημέρωση των στοιχείων του χρήστη." diff --git a/wagtail/wagtailusers/locale/en/LC_MESSAGES/django.mo b/wagtail/wagtailusers/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..86c691bb8cf3113fd5fcbaf83870786fd545c9d9 GIT binary patch literal 367 zcmYL^K~KUk7=|%=+R?Lz9=zd)8-WBW5-KaW*luJD61`QZa|T<|6{A1Izvpl9TVmu* zp7hY?Yv1qZ{Or4hIYBOvOXL)}LYfSaK3)#-Y@GiroPE<956KqR+SQdclq}fvfz3Ht z^L&|PX^`u^bsl70R$I6`lryN5={Lg#jEC-oE%*cI4Wzv4iQXU9ZdnlYT^-g)~D4DHRG+f^}x!O?5Fyl4m9Z0xo&B_)IB$_K4q|Ak_( literal 0 HcmV?d00001 diff --git a/wagtail/wagtailusers/locale/en/LC_MESSAGES/django.po b/wagtail/wagtailusers/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000000..20cae26cfd --- /dev/null +++ b/wagtail/wagtailusers/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,165 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-02-19 14:35+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:12 .\forms.py:73 +msgid "Administrator" +msgstr "" + +#: .\forms.py:14 +msgid "If ticked, this user has the ability to manage user accounts." +msgstr "" + +#: .\forms.py:17 .\forms.py:58 +msgid "Email" +msgstr "" + +#: .\forms.py:18 .\forms.py:59 +msgid "First Name" +msgstr "" + +#: .\forms.py:19 .\forms.py:60 +msgid "Last Name" +msgstr "" + +#: .\forms.py:46 +msgid "A user with that username already exists." +msgstr "" + +#: .\forms.py:47 +msgid "The two password fields didn't match." +msgstr "" + +#: .\forms.py:50 .\templates\wagtailusers\list.html.py:15 +msgid "Username" +msgstr "" + +#: .\forms.py:53 +msgid "Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only." +msgstr "" + +#: .\forms.py:55 +msgid "This value may contain only letters, numbers and @/./+/-/_ characters." +msgstr "" + +#: .\forms.py:63 +msgid "Password" +msgstr "" + +#: .\forms.py:66 +msgid "Leave blank if not changing." +msgstr "" + +#: .\forms.py:68 +msgid "Password confirmation" +msgstr "" + +#: .\forms.py:70 +msgid "Enter the same password as above, for verification." +msgstr "" + +#: .\forms.py:75 +msgid "Administrators have the ability to manage user accounts." +msgstr "" + +#: .\templates\wagtailusers\create.html.py:8 +#: .\templates\wagtailusers\create.html.py:35 +msgid "Add user" +msgstr "" + +#: .\templates\wagtailusers\create.html.py:12 +#: .\templates\wagtailusers\edit.html.py:12 +msgid "Account" +msgstr "" + +#: .\templates\wagtailusers\create.html.py:13 +#: .\templates\wagtailusers\create.html.py:28 +#: .\templates\wagtailusers\edit.html.py:13 +msgid "Roles" +msgstr "" + +#: .\templates\wagtailusers\edit.html.py:4 +#: .\templates\wagtailusers\edit.html.py:8 +msgid "Editing" +msgstr "" + +#: .\templates\wagtailusers\edit.html.py:37 +msgid "Save" +msgstr "" + +#: .\templates\wagtailusers\index.html.py:4 +#: .\templates\wagtailusers\index.html.py:17 +msgid "Users" +msgstr "" + +#: .\templates\wagtailusers\index.html.py:18 +msgid "Add a user" +msgstr "" + +#: .\templates\wagtailusers\list.html.py:7 +msgid "Name" +msgstr "" + +#: .\templates\wagtailusers\list.html.py:22 +msgid "Level" +msgstr "" + +#: .\templates\wagtailusers\list.html.py:23 +msgid "Status" +msgstr "" + +#: .\templates\wagtailusers\list.html.py:36 +msgid "Admin" +msgstr "" + +#: .\templates\wagtailusers\list.html.py:37 +msgid "Active" +msgstr "" + +#: .\templates\wagtailusers\list.html.py:37 +msgid "Inactive" +msgstr "" + +#: .\templates\wagtailusers\results.html.py:12 +#, python-format +msgid "Sorry, no users match \"%(search_query)s\"" +msgstr "" + +#: .\templates\wagtailusers\results.html.py:15 +#, python-format +msgid "" +"There are no users configured. Why not add some?" +msgstr "" + +#: .\views\users.py:75 +#, python-format +msgid "User '%s' created." +msgstr "" + +#: .\views\users.py:78 +msgid "The user could not be created due to errors." +msgstr "" + +#: .\views\users.py:94 +#, python-format +msgid "User '%s' updated." +msgstr "" + +#: .\views\users.py:97 +msgid "The user could not be saved due to errors." +msgstr "" diff --git a/wagtail/wagtailusers/templates/wagtailusers/create.html b/wagtail/wagtailusers/templates/wagtailusers/create.html index 3e1d4636d2..4795e69821 100644 --- a/wagtail/wagtailusers/templates/wagtailusers/create.html +++ b/wagtail/wagtailusers/templates/wagtailusers/create.html @@ -1,14 +1,16 @@ {% extends "wagtailadmin/base.html" %} {% load image_tags %} -{% block titletag %}Add user{% endblock %} +{% load i18n %} +{% block titletag %}{% trans "Add user" %}{% endblock %} {% block bodyclass %}menu-users{% endblock %} {% block content %} - {% include "wagtailadmin/shared/header.html" with title="Add user" merged=1 tabbed=1 %} + {% trans "Add user" as add_user_str %} + {% include "wagtailadmin/shared/header.html" with title=add_user_str merged=1 tabbed=1 %}
@@ -23,14 +25,14 @@ {% include "wagtailadmin/shared/field_as_li.html" with field=form.password1 %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.password2 %} -
  • Roles
  • +
  • {% trans "Roles" %}
    • {% include "wagtailadmin/shared/field_as_li.html" with field=form.is_superuser %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.groups %} -
    • +
    diff --git a/wagtail/wagtailusers/templates/wagtailusers/edit.html b/wagtail/wagtailusers/templates/wagtailusers/edit.html index f96aa74bb9..ae3cae5195 100644 --- a/wagtail/wagtailusers/templates/wagtailusers/edit.html +++ b/wagtail/wagtailusers/templates/wagtailusers/edit.html @@ -1,14 +1,16 @@ {% extends "wagtailadmin/base.html" %} {% load image_tags %} -{% block titletag %}Editing {{ user.username}}{% endblock %} +{% load i18n %} +{% block titletag %}{% trans "Editing" %} {{ user.username}}{% endblock %} {% block bodyclass %}menu-users{% endblock %} {% block content %} - - {% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=user.username merged=1 tabbed=1 %} + + {% trans "Editing" as editing_str %} + {% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=user.username merged=1 tabbed=1 %} @@ -25,14 +27,14 @@ {% include "wagtailadmin/shared/field_as_li.html" with field=form.password2 %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.is_active %} -
  • +
    • {% include "wagtailadmin/shared/field_as_li.html" with field=form.is_superuser %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.groups %} -
    • +
    diff --git a/wagtail/wagtailusers/templates/wagtailusers/index.html b/wagtail/wagtailusers/templates/wagtailusers/index.html index c10e6c2072..ecb56868d2 100644 --- a/wagtail/wagtailusers/templates/wagtailusers/index.html +++ b/wagtail/wagtailusers/templates/wagtailusers/index.html @@ -1,6 +1,7 @@ {% extends "wagtailadmin/base.html" %} +{% load i18n %} {% load gravatar %} -{% block titletag %}Users{% endblock %} +{% block titletag %}{% trans "Users" %}{% endblock %} {% block bodyclass %}menu-users{% endblock %} {% block extra_js %}

    - Add recommended page + {% trans "Add recommended page" %}

    \ No newline at end of file diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/index.html b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/index.html index 2c0948e0a1..3c25785eec 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/index.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/index.html @@ -1,5 +1,6 @@ {% extends "wagtailadmin/base.html" %} -{% block titletag %}Search Terms{% endblock %} +{% load i18n %} +{% block titletag %}{% trans "Search Terms" %}{% endblock %} {% block bodyclass %}menu-editorspicks{% endblock %} {% block extra_js %} @@ -13,7 +14,9 @@ {% endblock %} {% block content %} - {% include "wagtailadmin/shared/header.html" with title="Editor's search picks" add_link="wagtailsearch_editorspicks_add" add_text="Add new editor's pick" search_url="wagtailsearch_editorspicks_index" %} + {% trans "Editor's search picks" as sp_title_str %} + {% trans "Add new editor's pick" as sp_text_str %} + {% include "wagtailadmin/shared/header.html" with title=sp_title_str add_link="wagtailsearch_editorspicks_add" add_text=sp_text_str search_url="wagtailsearch_editorspicks_index" %}
    diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/list.html b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/list.html index 0118c57a8f..d6d1b57d4f 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/list.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/list.html @@ -1,25 +1,26 @@ +{% load i18n %} - - - + + + {% for query in queries %} diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/results.html b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/results.html index 1b8e3620ac..332d66e5e3 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/results.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/editorspicks/results.html @@ -1,6 +1,13 @@ +{% load i18n %} {% if queries %} {% if is_searching %} -

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

    +

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

    {% endif %} {% include "wagtailsearch/editorspicks/list.html" %} @@ -8,8 +15,9 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=queries is_searching=is_searching linkurl="wagtailsearch_editorspicks_index" %} {% else %} {% if is_searching %} -

    Sorry, no editor's picks match "{{ search_query }}" +

    {% blocktrans %}Sorry, no editor's picks match "{{ search_query }}"{% endblocktrans %}

    {% else %} -

    No editor's picks have been created. Why not add one?

    + {% url 'wagtailsearch_editorspicks_add' as wagtailsearch_editorspicks_add_url %} +

    {% blocktrans %}No editor's picks have been created. Why not add one?{% endblocktrans %}

    {% endif %} {% endif %} \ No newline at end of file diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/queries/chooser/chooser.html b/wagtail/wagtailsearch/templates/wagtailsearch/queries/chooser/chooser.html index b62a4b528a..b78f94b603 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/queries/chooser/chooser.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/queries/chooser/chooser.html @@ -1,11 +1,13 @@ -{% include "wagtailadmin/shared/header.html" with title="Popular search terms" %} +{% load i18n %} +{% trans "Popular search terms" as pop_str %} +{% include "wagtailadmin/shared/header.html" with title=pop_str %}
      {% for field in searchform %} {% include "wagtailadmin/shared/field_as_li.html" with field=field %} {% endfor %} -
    • +
    diff --git a/wagtail/wagtailsearch/templates/wagtailsearch/queries/chooser/results.html b/wagtail/wagtailsearch/templates/wagtailsearch/queries/chooser/results.html index 05f6c6f86a..78de1e937b 100644 --- a/wagtail/wagtailsearch/templates/wagtailsearch/queries/chooser/results.html +++ b/wagtail/wagtailsearch/templates/wagtailsearch/queries/chooser/results.html @@ -1,11 +1,12 @@ +{% load i18n %}
    Search term(s)Editors picksViews (past week){% trans "Search term(s)" %}{% trans "Editors picks" %}{% trans "Views (past week)" %}
    -

    {{ query.query_string }}

    +

    {{ query.query_string }}

    {% for editors_pick in query.editors_picks.all %} {{ editors_pick.page.title }}{% if not forloop.last %}, {% endif %} {% empty %} - None + {% trans "None" %} {% endfor %} {{ query.hits }}
    - - + + @@ -19,7 +20,7 @@ {% endfor %} {% else %} - + {% endif %}
    TermsViews (past week){% trans "Terms" %}{% trans "Views (past week)" %}

    No results found

    {% trans "No results found" %}

    diff --git a/wagtail/wagtailsearch/views/editorspicks.py b/wagtail/wagtailsearch/views/editorspicks.py index 90f46ee889..2e5e604ff4 100644 --- a/wagtail/wagtailsearch/views/editorspicks.py +++ b/wagtail/wagtailsearch/views/editorspicks.py @@ -3,6 +3,7 @@ from django.contrib.auth.decorators import login_required from django.contrib import messages from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger +from django.utils.translation import ugettext as _ from wagtail.wagtailsearch import models, forms from wagtail.wagtailadmin.forms import SearchForm @@ -81,7 +82,7 @@ def add(request): editors_pick_formset = forms.EditorsPickFormSet(request.POST, instance=query) if save_editorspicks(query, query, editors_pick_formset): - messages.success(request, "Editor's picks for '%s' created." % query) + messages.success(request, _("Editor's picks for '{0}' created.").format(query)) return redirect('wagtailsearch_editorspicks_index') else: editors_pick_formset = forms.EditorsPickFormSet() @@ -109,7 +110,7 @@ def edit(request, query_id): editors_pick_formset = forms.EditorsPickFormSet(request.POST, instance=query) if save_editorspicks(query, new_query, editors_pick_formset): - messages.success(request, "Editor's picks for '%s' updated." % new_query) + messages.success(request, _("Editor's picks for '{0}' updated.").format(new_query)) return redirect('wagtailsearch_editorspicks_index') else: query_form = forms.QueryForm(initial=dict(query_string=query.query_string)) @@ -128,6 +129,7 @@ def delete(request, query_id): if request.POST: query.editors_picks.all().delete() + messages.success(request, _("Editor's picks deleted.")) return redirect('wagtailsearch_editorspicks_index') return render(request, 'wagtailsearch/editorspicks/confirm_delete.html', { diff --git a/wagtail/wagtailsnippets/locale/el/LC_MESSAGES/django.mo b/wagtail/wagtailsnippets/locale/el/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..3f7a8779a34e0cc65a84d1a9e20c4a51d0291588 GIT binary patch literal 1477 zcmZ{j%}*0S7{*7%ulf3OEhz9q>5(Ur4gRT8M+$9)m%j=b#QQf&0K8Rjz=o@b{qTK`;fL0B=?OF>p8h zY48a621L6swgU`i4EhAK?}1^Aa4wYn=O8US!5i#^#VRf#o!KlsRxfPRb-5gnBQ77X zS%EhQ(&=$J;uNVURxc%HODY|jyCuvh!oZRN3sk#>F^PGD;BekBac7uDu zbZmp(WI4%9E7s3l$CFyG$eCH~d@(1qv}4d%-_^91@;H+aYh6rogSNyIr?hyBmT1S- zXl-wdx5VQRYW;l342nkR62{3yV;m=TnF*<-J!T7wNyjs&;2s;~W`Ukwy`4imlfUZ> zH)ou}8D!YGBFk|t%~`>q7d_7J)B3!WuA%FtQmI)6)yzR2>UFoWq|jZxRM}0psugr@ z=?$^op5E@Y{S(dcSjw>_w=oueA_kRwSn96DOgl+4dFBZ&JFcfMXl-k{py43*v~D}& zWbyF~+IH8Jehptc*jqN62AE7y*Cn;z|;iH2m1s8{}|TK31( zg8HC7srd~)tC~_X{+K_m$`sleHHVyuAX6<;e-iOUiVE-5k}8KH^+nB6^-(RVSv3dU ztp7-r)eOaD!XNi1DOAhRy^=&t`45n}gz9tZ!#X!QX}w6jLploh6C3HD{WBZ7Ab?Fq z)q?*7E6)EHh%U7L-vedl)o0YMyw4ooYBnhKUog5HQBSe^a`kJJ@mS#~ukrfh;XV(E OdVx1xY@!=HG5G^A%L!Qk literal 0 HcmV?d00001 diff --git a/wagtail/wagtailsnippets/locale/el/LC_MESSAGES/django.po b/wagtail/wagtailsnippets/locale/el/LC_MESSAGES/django.po new file mode 100644 index 0000000000..10039824e5 --- /dev/null +++ b/wagtail/wagtailsnippets/locale/el/LC_MESSAGES/django.po @@ -0,0 +1,126 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Translators: +# serafeim , 2014 +msgid "" +msgstr "" +"Project-Id-Version: Wagtail\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-02-20 00:15+0200\n" +"PO-Revision-Date: 2014-02-19 21:31+0000\n" +"Last-Translator: serafeim \n" +"Language-Team: Greek (http://www.transifex.com/projects/p/wagtail/language/" +"el/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: el\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: .\templates\wagtailsnippets\chooser\choose.html:2 +msgid "Choose" +msgstr "Επιλογή" + +#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:10 +#, python-format +msgid "Choose another %(snippet_type_name)s" +msgstr "Επιλογή άλλου %(snippet_type_name)s" + +#: .\templates\wagtailsnippets\edit_handlers\snippet_chooser_panel.html:11 +#, python-format +msgid "Choose %(snippet_type_name)s" +msgstr "Επιλογή %(snippet_type_name)s" + +#: .\templates\wagtailsnippets\snippets\confirm_delete.html:3 +#, python-format +msgid "Delete %(snippet_type_name)s - %(instance)s" +msgstr "" + +#: .\templates\wagtailsnippets\snippets\confirm_delete.html:6 +#: .\templates\wagtailsnippets\snippets\edit.html:20 +msgid "Delete" +msgstr "Διαγραφή" + +#: .\templates\wagtailsnippets\snippets\confirm_delete.html:10 +#, python-format +msgid "Are you sure you want to delete this %(snippet_type_name)s?" +msgstr "Είστε σίγουροι ότι θέλετε να διαγραφεί αυτό το %(snippet_type_name)s;" + +#: .\templates\wagtailsnippets\snippets\confirm_delete.html:13 +msgid "Yes, delete" +msgstr "Ναι, να διαγραφεί" + +#: .\templates\wagtailsnippets\snippets\create.html:3 +#, python-format +msgid "New %(snippet_type_name)s" +msgstr "Δημιουργία %(snippet_type_name)s" + +#: .\templates\wagtailsnippets\snippets\create.html:6 +msgid "New" +msgstr "Δημιουργία" + +#: .\templates\wagtailsnippets\snippets\create.html:17 +#: .\templates\wagtailsnippets\snippets\edit.html:17 +msgid "Save" +msgstr "Αποθήκευση" + +#: .\templates\wagtailsnippets\snippets\edit.html:3 +#, python-format +msgid "Editing %(snippet_type_name)s - %(instance)s" +msgstr "Διόρθωση %(snippet_type_name)s - %(instance)s" + +#: .\templates\wagtailsnippets\snippets\edit.html:6 +msgid "Editing" +msgstr "Διόρθωση" + +#: .\templates\wagtailsnippets\snippets\index.html:3 +msgid "Snippets" +msgstr "" + +#: .\templates\wagtailsnippets\snippets\list.html:8 +msgid "Title" +msgstr "Τίτλος" + +#: .\templates\wagtailsnippets\snippets\type_index.html:3 +#, python-format +msgid "Snippets %(snippet_type_name_plural|capfirst)s" +msgstr "" + +#: .\templates\wagtailsnippets\snippets\type_index.html:10 +#, python-format +msgid "Snippets %(snippet_type_name_plural|capfirst)s" +msgstr "" + +#: .\templates\wagtailsnippets\snippets\type_index.html:13 +#, python-format +msgid "Add %(snippet_type_name)s" +msgstr "Προσθήκη %(snippet_type_name)s" + +#: .\templates\wagtailsnippets\snippets\type_index.html:23 +#, python-format +msgid "" +"No %(snippet_type_name_plural)s have been created. Why not add one?" +msgstr "" + +#: .\views\snippets.py:127 +msgid "{snippet_type} '{instance}' created." +msgstr "" + +#: .\views\snippets.py:134 +msgid "The snippet could not be created due to errors." +msgstr "" + +#: .\views\snippets.py:168 +msgid "{snippet_type} '{instance}' updated." +msgstr "" + +#: .\views\snippets.py:175 +msgid "The snippet could not be saved due to errors." +msgstr "" + +#: .\views\snippets.py:204 +msgid "{snippet_type} '{instance}' deleted." +msgstr "" diff --git a/wagtail/wagtailsnippets/locale/en/LC_MESSAGES/django.mo b/wagtail/wagtailsnippets/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..4912a58680a1f503a124ce12009b340f7416de7e GIT binary patch literal 367 zcmYL^K~KUk7=|@^+R?Lz9=zd)gGd4u36&LGY&S9niQX#IS%WRZ?Q7#KC37};U^7lu zyjY}p78QEud;nQjW&?Nos)o{063z1xCSI$6mmpC=Q__t)*ARE1Gr%qF4O($Gj!}d{ zf0$-ILW=T@;#bSi2 zt@f(YP-^u~iD21m*;F11G2WWC^VKMlspN-Gb=q+>aW-g+Z+z{rY|x+KYPVI!-jMaH e^0f}P%W?|+gV%I<(H^*6yN$6GCH-d;qN85}&0@6x literal 0 HcmV?d00001 diff --git a/wagtail/wagtailusers/locale/el/LC_MESSAGES/django.mo b/wagtail/wagtailusers/locale/el/LC_MESSAGES/django.mo index 0c80870cf36cee80db3131c8f30dc93b3ff20c37..a5f202ffe0bb279cc75a81458ca6f4555aa79706 100644 GIT binary patch delta 725 zcmX}qT_~hc7{Kvo-uYlyL*rv6vtl-;$TCK>#FjE!LkXE1DHL(#qrH?QcRnt3BA1ez zjVMDKQf|1}n_Z<`xu$Jha6|2d|1-Uu&U=36Idk6kJm;KQE8QxYyY;))gc9cY$W!hR zsl{rGhH{6Mc#j#F?-cQ12($1LX5wdbVmHIy^>A_%BxABUWRO$yKZ`aXS4B zOyM{Dg}Q*Bx9Ca;H#n6r4iTTQogy7)k`H58f^D{g7$lyxUB?yTeaypFcBkL%!cNwg zK011oo4AcTn2+5I>H;IENBP~3cabWmc6^Bu;%hv@|45aCY>@&y!+E?yKlXhfSscTf z1f3srhVcnEFv$fj;{yh8hAcD@<1-yr#35$d3XBrJm-Iam>3zJFTsmcTpsVViKud^+ z4W={HW7EQwq>o&8tw*F;lZzCaf7XOaI(t&*&PB^ic?R6EXmdl8`Qs^fH8n?LsTa?) R!`x*4OkH?u+-5R2@(Sc`M@s+z delta 997 zcmZwFOGwl~9Ki9}XKN1?duR{wpWA9Hp{$Px!-GPS>?(9Hs8iN1Vbl_?QW3RmrebV$ z_$LTGgxIc@Y>RHRc#;m*%&|k@p;H7wbgEN*f4l3U=+Dl4W`6UZ`OVCKpV!YdBsXf@ zbBf1LIY8-jDAk4$Cl!y+rBo0ra0_;z7mwps>_Z<8;to8G$1sZW{!`qGFVKUl*nw-v z{G|FtqlbXoU0SFQE9i$&HZ+VfaSZvX>r|5P7VgGrJb_P8-usOF)EBA{enZ)C1A_r< z!Xp^L7V@hbG|m#pU_buG8tiA5cm^fmWn@TA;5@f<6VK7##o!)^VyV1ap`u zj|aE2S^Axr!T}tT6Ry+f#SI)liw`-1mvA26V;WesKa*)EIir3906t5AA-&6ifatm^GatijUl>NaO zw|iaTy6EWmX#AoTI6RSvjkQV@AGs0>CbIWjX{Tj12NKQJg|XPkcr4ngh8Zq}Cay*$ zWLJC7dqSPvp)UKH_mI22J9IR=;Qi^aU-_PO=|?(m(k7)>%&eKz%a)lmcl9d48J*KF z&8#l`C+}cIn, 2014 +# serafeim , 2014 msgid "" msgstr "" "Project-Id-Version: Wagtail\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-02-19 14:36+0200\n" -"PO-Revision-Date: 2014-02-19 12:36+0000\n" +"POT-Creation-Date: 2014-02-20 00:14+0200\n" +"PO-Revision-Date: 2014-02-19 21:48+0000\n" "Last-Translator: serafeim \n" "Language-Team: Greek (http://www.transifex.com/projects/p/wagtail/language/" "el/)\n" @@ -49,7 +50,7 @@ msgstr "Υπάρχει ήδη χρήστης με το συγκεκριμένο msgid "The two password fields didn't match." msgstr "Τα δύο πεδία κωδικών δεν είναι ίδια." -#: .\forms.py:50 .\templates\wagtailusers\list.html.py:15 +#: .\forms.py:50 .\templates\wagtailusers\list.html:15 msgid "Username" msgstr "Όνομα χρήστη" @@ -86,72 +87,85 @@ msgid "Administrators have the ability to manage user accounts." msgstr "" "Οι Διαχειριστές έχουν τη δυνατότητα να διαχειρίζονται λογαριασμούς χρηστών." -#: .\templates\wagtailusers\create.html.py:8 -#: .\templates\wagtailusers\create.html.py:35 +#: .\templates\wagtailusers\create.html:4 +#: .\templates\wagtailusers\create.html:8 +#: .\templates\wagtailusers\create.html:35 msgid "Add user" msgstr "Προσθήκη χρήστη" -#: .\templates\wagtailusers\create.html.py:12 -#: .\templates\wagtailusers\edit.html.py:12 +#: .\templates\wagtailusers\create.html:12 +#: .\templates\wagtailusers\edit.html:12 msgid "Account" msgstr "Λογαριασμός" -#: .\templates\wagtailusers\create.html.py:13 -#: .\templates\wagtailusers\create.html.py:28 -#: .\templates\wagtailusers\edit.html.py:13 +#: .\templates\wagtailusers\create.html:13 +#: .\templates\wagtailusers\create.html:28 +#: .\templates\wagtailusers\edit.html:13 msgid "Roles" msgstr "Ρόλοι" -#: .\templates\wagtailusers\edit.html.py:4 -#: .\templates\wagtailusers\edit.html.py:8 +#: .\templates\wagtailusers\edit.html:4 .\templates\wagtailusers\edit.html:8 msgid "Editing" msgstr "Διόρθωση" -#: .\templates\wagtailusers\edit.html.py:37 +#: .\templates\wagtailusers\edit.html:30 .\templates\wagtailusers\edit.html:37 msgid "Save" msgstr "Αποθήκευση" -#: .\templates\wagtailusers\index.html.py:4 -#: .\templates\wagtailusers\index.html.py:17 +#: .\templates\wagtailusers\index.html:4 +#: .\templates\wagtailusers\index.html:17 msgid "Users" msgstr "Χρήστες" -#: .\templates\wagtailusers\index.html.py:18 +#: .\templates\wagtailusers\index.html:18 msgid "Add a user" msgstr "Προσθήκη χρήστη" -#: .\templates\wagtailusers\list.html.py:7 +#: .\templates\wagtailusers\list.html:7 msgid "Name" msgstr "Όνομα" -#: .\templates\wagtailusers\list.html.py:22 +#: .\templates\wagtailusers\list.html:22 msgid "Level" msgstr "Επίπεδο" -#: .\templates\wagtailusers\list.html.py:23 +#: .\templates\wagtailusers\list.html:23 msgid "Status" msgstr "Κατάσταση" -#: .\templates\wagtailusers\list.html.py:36 +#: .\templates\wagtailusers\list.html:36 msgid "Admin" msgstr "Διαχειριστής" -#: .\templates\wagtailusers\list.html.py:37 +#: .\templates\wagtailusers\list.html:37 msgid "Active" msgstr "Ενεργός" -#: .\templates\wagtailusers\list.html.py:37 +#: .\templates\wagtailusers\list.html:37 msgid "Inactive" msgstr "Μη ενεργός" -#: .\templates\wagtailusers\results.html.py:12 +#: .\templates\wagtailusers\results.html:5 +#, python-format +msgid "" +"\n" +" There is one match\n" +" " +msgid_plural "" +"\n" +" There are %(counter)s matches\n" +" " +msgstr[0] "" +msgstr[1] "" + +#: .\templates\wagtailusers\results.html:18 #, python-format msgid "Sorry, no users match \"%(search_query)s\"" msgstr "" "Λυπούμαστε, δε βρέθηκαν χρήστες που να ταιριάζουν με το \"%(search_query)" "s\"" -#: .\templates\wagtailusers\results.html.py:15 +#: .\templates\wagtailusers\results.html:21 #, python-format msgid "" "There are no users configured. Why not προσθέσετε μερικούς?" #: .\views\users.py:75 -#, python-format -msgid "User '%s' created." -msgstr "Ο χρήστης '%s' δημιουργήθηκε." +msgid "User '{0}' created." +msgstr "Ο χρήστης '{0}' δημιουργήθηκε." #: .\views\users.py:78 msgid "The user could not be created due to errors." msgstr "Δεν ήταν δυνατή η δημιουργία του χρήστη." #: .\views\users.py:94 -#, python-format -msgid "User '%s' updated." -msgstr "Τα στοιχεία του χρήστη '%s' ενημερώθηκαν." +msgid "User '{0}' updated." +msgstr "Τα στοιχεία του χρήστη '{0}' ενημερώθηκαν." #: .\views\users.py:97 msgid "The user could not be saved due to errors." diff --git a/wagtail/wagtailusers/locale/en/LC_MESSAGES/django.mo b/wagtail/wagtailusers/locale/en/LC_MESSAGES/django.mo index 86c691bb8cf3113fd5fcbaf83870786fd545c9d9..4912a58680a1f503a124ce12009b340f7416de7e 100644 GIT binary patch delta 15 XcmaFQ^qy(LBvvB>D^tsf({BI(Fj@u_ delta 15 XcmaFQ^qy(LBvwNcD?`(X({BI(FiHjw diff --git a/wagtail/wagtailusers/templates/wagtailusers/results.html b/wagtail/wagtailusers/templates/wagtailusers/results.html index 54f8b14eea..21d9106b6c 100644 --- a/wagtail/wagtailusers/templates/wagtailusers/results.html +++ b/wagtail/wagtailusers/templates/wagtailusers/results.html @@ -1,7 +1,13 @@ {% load i18n %} {% if users %} {% if is_searching %} -

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

    +

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

    {% endif %} {% include "wagtailusers/list.html" %}