messages.py 10.8 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
37
38
39
40
ACCOUNT_PENDING_ACTIVATION              =   'Your request is pending activation.'
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>'])

ACCOUNT_UNKNOWN                         =   'There is no such account.'
Olga Brani's avatar
Olga Brani committed
41
42
43
44
45
46
47
48
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
49
OBJECT_CREATED                          =   'The %(verbose_name)s was created successfully.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
50
51
52
USER_JOINED_GROUP                       =   '%(realname)s has been successfully joined the group.'
USER_LEFT_GROUP                         =   '%(realname)s has been successfully left the group.'
USER_MEMBERSHIP_REJECTED                =   '%(realname)s\'s request to join the group has been rejected.'
Olga Brani's avatar
Olga Brani committed
53
MEMBER_REMOVED                          =   '%(realname)s has been successfully removed from the group.'
Olga Brani's avatar
Olga Brani committed
54
55
56
57
58
59
60
61
BILLING_ERROR                           =   'Service response status: %(status)d' 
LOGOUT_SUCCESS                          =   'You have successfully logged out.'

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.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
62
PROJECT_MAX_PARTICIPANT_NUMBER_REACHED  =   'Project maximum participant number has been reached.'
Olga Brani's avatar
Olga Brani committed
63
64
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
65
OBJECT_CREATED_FAILED                   =   'The %(verbose_name)s creation failed: %(reason)s.'
Olga Brani's avatar
Olga Brani committed
66
GROUP_JOIN_FAILURE                      =   'Failed to join group.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
67
PROJECT_JOIN_FAILURE                    =   'Failed to join project.'
Olga Brani's avatar
Olga Brani committed
68
69
70
71
72
73
74
75
76
77
78
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. \
                                               You need to wait to be activated before being able to switch to a shibboleth account.'   
79
80
SHIBBOLETH_MISSING_EPPN                 =   'Missing unique token in request.'
SHIBBOLETH_MISSING_NAME                 =   'Missing user name in request.'
Olga Brani's avatar
Olga Brani committed
81
82
83
84
85
86
87
88
89
90
91
92
93
94

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'
95
96
97
98
NO_LOCAL_AUTH                           =   'Local login is not the current authentication method for this account.'
SWITCH_ACCOUNT_FAILURE                  =   'Account failed to switch. Invalid parameters.'
SWITCH_ACCOUNT_SUCCESS_WITH_PROVIDER    =   'Account failed to switch to %(provider)s.' 
SWITCH_ACCOUNT_SUCCESS                  =   'Account successfully switched to %(provider)s.'
Olga Brani's avatar
Olga Brani committed
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113

# 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'
114
DETAILED_NOTIFICATION_SEND_ERR          =   'Failed to send %(subject)s notification to %(recipients)s.'
Olga Brani's avatar
Olga Brani committed
115
116
117

MISSING_NEXT_PARAMETER                  =   'No next parameter'

118
INVITATION_SENT                         =   'Invitation sent to %(email)s.'
Olga Brani's avatar
Olga Brani committed
119
120
VERIFICATION_SENT                       =   'Verification sent.'
SWITCH_ACCOUNT_LINK_SENT                =   'This email is already associated with another local account. \
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
121
122
                                             To change this account to a shibboleth one follow the link in the verification email sent to %(email)s. \
                                             Otherwise just ignore it.'
123
NOTIFICATION_SENT                       =   'Your request for an account was successfully received and is now pending approval. \
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
124
125
                                             You will be notified by email in the next few days. \
                                             Thanks for your interest in ~okeanos! The GRNET team.'
126
127
128
129
130
131
132
133
ACTIVATION_SENT                         =   'Activation sent.'

REGISTRATION_COMPLETED                  =   'Registration completed. You can now login.'

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.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
134
135
136
DOMAIN_VALUE_ERR                        =   'Enter a valid domain.'
QH_SYNC_ERROR                           =   'Failed to get synchronized with quotaholder.'
UNIQUE_PROJECT_NAME_CONSTRAIN_ERR       =   'The project name (as specified in its application\'s definition) must be unique among all active projects.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
137
138
INVALID_PROJECT                         =   'Project %(id)s is invalid.'
NOT_ALIVE_PROJECT                       =   'Project %(id)s is not alive.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
139
NOT_ALLOWED                             =   'You do not have the permissions to perform this action.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
140
MEMBER_NUMBER_LIMIT_REACHED             =   'Maximum participant number has been reached.'
141
MEMBER_JOIN_POLICY_CLOSED               =   'The project member join policy is closed.'
142
MEMBER_LEAVE_POLICY_CLOSED              =   'The project member leave policy is closed.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
143
NOT_MEMBERSHIP_REQUEST                  =   'There is no such a membership request.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
144
MEMBERSHIP_REQUEST_EXISTS               =   'There is alreary such a membership request.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
145
NO_APPLICANT                            =   'Project application requires an applicant. None found.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
146
147
ADD_PROJECT_MEMBERS_Q_HELP              =   'Add comma separated user emails, eg. user1@user.com, user2@user.com'
MISSING_IDENTIFIER                      =   'Missing identifier.'
148
149
UNKNOWN_USER_ID                         =   'There is no user identified by %s.'
UNKNOWN_PROJECT_APPLICATION_ID          =   'There is no project application identified by %s.'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
150
UNKNOWN_IDENTIFIER                      =   'Unknown identidier.'
151
152
153
PENDING_MEMBERSHIP_LEAVE                =   'Your request is pending acception.'
USER_JOINED_PROJECT                     =   '%(realname)s has been successfully joined the project.'
USER_LEFT_PROJECT                       =   '%(realname)s has been successfully left the project.'