messages.py 10.4 KB
Newer Older
Olga Brani's avatar
Olga Brani committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2011-2012 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
#   1. Redistributions of source code must retain the above
#      copyright notice, this list of conditions and the following
#      disclaimer.
#
#   2. Redistributions in binary form must reproduce the above
#      copyright notice, this list of conditions and the following
#      disclaimer in the documentation and/or other materials
#      provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# The views and conclusions contained in the software and
# documentation are those of the authors and should not be
# interpreted as representing official policies, either expressed
# or implied, of GRNET S.A.

ACCOUNT_AUTHENTICATION_FAILED           =   'Cannot authenticate account.'
ACCOUNT_ALREADY_ACTIVE                  =   'Account is already active.'
36
ACCOUNT_PENDING_ACTIVATION              =   'Your request is pending activation.'
37
38
ACCOUNT_PENDING_MODERATION              =   'Your request is pending moderation.'
ACCOUNT_INACTIVE                        =   'Your account is disabled.'
39
40
41
ACCOUNT_RESEND_ACTIVATION               =   'You have not followed the activation link. <a href="%(send_activation_url)s">Resend activation email?</a>'
INACTIVE_ACCOUNT_CHANGE_EMAIL           =   ''.join([ACCOUNT_RESEND_ACTIVATION, ' or <a href="%(signup_url)s">Provide new email?</a>'])

42
ACCOUNT_PENDING_ACTIVATION_HELP         =   'If you haven\'t received activation email, be sure to check your spam folder.'
Kostas Papadimitriou's avatar
Kostas Papadimitriou committed
43
44
45
46

ACCOUNT_ACTIVATED                       =   'Congratulations. Your account has' + \
                                            ' been activated and you have been' + \
                                            ' automatically signed in to your account.'
47
48
PASSWORD_RESET_DONE                     =   'A mail with details on how to change your password was sent.'
PASSWORD_RESET_CONFIRM_DONE             =   'Password changed. You can now login using your new password.'
49
50
51
52

ACCOUNT_RESEND_ACTIVATION_PROMPT        =   'Resend activation mail'
ACCOUNT_USER_ACTIVATION_PENDING         =   'You have not followed the activation link'

53
ACCOUNT_UNKNOWN                         =   'There is no such account.'
Olga Brani's avatar
Olga Brani committed
54
55
56
57
58
59
60
61
TOKEN_UNKNOWN                           =   'There is no user matching this token.'

PROFILE_UPDATED                         =   'Profile has been updated successfully.'
FEEDBACK_SENT                           =   'Feedback successfully sent.'
EMAIL_CHANGED                           =   'Account email has been changed successfully.'
EMAIL_CHANGE_REGISTERED                 =   'Change email request has been registered succefully. \
                                               You are going to receive a verification email in the new address.'

Olga Brani's avatar
Bug fix    
Olga Brani committed
62
OBJECT_CREATED                          =   'The %(verbose_name)s was created successfully.'
Olga Brani's avatar
Olga Brani committed
63
64
MEMBER_JOINED_GROUP                     =   '%(realname)s has been successfully joined the group.'
MEMBER_REMOVED                          =   '%(realname)s has been successfully removed from the group.'
65
BILLING_ERROR                           =   'Service response status: %(status)d'
Olga Brani's avatar
Olga Brani committed
66
LOGOUT_SUCCESS                          =   'You have successfully logged out.'
67
LOGIN_SUCCESS                           =   'You have successfully logged in.'
Olga Brani's avatar
Olga Brani committed
68
69
70
71
72
73
74
75

GENERIC_ERROR                           =   'Something wrong has happened. \
                                               Please contact the administrators for more details.'

MAX_INVITATION_NUMBER_REACHED   =           'There are no invitations left.'
GROUP_MAX_PARTICIPANT_NUMBER_REACHED    =   'Group maximum participant number has been reached.'
NO_APPROVAL_TERMS                       =   'There are no approval terms.'
PENDING_EMAIL_CHANGE_REQUEST            =   'There is already a pending change email request.'
Olga Brani's avatar
Olga Brani committed
76
OBJECT_CREATED_FAILED                   =   'The %(verbose_name)s creation failed: %(reason)s.'
Olga Brani's avatar
Olga Brani committed
77
78
79
80
81
82
83
84
85
86
87
GROUP_JOIN_FAILURE                      =   'Failed to join group.'
GROUPKIND_UNKNOWN                       =   'There is no such a group kind'
NOT_MEMBER                              =   'User is not member of the group.'
NOT_OWNER                               =   'User is not a group owner.'
OWNER_CANNOT_LEAVE_GROUP                =   'Owner cannot leave the group.'

# Field validation fields
REQUIRED_FIELD                          =   'This field is required.'
EMAIL_USED                              =   'This email address is already in use. Please supply a different email address.'
SHIBBOLETH_EMAIL_USED                   =   'This email is already associated with another shibboleth account.'
SHIBBOLETH_INACTIVE_ACC                 =   'This email is already associated with an inactive account. \
88
                                               You need to wait to be activated before being able to switch to a shibboleth account.'
89
90
SHIBBOLETH_MISSING_EPPN                 =   'Missing unique token in request.'
SHIBBOLETH_MISSING_NAME                 =   'Missing user name in request.'
Olga Brani's avatar
Olga Brani committed
91
92
93
94
95
96
97
98
99
100
101
102
103
104

