Commit b34d5588 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Update messages

parent 9390bc5f
......@@ -33,98 +33,94 @@
from django.conf import settings
ACCOUNT_AUTHENTICATION_FAILED = 'Cannot authenticate account.'
ACCOUNT_ALREADY_ACTIVE = 'Account is already active.'
ACCOUNT_PENDING_ACTIVATION = 'Your request is pending activation.'
ACCOUNT_PENDING_MODERATION = 'Your request is pending moderation.'
ACCOUNT_AUTHENTICATION_FAILED = 'Authenticate with this account failed.'
ACCOUNT_ALREADY_ACTIVE = 'This account is already active.'
ACCOUNT_PENDING_ACTIVATION = 'Your account request is pending activation.'
ACCOUNT_PENDING_MODERATION = 'Your account request is pending moderation.'
ACCOUNT_INACTIVE = 'Your account is disabled.'
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_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>'
INACTIVE_ACCOUNT_CHANGE_EMAIL = ''.join([ACCOUNT_RESEND_ACTIVATION, ' Or <a href="%(signup_url)s">Send activation to a new email.</a>'])
ACCOUNT_PENDING_ACTIVATION_HELP = 'If you haven\'t received activation email, be sure to check your spam folder.'
ACCOUNT_PENDING_ACTIVATION_HELP = 'An activation email has been sent to you. Make sure you check your spam folder, too.'
ACCOUNT_ACTIVATED = 'Congratulations. Your account has' + \
' been activated and you have been' + \
' automatically signed in to your account.'
ALREADY_LOGGED_IN = 'You are already signed in to your account.'
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.'
' automatically signed in.'
PASSWORD_RESET_DONE = 'An email with details on how to change your password has been sent. Please check your Inbox.'
PASSWORD_RESET_CONFIRM_DONE = 'Your password has changed successfully. You can now login using your new password.'
ACCOUNT_RESEND_ACTIVATION_PROMPT = 'Resend activation mail'
ACCOUNT_RESEND_ACTIVATION_PROMPT = 'Resend activation email'
ACCOUNT_USER_ACTIVATION_PENDING = 'You have not followed the activation link'
ACCOUNT_UNKNOWN = 'There is no such account.'
ACCOUNT_UNKNOWN = 'It seems there is no account with those .'
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.'
PROFILE_UPDATED = 'Your profile has been updated successfully.'
FEEDBACK_SENT = 'Thank you for your feedback. We will process it carefully.'
EMAIL_CHANGED = 'The email of your account changed successfully.'
EMAIL_CHANGE_REGISTERED = 'Your request for changing your email has been registered succefully. \
A verification email at your new address is going to be sent.'
OBJECT_CREATED = 'The %(verbose_name)s was created successfully.'
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.'
MEMBER_REMOVED = '%(realname)s has been successfully removed from the group.'
USER_JOINED_GROUP = 'User %(realname)s joined the project.'
USER_LEFT_GROUP = 'User %(realname)s left the project.'
USER_MEMBERSHIP_REJECTED = 'User\'s %(realname)s request to join the project has been rejected.'
MEMBER_REMOVED = 'User %(realname)s has been successfully removed from the project.'
BILLING_ERROR = 'Service response status: %(status)d'
LOGOUT_SUCCESS = 'You have successfully logged out.'
LOGIN_SUCCESS = 'You have successfully logged in.'
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.'
PROJECT_MAX_PARTICIPANT_NUMBER_REACHED = 'Project 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. ' + \
'Submiting a new email will cancel any previous requests.'
LOGOUT_SUCCESS = 'You are now logged out.'
LOGIN_SUCCESS = 'You are now logged in.'
GENERIC_ERROR = 'Hmm... It seems something bad has happened, and we don\'t know the details right now. \
Please contact the administrators by email for more details.'
MAX_INVITATION_NUMBER_REACHED = 'You have reached the maximum amount of invitations for your account. No invitations left.'
GROUP_MAX_PARTICIPANT_NUMBER_REACHED = 'This Group reached its maximum number of members. No other member can be added.'
PROJECT_MAX_PARTICIPANT_NUMBER_REACHED = 'This Project reached its maximum number of members. No other member can be added.'
NO_APPROVAL_TERMS = 'There are no terms of service to approve.'
PENDING_EMAIL_CHANGE_REQUEST = 'It seems there is already a pending request for an email change. ' + \
'Submiting a new request to change your email will cancel all previous requests.'
OBJECT_CREATED_FAILED = 'The %(verbose_name)s creation failed: %(reason)s.'
GROUP_JOIN_FAILURE = 'Failed to join group.'
PROJECT_JOIN_FAILURE = 'Failed to join project.'
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.'
GROUP_JOIN_FAILURE = 'Failed to join this Group.'
PROJECT_JOIN_FAILURE = 'Failed to join this Project.'
GROUPKIND_UNKNOWN = 'The kind of Project you specified does not exist.'
NOT_MEMBER = 'User is not a member of the Project.'
NOT_OWNER = 'User is not the Project\'s owner.'
OWNER_CANNOT_LEAVE_GROUP = 'You are the owner of this Project. Owners can not leave their Projects.'
# Field validation fields
REQUIRED_FIELD = 'This field is required.'
EMAIL_USED = 'This email address is already in use. Please supply a different email address.'
EMAIL_USED = 'The email address you provided is already in use. Please provide 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.'
SHIBBOLETH_MISSING_EPPN = 'Your request is missing a unique ' + \
'token. This means your academic ' + \
'institution does not yet allow its users to log ' + \
'into %(domain)s with their academic ' + \
'credentials. Please contact %(contact_email)s' + \
' for more information.'
SHIBBOLETH_MISSING_NAME = 'Missing user name in request.'
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?'
SHIBBOLETH_INACTIVE_ACC = 'This email is already associated with an account that is not yet activated. \
If that is your account, you need to activate it before being able to \
associate it with this shibboleth account.'
SHIBBOLETH_MISSING_EPPN = 'This request is missing the unique token.'
SHIBBOLETH_MISSING_NAME = 'This request is missing the user name.'
SIGN_TERMS = 'Please, you need to \'Agree with the terms\' before proceeding.'
CAPTCHA_VALIDATION_ERR = 'You have not entered the correct words. Please try again.'
SUSPENDED_LOCAL_ACC = 'You can not login with your local credentials. This account does not have a local password. \
Please try logging in using an external login provider (e.g.: twitter)'
UNUSABLE_PASSWORD = 'You can not use a local password for this account. Only external login providers are enabled.'
EMAIL_UNKNOWN = 'This email address doesn\'t have an associated user account. \
Please make sure you have registered, before proceeding.'
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.'
UNIQUE_EMAIL_IS_ACTIVE_CONSTRAIN_ERR = 'More than one account with the same email & \'is_active\' field. Error.'
INVALID_ACTIVATION_KEY = 'Invalid activation key.'
NEW_EMAIL_ADDR_RESERVED = 'The new email address is reserved.'
EMAIL_RESERVED = 'Email: %(email)s is reserved'
NO_LOCAL_AUTH = 'Local login is not the current authentication method for this account.'
NEW_EMAIL_ADDR_RESERVED = 'The new email address you requested is already used by another account. Please provide a different one.'
EMAIL_RESERVED = 'Email: %(email)s is already reserved.'
NO_LOCAL_AUTH = 'Only external login providers are enabled for this acccount. You can not login with a local password.'
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.'
# 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.'
ADD_GROUP_MEMBERS_Q_HELP = 'Add a comma separated list of user emails, eg. user1@user.com, user2@user.com'
ASTAKOSUSER_GROUPS_HELP = 'In addition to the permissions assigned manually, \
this user will also get all permissions coming from his/her groups.'
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'
......@@ -136,19 +132,21 @@ CHANGE_EMAIL_SEND_ERR = EMAIL_SEND_ERR % 'feedback'
NOTIFICATION_SEND_ERR = EMAIL_SEND_ERR % 'notification'
DETAILED_NOTIFICATION_SEND_ERR = 'Failed to send %(subject)s notification to %(recipients)s.'
MISSING_NEXT_PARAMETER = 'No next parameter'
MISSING_NEXT_PARAMETER = 'The next parameter is missing.'
INVITATION_SENT = 'Invitation sent to %(email)s.'
VERIFICATION_SENT = 'Registration completed but account is not active yet. Account activation link was sent to your email address.'
SWITCH_ACCOUNT_LINK_SENT = 'This email is already associated with another local account. \
To change this account to a shibboleth one follow the link in the verification email sent to %(email)s. \
Otherwise just ignore it.'
NOTIFICATION_SENT = 'Your request for an account was successfully received and is now pending approval. \
VERIFICATION_SENT = 'Your information has been submitted successfully. A verification email, with an activation link \
has been sent to the email address you provided. Please follow the activation link on this \
email to complete the registration process.'
SWITCH_ACCOUNT_LINK_SENT = 'This email is already associated with a local account, and a verification email has been sent \
to %(email)s. To complete the association process, go back to your Inbox and follow the link \
inside the verification email.'
NOTIFICATION_SENT = 'Your request for an account has been submitted successfully, and is now pending approval. \
You will be notified by email in the next few days. \
Thanks for your interest in ~okeanos! The GRNET team.'
ACTIVATION_SENT = 'An email containing your activation link was sent to your email address.'
ACTIVATION_SENT = 'An email containing your activation link has been sent to your email address.'
REGISTRATION_COMPLETED = 'Registration completed you can now login to your account.'
REGISTRATION_COMPLETED = 'Your registration completed successfully. You can now login to your new account!'
NO_RESPONSE = 'There is no response.'
NOT_ALLOWED_NEXT_PARAM = 'Not allowed next parameter.'
......@@ -160,25 +158,25 @@ UNIQUE_PROJECT_NAME_CONSTRAIN_ERR = 'The project name (as specified in i
INVALID_PROJECT = 'Project %(id)s is invalid.'
NOT_ALIVE_PROJECT = 'Project %(id)s is not alive.'
NOT_ALLOWED = 'You do not have the permissions to perform this action.'
MEMBER_NUMBER_LIMIT_REACHED = 'Maximum participant number has been reached.'
MEMBER_JOIN_POLICY_CLOSED = 'The project member join policy is closed.'
MEMBER_LEAVE_POLICY_CLOSED = 'The project member leave policy is closed.'
NOT_MEMBERSHIP_REQUEST = 'There is no such a membership request.'
MEMBERSHIP_REQUEST_EXISTS = 'There is alreary such a membership request.'
MEMBER_NUMBER_LIMIT_REACHED = 'You have reached the maximum number of members for this Project.'
MEMBER_JOIN_POLICY_CLOSED = 'The Project\'s member join-policy is closed.'
MEMBER_LEAVE_POLICY_CLOSED = 'The project\'s member leave-policy is closed.'
NOT_MEMBERSHIP_REQUEST = 'This is not a valid membership request.'
MEMBERSHIP_REQUEST_EXISTS = 'The membership request already exists.'
NO_APPLICANT = 'Project application requires an applicant. None found.'
ADD_PROJECT_MEMBERS_Q_HELP = 'Add comma separated user emails, eg. user1@user.com, user2@user.com'
ADD_PROJECT_MEMBERS_Q_HELP = 'Add a comma separated list of user emails, eg. user1@user.com, user2@user.com'
MISSING_IDENTIFIER = 'Missing identifier.'
UNKNOWN_USER_ID = 'There is no user identified by %s.'
UNKNOWN_PROJECT_APPLICATION_ID = 'There is no project application identified by %s.'
UNKNOWN_IDENTIFIER = 'Unknown identidier.'
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.'
UNKNOWN_IDENTIFIER = 'Unknown identifier.'
PENDING_MEMBERSHIP_LEAVE = 'Your request is pending moderation by the Project owner.'
USER_JOINED_PROJECT = '%(realname)s has joined the Project.'
USER_LEFT_PROJECT = '%(realname)s has left the Project.'
# 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 = "You cannot login using '%(provider)s'"
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 = "You cannot login using '%(provider)s'."
AUTH_PROVIDER_NOT_ACTIVE_FOR_CREATE = "Signup using '%(provider)s' is disabled."
AUTH_PROVIDER_NOT_ACTIVE_FOR_ADD = "You cannot add %(provider)s login method."
AUTH_PROVIDER_ADDED = "New login method added."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment