root / snf-astakos-app / astakos / im / messages.py @ 7deaaa5f
History | View | Annotate | Download (16 kB)
1 | ae497612 | Olga Brani | # Copyright 2011-2012 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | ae497612 | Olga Brani | #
|
3 | ae497612 | Olga Brani | # Redistribution and use in source and binary forms, with or
|
4 | ae497612 | Olga Brani | # without modification, are permitted provided that the following
|
5 | ae497612 | Olga Brani | # conditions are met:
|
6 | ae497612 | Olga Brani | #
|
7 | ae497612 | Olga Brani | # 1. Redistributions of source code must retain the above
|
8 | ae497612 | Olga Brani | # copyright notice, this list of conditions and the following
|
9 | ae497612 | Olga Brani | # disclaimer.
|
10 | ae497612 | Olga Brani | #
|
11 | ae497612 | Olga Brani | # 2. Redistributions in binary form must reproduce the above
|
12 | ae497612 | Olga Brani | # copyright notice, this list of conditions and the following
|
13 | ae497612 | Olga Brani | # disclaimer in the documentation and/or other materials
|
14 | ae497612 | Olga Brani | # provided with the distribution.
|
15 | ae497612 | Olga Brani | #
|
16 | ae497612 | Olga Brani | # THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
17 | ae497612 | Olga Brani | # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18 | ae497612 | Olga Brani | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
19 | ae497612 | Olga Brani | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
20 | ae497612 | Olga Brani | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21 | ae497612 | Olga Brani | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 | ae497612 | Olga Brani | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
23 | ae497612 | Olga Brani | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION HOWEVER CAUSED
|
24 | ae497612 | Olga Brani | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
25 | ae497612 | Olga Brani | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN
|
26 | ae497612 | Olga Brani | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
27 | ae497612 | Olga Brani | # POSSIBILITY OF SUCH DAMAGE.
|
28 | ae497612 | Olga Brani | #
|
29 | ae497612 | Olga Brani | # The views and conclusions contained in the software and
|
30 | ae497612 | Olga Brani | # documentation are those of the authors and should not be
|
31 | ae497612 | Olga Brani | # interpreted as representing official policies, either expressed
|
32 | ae497612 | Olga Brani | # or implied, of GRNET S.A.
|
33 | ae497612 | Olga Brani | |
34 | 450093ec | Kostas Papadimitriou | from django.conf import settings |
35 | 450093ec | Kostas Papadimitriou | |
36 | 11a71057 | Kostas Papadimitriou | ACCOUNT_AUTHENTICATION_FAILED = 'Authenticate with this account failed.'
|
37 | 11a71057 | Kostas Papadimitriou | ACCOUNT_ALREADY_ACTIVE = 'This account is already active.'
|
38 | 11a71057 | Kostas Papadimitriou | ACCOUNT_PENDING_ACTIVATION = 'Your account request is pending activation.'
|
39 | 11a71057 | Kostas Papadimitriou | ACCOUNT_PENDING_MODERATION = 'Your account request is pending moderation.'
|
40 | c4b1a172 | Kostas Papadimitriou | ACCOUNT_INACTIVE = 'Your account is disabled.'
|
41 | 11a71057 | Kostas Papadimitriou | 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 | 11a71057 | Kostas Papadimitriou | INACTIVE_ACCOUNT_CHANGE_EMAIL = ''.join([ACCOUNT_RESEND_ACTIVATION, ' Or <a href="%(signup_url)s">Send activation to a new email.</a>']) |
43 | c0b26605 | Sofia Papagiannaki | |
44 | 11a71057 | Kostas Papadimitriou | ACCOUNT_PENDING_ACTIVATION_HELP = 'An activation email has been sent to you. Make sure you check your spam folder, too.'
|
45 | 54831252 | Kostas Papadimitriou | |
46 | 54831252 | Kostas Papadimitriou | ACCOUNT_ACTIVATED = 'Congratulations. Your account has' + \
|
47 | 54831252 | Kostas Papadimitriou | ' been activated and you have been' + \
|
48 | 11a71057 | Kostas Papadimitriou | ' automatically signed in.'
|
49 | 11a71057 | Kostas Papadimitriou | PASSWORD_RESET_DONE = 'An email with details on how to change your password has been sent. Please check your Inbox.'
|
50 | 11a71057 | Kostas Papadimitriou | PASSWORD_RESET_CONFIRM_DONE = 'Your password has changed successfully. You can now login using your new password.'
|
51 | 2da6f56b | Kostas Papadimitriou | PASSWORD_CHANGED = 'Your new password is set.'
|
52 | c4b1a172 | Kostas Papadimitriou | |
53 | 11a71057 | Kostas Papadimitriou | ACCOUNT_RESEND_ACTIVATION_PROMPT = 'Resend activation email'
|
54 | c4b1a172 | Kostas Papadimitriou | ACCOUNT_USER_ACTIVATION_PENDING = 'You have not followed the activation link'
|
55 | c4b1a172 | Kostas Papadimitriou | |
56 | 11a71057 | Kostas Papadimitriou | ACCOUNT_UNKNOWN = 'It seems there is no account with those .'
|
57 | ae497612 | Olga Brani | TOKEN_UNKNOWN = 'There is no user matching this token.'
|
58 | 0504f010 | Kostas Papadimitriou | TOKEN_UPDATED = 'Your ~okeanos account token was updated.'
|
59 | ae497612 | Olga Brani | |
60 | 11a71057 | Kostas Papadimitriou | PROFILE_UPDATED = 'Your profile has been updated successfully.'
|
61 | 11a71057 | Kostas Papadimitriou | FEEDBACK_SENT = 'Thank you for your feedback. We will process it carefully.'
|
62 | 11a71057 | Kostas Papadimitriou | EMAIL_CHANGED = 'The email of your account changed successfully.'
|
63 | 11a71057 | Kostas Papadimitriou | EMAIL_CHANGE_REGISTERED = 'Your request for changing your email has been registered succefully. \
|
64 | 11a71057 | Kostas Papadimitriou | A verification email at your new address is going to be sent.'
|
65 | ae497612 | Olga Brani | |
66 | ca7eb408 | Olga Brani | OBJECT_CREATED = 'The %(verbose_name)s was created successfully.'
|
67 | 11a71057 | Kostas Papadimitriou | USER_JOINED_GROUP = 'User %(realname)s joined the project.'
|
68 | 11a71057 | Kostas Papadimitriou | USER_LEFT_GROUP = 'User %(realname)s left the project.'
|
69 | 11a71057 | Kostas Papadimitriou | USER_MEMBERSHIP_REJECTED = 'User\'s %(realname)s request to join the project has been rejected.'
|
70 | 11a71057 | Kostas Papadimitriou | MEMBER_REMOVED = 'User %(realname)s has been successfully removed from the project.'
|
71 | c4b1a172 | Kostas Papadimitriou | BILLING_ERROR = 'Service response status: %(status)d'
|
72 | 9c73d218 | Kostas Papadimitriou | LOGOUT_SUCCESS = 'Logged out from ~okeanos.'
|
73 | 9c73d218 | Kostas Papadimitriou | LOGIN_SUCCESS = 'You are logged in to ~okeanos with your %s account.'
|
74 | 9c73d218 | Kostas Papadimitriou | LOCAL_LOGIN_SUCCESS = 'You are logged in to your ~okeanos account.'
|
75 | 11a71057 | Kostas Papadimitriou | |
76 | 11a71057 | Kostas Papadimitriou | GENERIC_ERROR = 'Hmm... It seems something bad has happened, and we don\'t know the details right now. \
|
77 | 11a71057 | Kostas Papadimitriou | Please contact the administrators by email for more details.'
|
78 | 11a71057 | Kostas Papadimitriou | |
79 | 11a71057 | Kostas Papadimitriou | MAX_INVITATION_NUMBER_REACHED = 'You have reached the maximum amount of invitations for your account. No invitations left.'
|
80 | 11a71057 | Kostas Papadimitriou | GROUP_MAX_PARTICIPANT_NUMBER_REACHED = 'This Group reached its maximum number of members. No other member can be added.'
|
81 | 11a71057 | Kostas Papadimitriou | PROJECT_MAX_PARTICIPANT_NUMBER_REACHED = 'This Project reached its maximum number of members. No other member can be added.'
|
82 | 11a71057 | Kostas Papadimitriou | NO_APPROVAL_TERMS = 'There are no terms of service to approve.'
|
83 | 11a71057 | Kostas Papadimitriou | PENDING_EMAIL_CHANGE_REQUEST = 'It seems there is already a pending request for an email change. ' + \
|
84 | 11a71057 | Kostas Papadimitriou | 'Submiting a new request to change your email will cancel all previous requests.'
|
85 | 3cbd5e47 | Olga Brani | OBJECT_CREATED_FAILED = 'The %(verbose_name)s creation failed: %(reason)s.'
|
86 | 11a71057 | Kostas Papadimitriou | GROUP_JOIN_FAILURE = 'Failed to join this Group.'
|
87 | 11a71057 | Kostas Papadimitriou | PROJECT_JOIN_FAILURE = 'Failed to join this Project.'
|
88 | 11a71057 | Kostas Papadimitriou | GROUPKIND_UNKNOWN = 'The kind of Project you specified does not exist.'
|
89 | 11a71057 | Kostas Papadimitriou | NOT_MEMBER = 'User is not a member of the Project.'
|
90 | 11a71057 | Kostas Papadimitriou | NOT_OWNER = 'User is not the Project\'s owner.'
|
91 | 11a71057 | Kostas Papadimitriou | OWNER_CANNOT_LEAVE_GROUP = 'You are the owner of this Project. Owners can not leave their Projects.'
|
92 | ae497612 | Olga Brani | |
93 | ae497612 | Olga Brani | # Field validation fields
|
94 | ae497612 | Olga Brani | REQUIRED_FIELD = 'This field is required.'
|
95 | 11a71057 | Kostas Papadimitriou | EMAIL_USED = 'The email address you provided is already in use. Please provide a different email address.'
|
96 | ae497612 | Olga Brani | SHIBBOLETH_EMAIL_USED = 'This email is already associated with another shibboleth account.'
|
97 | 11a71057 | Kostas Papadimitriou | SHIBBOLETH_INACTIVE_ACC = 'This email is already associated with an account that is not yet activated. \
|
98 | 11a71057 | Kostas Papadimitriou | If that is your account, you need to activate it before being able to \
|
99 | 11a71057 | Kostas Papadimitriou | associate it with this shibboleth account.'
|
100 | f777df1d | Kostas Papadimitriou | SHIBBOLETH_MISSING_EPPN = 'Your request is missing a unique ' + \
|
101 | f777df1d | Kostas Papadimitriou | 'token. This means your academic ' + \
|
102 | f777df1d | Kostas Papadimitriou | 'institution does not yet allow its users to log ' + \
|
103 | f777df1d | Kostas Papadimitriou | 'into %(domain)s with their academic ' + \
|
104 | f777df1d | Kostas Papadimitriou | 'credentials. Please contact %(contact_email)s' + \
|
105 | f777df1d | Kostas Papadimitriou | ' for more information.'
|
106 | 11a71057 | Kostas Papadimitriou | SHIBBOLETH_MISSING_NAME = 'This request is missing the user name.'
|
107 | 11a71057 | Kostas Papadimitriou | |
108 | 11a71057 | Kostas Papadimitriou | SIGN_TERMS = 'Please, you need to \'Agree with the terms\' before proceeding.'
|
109 | 11a71057 | Kostas Papadimitriou | CAPTCHA_VALIDATION_ERR = 'You have not entered the correct words. Please try again.'
|
110 | 11a71057 | Kostas Papadimitriou | SUSPENDED_LOCAL_ACC = 'You can not login with your local credentials. This account does not have a local password. \
|
111 | 11a71057 | Kostas Papadimitriou | Please try logging in using an external login provider (e.g.: twitter)'
|
112 | 11a71057 | Kostas Papadimitriou | UNUSABLE_PASSWORD = 'You can not use a local password for this account. Only external login providers are enabled.'
|
113 | 11a71057 | Kostas Papadimitriou | EMAIL_UNKNOWN = 'This email address doesn\'t have an associated user account. \
|
114 | 11a71057 | Kostas Papadimitriou | Please make sure you have registered, before proceeding.'
|
115 | ae497612 | Olga Brani | INVITATION_EMAIL_EXISTS = 'There is already invitation for this email.'
|
116 | ae497612 | Olga Brani | INVITATION_CONSUMED_ERR = 'Invitation is used.'
|
117 | ae497612 | Olga Brani | UNKNOWN_USERS = 'Unknown users: %s'
|
118 | 11a71057 | Kostas Papadimitriou | UNIQUE_EMAIL_IS_ACTIVE_CONSTRAIN_ERR = 'More than one account with the same email & \'is_active\' field. Error.'
|
119 | ae497612 | Olga Brani | INVALID_ACTIVATION_KEY = 'Invalid activation key.'
|
120 | 11a71057 | Kostas Papadimitriou | NEW_EMAIL_ADDR_RESERVED = 'The new email address you requested is already used by another account. Please provide a different one.'
|
121 | 11a71057 | Kostas Papadimitriou | EMAIL_RESERVED = 'Email: %(email)s is already reserved.'
|
122 | 11a71057 | Kostas Papadimitriou | NO_LOCAL_AUTH = 'Only external login providers are enabled for this acccount. You can not login with a local password.'
|
123 | c0b26605 | Sofia Papagiannaki | SWITCH_ACCOUNT_FAILURE = 'Account failed to switch. Invalid parameters.'
|
124 | c4b1a172 | Kostas Papadimitriou | SWITCH_ACCOUNT_SUCCESS_WITH_PROVIDER = 'Account failed to switch to %(provider)s.'
|
125 | c0b26605 | Sofia Papagiannaki | SWITCH_ACCOUNT_SUCCESS = 'Account successfully switched to %(provider)s.'
|
126 | ae497612 | Olga Brani | |
127 | ae497612 | Olga Brani | # Field help text
|
128 | 11a71057 | Kostas Papadimitriou | ADD_GROUP_MEMBERS_Q_HELP = 'Add a comma separated list of user emails, eg. user1@user.com, user2@user.com'
|
129 | 11a71057 | Kostas Papadimitriou | ASTAKOSUSER_GROUPS_HELP = 'In addition to the permissions assigned manually, \
|
130 | 11a71057 | Kostas Papadimitriou | this user will also get all permissions coming from his/her groups.'
|
131 | 11a71057 | Kostas Papadimitriou | EMAIL_CHANGE_NEW_ADDR_HELP = 'Your old email address will be used, until you verify your new one.'
|
132 | ae497612 | Olga Brani | |
133 | ae497612 | Olga Brani | EMAIL_SEND_ERR = 'Failed to send %s.'
|
134 | ae497612 | Olga Brani | ADMIN_NOTIFICATION_SEND_ERR = EMAIL_SEND_ERR % 'admin notification'
|
135 | ae497612 | Olga Brani | VERIFICATION_SEND_ERR = EMAIL_SEND_ERR % 'verification'
|
136 | ae497612 | Olga Brani | INVITATION_SEND_ERR = EMAIL_SEND_ERR % 'invitation'
|
137 | ae497612 | Olga Brani | GREETING_SEND_ERR = EMAIL_SEND_ERR % 'greeting'
|
138 | ae497612 | Olga Brani | FEEDBACK_SEND_ERR = EMAIL_SEND_ERR % 'feedback'
|
139 | ae497612 | Olga Brani | CHANGE_EMAIL_SEND_ERR = EMAIL_SEND_ERR % 'feedback'
|
140 | ae497612 | Olga Brani | NOTIFICATION_SEND_ERR = EMAIL_SEND_ERR % 'notification'
|
141 | b8f05f8d | Sofia Papagiannaki | DETAILED_NOTIFICATION_SEND_ERR = 'Failed to send %(subject)s notification to %(recipients)s.'
|
142 | ae497612 | Olga Brani | |
143 | 11a71057 | Kostas Papadimitriou | MISSING_NEXT_PARAMETER = 'The next parameter is missing.'
|
144 | ae497612 | Olga Brani | |
145 | c0b26605 | Sofia Papagiannaki | INVITATION_SENT = 'Invitation sent to %(email)s.'
|
146 | 11a71057 | Kostas Papadimitriou | VERIFICATION_SENT = 'Your information has been submitted successfully. A verification email, with an activation link \
|
147 | 11a71057 | Kostas Papadimitriou | has been sent to the email address you provided. Please follow the activation link on this \
|
148 | 11a71057 | Kostas Papadimitriou | email to complete the registration process.'
|
149 | 11a71057 | Kostas Papadimitriou | SWITCH_ACCOUNT_LINK_SENT = 'This email is already associated with a local account, and a verification email has been sent \
|
150 | 11a71057 | Kostas Papadimitriou | to %(email)s. To complete the association process, go back to your Inbox and follow the link \
|
151 | 11a71057 | Kostas Papadimitriou | inside the verification email.'
|
152 | 11a71057 | Kostas Papadimitriou | NOTIFICATION_SENT = 'Your request for an account has been submitted successfully, and is now pending approval. \
|
153 | ae497612 | Olga Brani | You will be notified by email in the next few days. \
|
154 | ae497612 | Olga Brani | Thanks for your interest in ~okeanos! The GRNET team.'
|
155 | 11a71057 | Kostas Papadimitriou | ACTIVATION_SENT = 'An email containing your activation link has been sent to your email address.'
|
156 | c0b26605 | Sofia Papagiannaki | |
157 | 11a71057 | Kostas Papadimitriou | REGISTRATION_COMPLETED = 'Your registration completed successfully. You can now login to your new account!'
|
158 | c0b26605 | Sofia Papagiannaki | |
159 | c0b26605 | Sofia Papagiannaki | NO_RESPONSE = 'There is no response.'
|
160 | c0b26605 | Sofia Papagiannaki | NOT_ALLOWED_NEXT_PARAM = 'Not allowed next parameter.'
|
161 | c0b26605 | Sofia Papagiannaki | MISSING_KEY_PARAMETER = 'Missing key parameter.'
|
162 | c0b26605 | Sofia Papagiannaki | INVALID_KEY_PARAMETER = 'Invalid key.'
|
163 | e1a80257 | Sofia Papagiannaki | DOMAIN_VALUE_ERR = 'Enter a valid domain.'
|
164 | e1a80257 | Sofia Papagiannaki | QH_SYNC_ERROR = 'Failed to get synchronized with quotaholder.'
|
165 | e1a80257 | Sofia Papagiannaki | UNIQUE_PROJECT_NAME_CONSTRAIN_ERR = 'The project name (as specified in its application\'s definition) must be unique among all active projects.'
|
166 | ccab6eb5 | Sofia Papagiannaki | INVALID_PROJECT = 'Project %(id)s is invalid.'
|
167 | ccab6eb5 | Sofia Papagiannaki | NOT_ALIVE_PROJECT = 'Project %(id)s is not alive.'
|
168 | db99f198 | Giorgos Korfiatis | NOT_SUSPENDED_PROJECT = 'Project %(id)s is not suspended.'
|
169 | 2a965273 | Sofia Papagiannaki | NOT_ALLOWED = 'You do not have the permissions to perform this action.'
|
170 | 11a71057 | Kostas Papadimitriou | MEMBER_NUMBER_LIMIT_REACHED = 'You have reached the maximum number of members for this Project.'
|
171 | 94777aaf | Sofia Papagiannaki | MEMBER_JOIN_POLICY_CLOSED = 'The Project\'s member join policy is closed.'
|
172 | 94777aaf | Sofia Papagiannaki | MEMBER_LEAVE_POLICY_CLOSED = 'The project\'s member leave policy is closed.'
|
173 | 11a71057 | Kostas Papadimitriou | NOT_MEMBERSHIP_REQUEST = 'This is not a valid membership request.'
|
174 | 11a71057 | Kostas Papadimitriou | MEMBERSHIP_REQUEST_EXISTS = 'The membership request already exists.'
|
175 | ccab6eb5 | Sofia Papagiannaki | NO_APPLICANT = 'Project application requires an applicant. None found.'
|
176 | 69b26576 | Sofia Papagiannaki | INVALID_PROJECT_START_DATE = 'Project start date should be equal or greater than the current date'
|
177 | 69b26576 | Sofia Papagiannaki | INVALID_PROJECT_END_DATE = 'Project end date should be equal or greater than than the current date'
|
178 | 69b26576 | Sofia Papagiannaki | INCONSISTENT_PROJECT_DATES = 'Project end date should be greater than the project start date'
|
179 | 11a71057 | Kostas Papadimitriou | ADD_PROJECT_MEMBERS_Q_HELP = 'Add a comma separated list of user emails, eg. user1@user.com, user2@user.com'
|
180 | bfe23b13 | Sofia Papagiannaki | MISSING_IDENTIFIER = 'Missing identifier.'
|
181 | 73fbaec4 | Sofia Papagiannaki | UNKNOWN_USER_ID = 'There is no user identified by %s.'
|
182 | 73fbaec4 | Sofia Papagiannaki | UNKNOWN_PROJECT_APPLICATION_ID = 'There is no project application identified by %s.'
|
183 | eb9ff37a | Sofia Papagiannaki | UNKNOWN_PROJECT_ID = 'There is no project identified by %s.'
|
184 | 11a71057 | Kostas Papadimitriou | UNKNOWN_IDENTIFIER = 'Unknown identifier.'
|
185 | 11a71057 | Kostas Papadimitriou | PENDING_MEMBERSHIP_LEAVE = 'Your request is pending moderation by the Project owner.'
|
186 | 11a71057 | Kostas Papadimitriou | USER_JOINED_PROJECT = '%(realname)s has joined the Project.'
|
187 | 11a71057 | Kostas Papadimitriou | USER_LEFT_PROJECT = '%(realname)s has left the Project.'
|
188 | f807da72 | Kostas Papadimitriou | USER_JOIN_REQUEST_SUBMITED = 'Join request submitted.'
|
189 | c4b1a172 | Kostas Papadimitriou | |
190 | c4b1a172 | Kostas Papadimitriou | # Auth providers messages
|
191 | 11a71057 | Kostas Papadimitriou | AUTH_PROVIDER_NOT_ACTIVE = "'%(provider)s' is disabled."
|
192 | 11a71057 | Kostas Papadimitriou | AUTH_PROVIDER_NOT_ACTIVE_FOR_LOGIN = "Login using '%(provider)s' is disabled."
|
193 | 11a71057 | Kostas Papadimitriou | AUTH_PROVIDER_NOT_ACTIVE_FOR_USER = "You cannot login using '%(provider)s'."
|
194 | 450093ec | Kostas Papadimitriou | AUTH_PROVIDER_NOT_ACTIVE_FOR_CREATE = "Signup using '%(provider)s' is disabled."
|
195 | 450093ec | Kostas Papadimitriou | AUTH_PROVIDER_NOT_ACTIVE_FOR_ADD = "You cannot add %(provider)s login method."
|
196 | 16f89c1f | Kostas Papadimitriou | AUTH_PROVIDER_ADDED = "New login method added."
|
197 | 16f89c1f | Kostas Papadimitriou | AUTH_PROVIDER_ADD_FAILED = "Failed to add new login method."
|
198 | 4a1e3e53 | Kostas Papadimitriou | AUTH_PROVIDER_ADD_EXISTS = "Account already assigned to another user."
|
199 | 450093ec | Kostas Papadimitriou | AUTH_PROVIDER_LOGIN_TO_ADD = "The new login method will be assigned once you login to your account."
|
200 | 450093ec | Kostas Papadimitriou | AUTH_PROVIDER_INVALID_LOGIN = "No account exists."
|
201 | badcb2a9 | Kostas Papadimitriou | AUTH_PROVIDER_REQUIRED = "%(provider)s login method is required. Add one from your profile page."
|
202 | f777df1d | Kostas Papadimitriou | AUTH_PROVIDER_CANNOT_CHANGE_PASSWORD = "Changing password is not supported."
|
203 | 450093ec | Kostas Papadimitriou | |
204 | 564a2292 | Kostas Papadimitriou | EXISTING_EMAIL_THIRD_PARTY_NOTIFICATION = "You can add '%s' login method to your existing account from your " \
|
205 | 564a2292 | Kostas Papadimitriou | " <a href='%s'>profile page</a>"
|
206 | 564a2292 | Kostas Papadimitriou | |
207 | 450093ec | Kostas Papadimitriou | messages = locals().keys()
|
208 | 450093ec | Kostas Papadimitriou | for msg in messages: |
209 | 450093ec | Kostas Papadimitriou | if msg == msg.upper():
|
210 | 450093ec | Kostas Papadimitriou | attr = "ASTAKOS_%s_MESSAGE" % msg
|
211 | 450093ec | Kostas Papadimitriou | settings_value = getattr(settings, attr, None) |
212 | 450093ec | Kostas Papadimitriou | if settings_value:
|
213 | badcb2a9 | Kostas Papadimitriou | locals()[msg] = settings_value |