SIGN_TERMS                              =   'You have to agree with the terms.'
CAPTCHA_VALIDATION_ERR                  =   'You have not entered the correct words.'
SUSPENDED_LOCAL_ACC                     =   'Local login is not the current authentication method for this account.'
UNUSABLE_PASSWORD                       =   'This account has not a usable password.'
EMAIL_UNKNOWN                           =   'That e-mail address doesn\'t have an associated user account. \
                                               Are you sure you\'ve registered?'
INVITATION_EMAIL_EXISTS                 =   'There is already invitation for this email.'
INVITATION_CONSUMED_ERR                 =   'Invitation is used.'
UNKNOWN_USERS                           =   'Unknown users: %s'
UNIQUE_EMAIL_IS_ACTIVE_CONSTRAIN_ERR    =   'Another account with the same email & is_active combination found.'
INVALID_ACTIVATION_KEY                  =   'Invalid activation key.'
NEW_EMAIL_ADDR_RESERVED                 =   'The new email address is reserved.'
EMAIL_RESERVED                          =   'Email: %(email)s is reserved'
105
106
NO_LOCAL_AUTH                           =   'Local login is not the current authentication method for this account.'
SWITCH_ACCOUNT_FAILURE                  =   'Account failed to switch. Invalid parameters.'
107
SWITCH_ACCOUNT_SUCCESS_WITH_PROVIDER    =   'Account failed to switch to %(provider)s.'
108
SWITCH_ACCOUNT_SUCCESS                  =   'Account successfully switched to %(provider)s.'
Olga Brani's avatar
Olga Brani committed
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126

# Field help text
ADD_GROUP_MEMBERS_Q_HELP                =   'Add comma separated user emails, eg. user1@user.com, user2@user.com'
ASTAKOSUSER_GROUPS_HELP                 =   'In addition to the permissions manually assigned, \
                                               this user will also get all permissions granted to each group he/she is in.'
EMAIL_CHANGE_NEW_ADDR_HELP              =   'Your old email address will be used until you verify your new one.'

EMAIL_SEND_ERR                          =   'Failed to send %s.'
ADMIN_NOTIFICATION_SEND_ERR             =   EMAIL_SEND_ERR % 'admin notification'
VERIFICATION_SEND_ERR                   =   EMAIL_SEND_ERR % 'verification'
INVITATION_SEND_ERR                     =   EMAIL_SEND_ERR % 'invitation'
GREETING_SEND_ERR                       =   EMAIL_SEND_ERR % 'greeting'
FEEDBACK_SEND_ERR                       =   EMAIL_SEND_ERR % 'feedback'
CHANGE_EMAIL_SEND_ERR                   =   EMAIL_SEND_ERR % 'feedback'
NOTIFICATION_SEND_ERR                   =   EMAIL_SEND_ERR % 'notification'

MISSING_NEXT_PARAMETER                  =   'No next parameter'

127
INVITATION_SENT                         =   'Invitation sent to %(email)s.'
128
VERIFICATION_SENT                       =   'Registration completed but account is not active yet. Account activation link was sent to your email address.'
Olga Brani's avatar
Olga Brani committed
129
SWITCH_ACCOUNT_LINK_SENT                =   'This email is already associated with another local account. \
Olga Brani's avatar
Olga Brani committed
130
                                               To change this account to a shibboleth one follow the link in the verification email sent to %(email)s. \
Olga Brani's avatar
Olga Brani committed
131
                                               Otherwise just ignore it.'
132
NOTIFICATION_SENT                       =   'Your request for an account was successfully received and is now pending approval. \
Olga Brani's avatar
Olga Brani committed
133
134
                                               You will be notified by email in the next few days. \
                                               Thanks for your interest in ~okeanos! The GRNET team.'
135
ACTIVATION_SENT                         =   'An email containing your activation link was sent to your email address.'
136

137
REGISTRATION_COMPLETED                  =   'Registration completed you can now login to your account.'
138
139
140
141
142

NO_RESPONSE                             =   'There is no response.'
NOT_ALLOWED_NEXT_PARAM                  =   'Not allowed next parameter.'
MISSING_KEY_PARAMETER                   =   'Missing key parameter.'
INVALID_KEY_PARAMETER                   =   'Invalid key.'
143
144
145
146
147
148
149
150
151
152
DOMAIN_VALUE_ERR                        =   'Enter a valid domain.'

# Auth providers messages
AUTH_PROVIDER_NOT_ACTIVE                     =   "'%(provider)s' is disabled"
AUTH_PROVIDER_NOT_ACTIVE_FOR_LOGIN           =   "Login using '%(provider)s' is disabled"
AUTH_PROVIDER_NOT_ACTIVE_FOR_USER_LOGIN      =   "You cannot login using '%(provider)s'"
AUTH_PROVIDER_NOT_ACTIVE_FOR_CREATE          =   "Signup using '%(provider)s' is disabled"
AUTH_PROVIDER_NOT_ACTIVE_FOR_ADD             =   "'%(provider)s is disabled"
AUTH_PROVIDER_ADDED                          =   "Your new login method has been added"
AUTH_PROVIDER_ADD_FAILED                     =   "Failed to add new login method"
153
AUTH_PROVIDER_LOGIN_TO_ADD                   =   "Please login now to your existing account."
154