Revision 11a71057 snf-astakos-app/astakos/im/messages.py
b/snf-astakos-app/astakos/im/messages.py | ||
---|---|---|
33 | 33 |
|
34 | 34 |
from django.conf import settings |
35 | 35 |
|
36 |
ACCOUNT_AUTHENTICATION_FAILED = 'Cannot authenticate account.'
|
|
37 |
ACCOUNT_ALREADY_ACTIVE = 'Account is already active.'
|
|
38 |
ACCOUNT_PENDING_ACTIVATION = 'Your request is pending activation.' |
|
39 |
ACCOUNT_PENDING_MODERATION = 'Your request is pending moderation.' |
|
36 |
ACCOUNT_AUTHENTICATION_FAILED = 'Authenticate with this account failed.'
|
|
37 |
ACCOUNT_ALREADY_ACTIVE = 'This account is already active.'
|
|
38 |
ACCOUNT_PENDING_ACTIVATION = 'Your account request is pending activation.'
|
|
39 |
ACCOUNT_PENDING_MODERATION = 'Your account request is pending moderation.'
|
|
40 | 40 |
ACCOUNT_INACTIVE = 'Your account is disabled.' |
41 |
ACCOUNT_RESEND_ACTIVATION = 'You have not followed the activation link. <a href="%(send_activation_url)s">Resend activation email?</a>'
|
|
42 |
INACTIVE_ACCOUNT_CHANGE_EMAIL = ''.join([ACCOUNT_RESEND_ACTIVATION, ' or <a href="%(signup_url)s">Provide new email?</a>'])
|
|
41 |
ACCOUNT_RESEND_ACTIVATION = 'It seems that an activation email has been sent to you, but you have not followed the activation link. <a href="%(send_activation_url)s">Resend activation email.</a>'
|
|
42 |
INACTIVE_ACCOUNT_CHANGE_EMAIL = ''.join([ACCOUNT_RESEND_ACTIVATION, ' Or <a href="%(signup_url)s">Send activation to a new email.</a>'])
|
|
43 | 43 |
|
44 |
ACCOUNT_PENDING_ACTIVATION_HELP = 'If you haven\'t received activation email, be sure to check your spam folder.'
|
|
44 |
ACCOUNT_PENDING_ACTIVATION_HELP = 'An activation email has been sent to you. Make sure you check your spam folder, too.'
|
|
45 | 45 |
|
46 | 46 |
ACCOUNT_ACTIVATED = 'Congratulations. Your account has' + \ |
47 | 47 |
' been activated and you have been' + \ |
48 |
' automatically signed in to your account.' |
|
49 |
ALREADY_LOGGED_IN = 'You are already signed in to your account.' |
|
50 |
PASSWORD_RESET_DONE = 'A mail with details on how to change your password was sent.' |
|
51 |
PASSWORD_RESET_CONFIRM_DONE = 'Password changed. You can now login using your new password.' |
|
48 |
' automatically signed in.' |
|
49 |
PASSWORD_RESET_DONE = 'An email with details on how to change your password has been sent. Please check your Inbox.' |
|
50 |
PASSWORD_RESET_CONFIRM_DONE = 'Your password has changed successfully. You can now login using your new password.' |
|
52 | 51 |
|
53 |
ACCOUNT_RESEND_ACTIVATION_PROMPT = 'Resend activation mail' |
|
52 |
ACCOUNT_RESEND_ACTIVATION_PROMPT = 'Resend activation email'
|
|
54 | 53 |
ACCOUNT_USER_ACTIVATION_PENDING = 'You have not followed the activation link' |
55 | 54 |
|
56 |
ACCOUNT_UNKNOWN = 'There is no such account.'
|
|
55 |
ACCOUNT_UNKNOWN = 'It seems there is no account with those .'
|
|
57 | 56 |
TOKEN_UNKNOWN = 'There is no user matching this token.' |
58 | 57 |
|
59 |
PROFILE_UPDATED = 'Profile has been updated successfully.'
|
|
60 |
FEEDBACK_SENT = 'Feedback successfully sent.'
|
|
61 |
EMAIL_CHANGED = 'Account email has been changed successfully.'
|
|
62 |
EMAIL_CHANGE_REGISTERED = 'Change email request has been registered succefully. \
|
|
63 |
You are going to receive a verification email in the new address.'
|
|
58 |
PROFILE_UPDATED = 'Your profile has been updated successfully.'
|
|
59 |
FEEDBACK_SENT = 'Thank you for your feedback. We will process it carefully.'
|
|
60 |
EMAIL_CHANGED = 'The email of your account changed successfully.'
|
|
61 |
EMAIL_CHANGE_REGISTERED = 'Your request for changing your email has been registered succefully. \
|
|
62 |
A verification email at your new address is going to be sent.'
|
|
64 | 63 |
|
65 | 64 |
OBJECT_CREATED = 'The %(verbose_name)s was created successfully.' |
66 |
USER_JOINED_GROUP = '%(realname)s has been successfully joined the group.'
|
|
67 |
USER_LEFT_GROUP = '%(realname)s has been successfully left the group.'
|
|
68 |
USER_MEMBERSHIP_REJECTED = '%(realname)s\'s request to join the group has been rejected.'
|
|
69 |
MEMBER_REMOVED = '%(realname)s has been successfully removed from the group.'
|
|
65 |
USER_JOINED_GROUP = 'User %(realname)s joined the project.'
|
|
66 |
USER_LEFT_GROUP = 'User %(realname)s left the project.'
|
|
67 |
USER_MEMBERSHIP_REJECTED = 'User\'s %(realname)s request to join the project has been rejected.'
|
|
68 |
MEMBER_REMOVED = 'User %(realname)s has been successfully removed from the project.'
|
|
70 | 69 |
BILLING_ERROR = 'Service response status: %(status)d' |
71 |
LOGOUT_SUCCESS = 'You have successfully logged out.'
|
|
72 |
LOGIN_SUCCESS = 'You have successfully logged in.'
|
|
73 |
|
|
74 |
GENERIC_ERROR = 'Something wrong has happened. \
|
|
75 |
Please contact the administrators for more details.' |
|
76 |
|
|
77 |
MAX_INVITATION_NUMBER_REACHED = 'There are no invitations left.'
|
|
78 |
GROUP_MAX_PARTICIPANT_NUMBER_REACHED = 'Group maximum participant number has been reached.'
|
|
79 |
PROJECT_MAX_PARTICIPANT_NUMBER_REACHED = 'Project maximum participant number has been reached.'
|
|
80 |
NO_APPROVAL_TERMS = 'There are no approval terms.'
|
|
81 |
PENDING_EMAIL_CHANGE_REQUEST = 'There is already a pending change email request. ' + \
|
|
82 |
'Submiting a new email will cancel any previous requests.'
|
|
70 |
LOGOUT_SUCCESS = 'You are now logged out.'
|
|
71 |
LOGIN_SUCCESS = 'You are now logged in.'
|
|
72 |
|
|
73 |
GENERIC_ERROR = 'Hmm... It seems something bad has happened, and we don\'t know the details right now. \
|
|
74 |
Please contact the administrators by email for more details.'
|
|
75 |
|
|
76 |
MAX_INVITATION_NUMBER_REACHED = 'You have reached the maximum amount of invitations for your account. No invitations left.'
|
|
77 |
GROUP_MAX_PARTICIPANT_NUMBER_REACHED = 'This Group reached its maximum number of members. No other member can be added.'
|
|
78 |
PROJECT_MAX_PARTICIPANT_NUMBER_REACHED = 'This Project reached its maximum number of members. No other member can be added.'
|
|
79 |
NO_APPROVAL_TERMS = 'There are no terms of service to approve.'
|
|
80 |
PENDING_EMAIL_CHANGE_REQUEST = 'It seems there is already a pending request for an email change. ' + \
|
|
81 |
'Submiting a new request to change your email will cancel all previous requests.'
|
|
83 | 82 |
OBJECT_CREATED_FAILED = 'The %(verbose_name)s creation failed: %(reason)s.' |
84 |
GROUP_JOIN_FAILURE = 'Failed to join group.'
|
|
85 |
PROJECT_JOIN_FAILURE = 'Failed to join project.'
|
|
86 |
GROUPKIND_UNKNOWN = 'There is no such a group kind'
|
|
87 |
NOT_MEMBER = 'User is not member of the group.'
|
|
88 |
NOT_OWNER = 'User is not a group owner.'
|
|
89 |
OWNER_CANNOT_LEAVE_GROUP = 'Owner cannot leave the group.'
|
|
83 |
GROUP_JOIN_FAILURE = 'Failed to join this Group.'
|
|
84 |
PROJECT_JOIN_FAILURE = 'Failed to join this Project.'
|
|
85 |
GROUPKIND_UNKNOWN = 'The kind of Project you specified does not exist.'
|
|
86 |
NOT_MEMBER = 'User is not a member of the Project.'
|
|
87 |
NOT_OWNER = 'User is not the Project\'s owner.'
|
|
88 |
OWNER_CANNOT_LEAVE_GROUP = 'You are the owner of this Project. Owners can not leave their Projects.'
|
|
90 | 89 |
|
91 | 90 |
# Field validation fields |
92 | 91 |
REQUIRED_FIELD = 'This field is required.' |
93 |
EMAIL_USED = 'This email address is already in use. Please supply a different email address.'
|
|
92 |
EMAIL_USED = 'The email address you provided is already in use. Please provide a different email address.'
|
|
94 | 93 |
SHIBBOLETH_EMAIL_USED = 'This email is already associated with another shibboleth account.' |
95 |
SHIBBOLETH_INACTIVE_ACC = 'This email is already associated with an inactive account. \ |
|
96 |
You need to wait to be activated before being able to switch to a shibboleth account.' |
|
97 |
SHIBBOLETH_MISSING_EPPN = 'Your request is missing a unique ' + \ |
|
98 |
'token. This means your academic ' + \ |
|
99 |
'institution does not yet allow its users to log ' + \ |
|
100 |
'into %(domain)s with their academic ' + \ |
|
101 |
'credentials. Please contact %(contact_email)s' + \ |
|
102 |
' for more information.' |
|
103 |
SHIBBOLETH_MISSING_NAME = 'Missing user name in request.' |
|
104 |
|
|
105 |
SIGN_TERMS = 'You have to agree with the terms.' |
|
106 |
CAPTCHA_VALIDATION_ERR = 'You have not entered the correct words.' |
|
107 |
SUSPENDED_LOCAL_ACC = 'Local login is not the current authentication method for this account.' |
|
108 |
UNUSABLE_PASSWORD = 'This account has not a usable password.' |
|
109 |
EMAIL_UNKNOWN = 'That e-mail address doesn\'t have an associated user account. \ |
|
110 |
Are you sure you\'ve registered?' |
|
94 |
SHIBBOLETH_INACTIVE_ACC = 'This email is already associated with an account that is not yet activated. \ |
|
95 |
If that is your account, you need to activate it before being able to \ |
|
96 |
associate it with this shibboleth account.' |
|
97 |
SHIBBOLETH_MISSING_EPPN = 'This request is missing the unique token.' |
|
98 |
SHIBBOLETH_MISSING_NAME = 'This request is missing the user name.' |
|
99 |
|
|
100 |
SIGN_TERMS = 'Please, you need to \'Agree with the terms\' before proceeding.' |
|
101 |
CAPTCHA_VALIDATION_ERR = 'You have not entered the correct words. Please try again.' |
|
102 |
SUSPENDED_LOCAL_ACC = 'You can not login with your local credentials. This account does not have a local password. \ |
|
103 |
Please try logging in using an external login provider (e.g.: twitter)' |
|
104 |
UNUSABLE_PASSWORD = 'You can not use a local password for this account. Only external login providers are enabled.' |
|
105 |
EMAIL_UNKNOWN = 'This email address doesn\'t have an associated user account. \ |
|
106 |
Please make sure you have registered, before proceeding.' |
|
111 | 107 |
INVITATION_EMAIL_EXISTS = 'There is already invitation for this email.' |
112 | 108 |
INVITATION_CONSUMED_ERR = 'Invitation is used.' |
113 | 109 |
UNKNOWN_USERS = 'Unknown users: %s' |
114 |
UNIQUE_EMAIL_IS_ACTIVE_CONSTRAIN_ERR = 'Another account with the same email & is_active combination found.'
|
|
110 |
UNIQUE_EMAIL_IS_ACTIVE_CONSTRAIN_ERR = 'More than one account with the same email & \'is_active\' field. Error.'
|
|
115 | 111 |
INVALID_ACTIVATION_KEY = 'Invalid activation key.' |
116 |
NEW_EMAIL_ADDR_RESERVED = 'The new email address is reserved.'
|
|
117 |
EMAIL_RESERVED = 'Email: %(email)s is reserved'
|
|
118 |
NO_LOCAL_AUTH = 'Local login is not the current authentication method for this account.'
|
|
112 |
NEW_EMAIL_ADDR_RESERVED = 'The new email address you requested is already used by another account. Please provide a different one.'
|
|
113 |
EMAIL_RESERVED = 'Email: %(email)s is already reserved.'
|
|
114 |
NO_LOCAL_AUTH = 'Only external login providers are enabled for this acccount. You can not login with a local password.'
|
|
119 | 115 |
SWITCH_ACCOUNT_FAILURE = 'Account failed to switch. Invalid parameters.' |
120 | 116 |
SWITCH_ACCOUNT_SUCCESS_WITH_PROVIDER = 'Account failed to switch to %(provider)s.' |
121 | 117 |
SWITCH_ACCOUNT_SUCCESS = 'Account successfully switched to %(provider)s.' |
122 | 118 |
|
123 | 119 |
# Field help text |
124 |
ADD_GROUP_MEMBERS_Q_HELP = 'Add comma separated user emails, eg. user1@user.com, user2@user.com'
|
|
125 |
ASTAKOSUSER_GROUPS_HELP = 'In addition to the permissions manually assigned, \
|
|
126 |
this user will also get all permissions granted to each group he/she is in.'
|
|
127 |
EMAIL_CHANGE_NEW_ADDR_HELP = 'Your old email address will be used until you verify your new one.' |
|
120 |
ADD_GROUP_MEMBERS_Q_HELP = 'Add a comma separated list of user emails, eg. user1@user.com, user2@user.com'
|
|
121 |
ASTAKOSUSER_GROUPS_HELP = 'In addition to the permissions assigned manually, \
|
|
122 |
this user will also get all permissions coming from his/her groups.'
|
|
123 |
EMAIL_CHANGE_NEW_ADDR_HELP = 'Your old email address will be used, until you verify your new one.'
|
|
128 | 124 |
|
129 | 125 |
EMAIL_SEND_ERR = 'Failed to send %s.' |
130 | 126 |
ADMIN_NOTIFICATION_SEND_ERR = EMAIL_SEND_ERR % 'admin notification' |
... | ... | |
136 | 132 |
NOTIFICATION_SEND_ERR = EMAIL_SEND_ERR % 'notification' |
137 | 133 |
DETAILED_NOTIFICATION_SEND_ERR = 'Failed to send %(subject)s notification to %(recipients)s.' |
138 | 134 |
|
139 |
MISSING_NEXT_PARAMETER = 'No next parameter'
|
|
135 |
MISSING_NEXT_PARAMETER = 'The next parameter is missing.'
|
|
140 | 136 |
|
141 | 137 |
INVITATION_SENT = 'Invitation sent to %(email)s.' |
142 |
VERIFICATION_SENT = 'Registration completed but account is not active yet. Account activation link was sent to your email address.' |
|
143 |
SWITCH_ACCOUNT_LINK_SENT = 'This email is already associated with another local account. \ |
|
144 |
To change this account to a shibboleth one follow the link in the verification email sent to %(email)s. \ |
|
145 |
Otherwise just ignore it.' |
|
146 |
NOTIFICATION_SENT = 'Your request for an account was successfully received and is now pending approval. \ |
|
138 |
VERIFICATION_SENT = 'Your information has been submitted successfully. A verification email, with an activation link \ |
|
139 |
has been sent to the email address you provided. Please follow the activation link on this \ |
|
140 |
email to complete the registration process.' |
|
141 |
SWITCH_ACCOUNT_LINK_SENT = 'This email is already associated with a local account, and a verification email has been sent \ |
|
142 |
to %(email)s. To complete the association process, go back to your Inbox and follow the link \ |
|
143 |
inside the verification email.' |
|
144 |
NOTIFICATION_SENT = 'Your request for an account has been submitted successfully, and is now pending approval. \ |
|
147 | 145 |
You will be notified by email in the next few days. \ |
148 | 146 |
Thanks for your interest in ~okeanos! The GRNET team.' |
149 |
ACTIVATION_SENT = 'An email containing your activation link was sent to your email address.'
|
|
147 |
ACTIVATION_SENT = 'An email containing your activation link has been sent to your email address.'
|
|
150 | 148 |
|
151 |
REGISTRATION_COMPLETED = 'Registration completed you can now login to your account.'
|
|
149 |
REGISTRATION_COMPLETED = 'Your registration completed successfully. You can now login to your new account!'
|
|
152 | 150 |
|
153 | 151 |
NO_RESPONSE = 'There is no response.' |
154 | 152 |
NOT_ALLOWED_NEXT_PARAM = 'Not allowed next parameter.' |
... | ... | |
160 | 158 |
INVALID_PROJECT = 'Project %(id)s is invalid.' |
161 | 159 |
NOT_ALIVE_PROJECT = 'Project %(id)s is not alive.' |
162 | 160 |
NOT_ALLOWED = 'You do not have the permissions to perform this action.' |
163 |
MEMBER_NUMBER_LIMIT_REACHED = 'Maximum participant number has been reached.'
|
|
164 |
MEMBER_JOIN_POLICY_CLOSED = 'The project member join policy is closed.'
|
|
165 |
MEMBER_LEAVE_POLICY_CLOSED = 'The project member leave policy is closed.'
|
|
166 |
NOT_MEMBERSHIP_REQUEST = 'There is no such a membership request.'
|
|
167 |
MEMBERSHIP_REQUEST_EXISTS = 'There is alreary such a membership request.'
|
|
161 |
MEMBER_NUMBER_LIMIT_REACHED = 'You have reached the maximum number of members for this Project.'
|
|
162 |
MEMBER_JOIN_POLICY_CLOSED = 'The Project\'s member join-policy is closed.'
|
|
163 |
MEMBER_LEAVE_POLICY_CLOSED = 'The project\'s member leave-policy is closed.'
|
|
164 |
NOT_MEMBERSHIP_REQUEST = 'This is not a valid membership request.'
|
|
165 |
MEMBERSHIP_REQUEST_EXISTS = 'The membership request already exists.'
|
|
168 | 166 |
NO_APPLICANT = 'Project application requires an applicant. None found.' |
169 |
ADD_PROJECT_MEMBERS_Q_HELP = 'Add comma separated user emails, eg. user1@user.com, user2@user.com'
|
|
167 |
ADD_PROJECT_MEMBERS_Q_HELP = 'Add a comma separated list of user emails, eg. user1@user.com, user2@user.com'
|
|
170 | 168 |
MISSING_IDENTIFIER = 'Missing identifier.' |
171 | 169 |
UNKNOWN_USER_ID = 'There is no user identified by %s.' |
172 | 170 |
UNKNOWN_PROJECT_APPLICATION_ID = 'There is no project application identified by %s.' |
173 |
UNKNOWN_IDENTIFIER = 'Unknown identidier.'
|
|
174 |
PENDING_MEMBERSHIP_LEAVE = 'Your request is pending acception.'
|
|
175 |
USER_JOINED_PROJECT = '%(realname)s has been successfully joined the project.'
|
|
176 |
USER_LEFT_PROJECT = '%(realname)s has been successfully left the project.'
|
|
171 |
UNKNOWN_IDENTIFIER = 'Unknown identifier.'
|
|
172 |
PENDING_MEMBERSHIP_LEAVE = 'Your request is pending moderation by the Project owner.'
|
|
173 |
USER_JOINED_PROJECT = '%(realname)s has joined the Project.'
|
|
174 |
USER_LEFT_PROJECT = '%(realname)s has left the Project.'
|
|
177 | 175 |
|
178 | 176 |
# Auth providers messages |
179 |
AUTH_PROVIDER_NOT_ACTIVE = "'%(provider)s' is disabled" |
|
180 |
AUTH_PROVIDER_NOT_ACTIVE_FOR_LOGIN = "Login using '%(provider)s' is disabled" |
|
181 |
AUTH_PROVIDER_NOT_ACTIVE_FOR_USER = "You cannot login using '%(provider)s'" |
|
177 |
AUTH_PROVIDER_NOT_ACTIVE = "'%(provider)s' is disabled."
|
|
178 |
AUTH_PROVIDER_NOT_ACTIVE_FOR_LOGIN = "Login using '%(provider)s' is disabled."
|
|
179 |
AUTH_PROVIDER_NOT_ACTIVE_FOR_USER = "You cannot login using '%(provider)s'."
|
|
182 | 180 |
AUTH_PROVIDER_NOT_ACTIVE_FOR_CREATE = "Signup using '%(provider)s' is disabled." |
183 | 181 |
AUTH_PROVIDER_NOT_ACTIVE_FOR_ADD = "You cannot add %(provider)s login method." |
184 | 182 |
AUTH_PROVIDER_ADDED = "New login method added." |
Also available in: Unified diff