From ef87a0cbe5fa23dd273df9c1360037507b48fc4e Mon Sep 17 00:00:00 2001 From: gstrat Date: Sun, 1 Dec 2013 14:02:10 +0200 Subject: [PATCH] translating error messages --- cas_provider/locale/el/LC_MESSAGES/django.mo | Bin 0 -> 875 bytes cas_provider/locale/el/LC_MESSAGES/django.po | 90 +++++++++++++++++++ cas_provider/views.py | 5 +- 3 files changed, 93 insertions(+), 2 deletions(-) create mode 100644 cas_provider/locale/el/LC_MESSAGES/django.mo create mode 100644 cas_provider/locale/el/LC_MESSAGES/django.po diff --git a/cas_provider/locale/el/LC_MESSAGES/django.mo b/cas_provider/locale/el/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..d63198bc05767d8176fb704d86cdf84e930e1e10 GIT binary patch literal 875 zcmZWmO>fgc5H(+y9656s#03QFCMk%@ZBR|)mI&uVNm>a`Y~yWeaP4T<0eVZ*Ruxjk zttSrf14^q=t@prRSMlzj^a!_xJUyI~uJkgd2qWglhzwkgOMk zTLeyM5H<;~E@|2?idBMjS<`+}+@VOv8iju=(bP(QE09vOLg*?XeZC@q`_5P(p~IDW z6G%tbn#-;N-f9J1KLko0SMfzpI6Blk!Igkk;DDkN-U6t^u-D-z?hvIEG*74{@CZV;=r4nIb zzB$V#E_jKpB_Wwb59PRi+klBhH_X($uH+t@4djY4!0)76Rme}mSz5U5!_5NZ?o4Jh z{D8Z7gr{*I;%$uZ6i;vf@m9Qsd+~a_fro(Kae$*S+@mahhhK3-aXTsK#cPzT;};yz z_b~438h!*kCY1v^S|euiwuq9 zi9y=_IDQXA>?OTZT0~BwbBjYrOyf7)Pm{QRkGM2e^ta?F-XsR8(mX_tk_k6RCL#Q1 RfX1dyDe(uXM!2hMe*ko0YD)kB literal 0 HcmV?d00001 diff --git a/cas_provider/locale/el/LC_MESSAGES/django.po b/cas_provider/locale/el/LC_MESSAGES/django.po new file mode 100644 index 0000000..91df766 --- /dev/null +++ b/cas_provider/locale/el/LC_MESSAGES/django.po @@ -0,0 +1,90 @@ +# 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: 2013-12-01 13:57+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: models.py:18 +msgid "ticket" +msgstr "" + +#: models.py:19 +msgid "created" +msgstr "" + +#: models.py:38 +msgid "user" +msgstr "" + +#: models.py:39 +msgid "service" +msgstr "" + +#: models.py:44 +msgid "Service Ticket" +msgstr "" + +#: models.py:45 +msgid "Service Tickets" +msgstr "" + +#: models.py:62 +msgid "Login Ticket" +msgstr "" + +#: models.py:63 +msgid "Login Tickets" +msgstr "" + +#: models.py:68 +msgid "PGTiou" +msgstr "" + +#: models.py:77 models.py:82 models.py:92 +msgid "Proxy Granting Ticket" +msgstr "" + +#: models.py:78 +msgid "Proxy Granting Tickets" +msgstr "" + +#: models.py:87 +msgid "Proxy Ticket" +msgstr "" + +#: models.py:88 +msgid "Proxy Tickets" +msgstr "" + +#: models.py:97 +msgid "Proxy Granting Ticket IOU" +msgstr "" + +#: models.py:98 +msgid "Proxy Granting Tickets IOU" +msgstr "" + +#: views.py:128 +msgid "Incorrect username and/or password." +msgstr "Λάθος όνομα χρήστη και/ή κωδικός πρόσβασης." + +#: views.py:142 +msgid "" +"This account is disabled. Please contact us if you feel it should be enabled " +"again." +msgstr "Ο λογαριασμός σας έχει απενεργοποιηθεί. Παρακαλώ επικοινωνήστε μαζί μας, " +"εάν επιθυμείτε να τον ενεργοποιήσετε ξανά." diff --git a/cas_provider/views.py b/cas_provider/views.py index 1160882..a9beae5 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -21,6 +21,7 @@ from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.auth import authenticate from django.core.urlresolvers import reverse +from django.utils.translation import ugettext as _ from lxml import etree from cas_provider.attribute_formatters import NSMAP, CAS @@ -124,7 +125,7 @@ def login(request, template_name='cas/login.html', return HttpResponseRedirect(url) if user is None: - errors.append('Incorrect username and/or password.') + errors.append(_('Incorrect username and/or password.')) else: if user.is_active: auth_login(request, user) @@ -138,7 +139,7 @@ def login(request, template_name='cas/login.html', if user is not None and user.is_authenticated(): # We have an authenticated user. if not user.is_active: - errors.append('This account is disabled. Please contact us if you feel it should be enabled again.') + errors.append(_('This account is disabled. Please contact us if you feel it should be enabled again.')) else: # Send the on_cas_login signal. If we get an HttpResponse, return that. for receiver, response in signals.on_cas_login.send(sender=login, request=request, **kwargs): -- 2.20.1