Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / messages.py @ cbc7a32c

History | View | Annotate | Download (20.3 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 cfb7dd4f Giorgos Korfiatis
import astakos.im.settings as astakos_settings
36 450093ec Kostas Papadimitriou
37 450093ec Kostas Papadimitriou
38 e7cb4085 Kostas Papadimitriou
LOGGED_IN_WARNING                       =   'It seems that you are already logged in.'
39 e7cb4085 Kostas Papadimitriou
ACCOUNT_ALREADY_VERIFIED                =   'This account is already verified.'
40 e7cb4085 Kostas Papadimitriou
ACCOUNT_ALREADY_MODERATED               =   'This account is already moderated.'
41 11a71057 Kostas Papadimitriou
ACCOUNT_ALREADY_ACTIVE                  =   'This account is already active.'
42 e7cb4085 Kostas Papadimitriou
ACCOUNT_REJECTED                        =   'This account has been rejected.'
43 d9907a5e Giorgos Korfiatis
ACCOUNT_NOT_ACTIVE                      =   'User account is not active.'
44 e7cb4085 Kostas Papadimitriou
ACCOUNT_NOT_MODERATED                   =   'User account is not moderated.'
45 e7cb4085 Kostas Papadimitriou
ACCOUNT_NOT_VERIFIED                    =   'User account does not have a verified email address.'
46 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>'
47 11a71057 Kostas Papadimitriou
INACTIVE_ACCOUNT_CHANGE_EMAIL           =   ''.join([ACCOUNT_RESEND_ACTIVATION, ' Or <a href="%(signup_url)s">Send activation to a new email.</a>'])
48 c0b26605 Sofia Papagiannaki
49 11a71057 Kostas Papadimitriou
ACCOUNT_PENDING_ACTIVATION_HELP         =   'An activation email has been sent to you. Make sure you check your spam folder, too.'
50 54831252 Kostas Papadimitriou
51 54831252 Kostas Papadimitriou
ACCOUNT_ACTIVATED                       =   'Congratulations. Your account has' + \
52 758fc8ec Constantinos Venetsanopoulos
                                            ' been activated. You are now logged in.'
53 e7cb4085 Kostas Papadimitriou
ACCOUNT_DEACTIVATED                     =   'Your account is inactive'
54 11a71057 Kostas Papadimitriou
PASSWORD_RESET_DONE                     =   'An email with details on how to change your password has been sent. Please check your Inbox.'
55 11a71057 Kostas Papadimitriou
PASSWORD_RESET_CONFIRM_DONE             =   'Your password has changed successfully. You can now login using your new password.'
56 758fc8ec Constantinos Venetsanopoulos
PASSWORD_CHANGED                        =   'Your new password was set successfully.'
57 c4b1a172 Kostas Papadimitriou
58 9d20fe23 Kostas Papadimitriou
ACCOUNT_RESEND_ACTIVATION               =   'Resend activation email'
59 c4b1a172 Kostas Papadimitriou
ACCOUNT_USER_ACTIVATION_PENDING         =   'You have not followed the activation link'
60 c4b1a172 Kostas Papadimitriou
61 c273dd61 Kostas Papadimitriou
ACCOUNT_UNKNOWN                         =   'There is no such account.'
62 758fc8ec Constantinos Venetsanopoulos
TOKEN_UNKNOWN                           =   'There is no user matching this authentication token.'
63 758fc8ec Constantinos Venetsanopoulos
TOKEN_UPDATED                           =   'Your authentication token has been updated successfully.'
64 ae497612 Olga Brani
65 11a71057 Kostas Papadimitriou
PROFILE_UPDATED                         =   'Your profile has been updated successfully.'
66 758fc8ec Constantinos Venetsanopoulos
FEEDBACK_SENT                           =   'Thank you for contacting us. We will process your message carefully and get back to you.'
67 11a71057 Kostas Papadimitriou
EMAIL_CHANGED                           =   'The email of your account changed successfully.'
68 758fc8ec Constantinos Venetsanopoulos
EMAIL_CHANGE_REGISTERED                 =   'Your request for changing your email has been registered successfully. \
69 758fc8ec Constantinos Venetsanopoulos
                                               A verification email will be sent to your new address.'
70 ae497612 Olga Brani
71 ca7eb408 Olga Brani
OBJECT_CREATED                          =   'The %(verbose_name)s was created successfully.'
72 5cc7d5b3 Giorgos Korfiatis
USER_MEMBERSHIP_REJECTED                =   'Request by %s to join the project has been rejected.'
73 c4b1a172 Kostas Papadimitriou
BILLING_ERROR                           =   'Service response status: %(status)d'
74 11a71057 Kostas Papadimitriou
75 11a71057 Kostas Papadimitriou
GENERIC_ERROR                           =   'Hmm... It seems something bad has happened, and we don\'t know the details right now. \
76 11a71057 Kostas Papadimitriou
                                               Please contact the administrators by email for more details.'
77 11a71057 Kostas Papadimitriou
78 11a71057 Kostas Papadimitriou
MAX_INVITATION_NUMBER_REACHED   =           'You have reached the maximum amount of invitations for your account. No invitations left.'
79 11a71057 Kostas Papadimitriou
GROUP_MAX_PARTICIPANT_NUMBER_REACHED    =   'This Group reached its maximum number of members. No other member can be added.'
80 11a71057 Kostas Papadimitriou
PROJECT_MAX_PARTICIPANT_NUMBER_REACHED  =   'This Project reached its maximum number of members. No other member can be added.'
81 11a71057 Kostas Papadimitriou
NO_APPROVAL_TERMS                       =   'There are no terms of service to approve.'
82 11a71057 Kostas Papadimitriou
PENDING_EMAIL_CHANGE_REQUEST            =   'It seems there is already a pending request for an email change. ' + \
83 758fc8ec Constantinos Venetsanopoulos
                                            'Submitting a new request to change your email will cancel all previous requests.'
84 3cbd5e47 Olga Brani
OBJECT_CREATED_FAILED                   =   'The %(verbose_name)s creation failed: %(reason)s.'
85 11a71057 Kostas Papadimitriou
GROUP_JOIN_FAILURE                      =   'Failed to join this Group.'
86 11a71057 Kostas Papadimitriou
PROJECT_JOIN_FAILURE                    =   'Failed to join this Project.'
87 11a71057 Kostas Papadimitriou
GROUPKIND_UNKNOWN                       =   'The kind of Project you specified does not exist.'
88 11a71057 Kostas Papadimitriou
NOT_MEMBER                              =   'User is not a member of the Project.'
89 11a71057 Kostas Papadimitriou
NOT_OWNER                               =   'User is not the Project\'s owner.'
90 11a71057 Kostas Papadimitriou
OWNER_CANNOT_LEAVE_GROUP                =   'You are the owner of this Project. Owners can not leave their Projects.'
91 ae497612 Olga Brani
92 ae497612 Olga Brani
# Field validation fields
93 ae497612 Olga Brani
REQUIRED_FIELD                          =   'This field is required.'
94 47c2fb43 Constantinos Venetsanopoulos
EMAIL_USED                              =   'There is already an account with this email address.'
95 ae497612 Olga Brani
SHIBBOLETH_EMAIL_USED                   =   'This email is already associated with another shibboleth account.'
96 11a71057 Kostas Papadimitriou
SHIBBOLETH_INACTIVE_ACC                 =   'This email is already associated with an account that is not yet activated. \
97 11a71057 Kostas Papadimitriou
                                               If that is your account, you need to activate it before being able to \
98 11a71057 Kostas Papadimitriou
                                               associate it with this shibboleth account.'
99 758fc8ec Constantinos Venetsanopoulos
SHIBBOLETH_MISSING_EPPN                 =   'Your request is missing a unique ' + \
100 758fc8ec Constantinos Venetsanopoulos
                                            'token. This means your academic ' + \
101 758fc8ec Constantinos Venetsanopoulos
                                            'institution does not yet allow its users to log ' + \
102 758fc8ec Constantinos Venetsanopoulos
                                            'into %(domain)s with their academic ' + \
103 18945296 Kostas Papadimitriou
                                            'account. Please contact %(contact_email)s' + \
104 758fc8ec Constantinos Venetsanopoulos
                                            ' for more information.'
105 11a71057 Kostas Papadimitriou
SHIBBOLETH_MISSING_NAME                 =   'This request is missing the user name.'
106 11a71057 Kostas Papadimitriou
107 11a71057 Kostas Papadimitriou
SIGN_TERMS                              =   'Please, you need to \'Agree with the terms\' before proceeding.'
108 11a71057 Kostas Papadimitriou
CAPTCHA_VALIDATION_ERR                  =   'You have not entered the correct words. Please try again.'
109 758fc8ec Constantinos Venetsanopoulos
SUSPENDED_LOCAL_ACC                     =   'This account does not have a local password. \
110 11a71057 Kostas Papadimitriou
                                               Please try logging in using an external login provider (e.g.: twitter)'
111 11a71057 Kostas Papadimitriou
EMAIL_UNKNOWN                           =   'This email address doesn\'t have an associated user account. \
112 11a71057 Kostas Papadimitriou
                                               Please make sure you have registered, before proceeding.'
113 758fc8ec Constantinos Venetsanopoulos
INVITATION_EMAIL_EXISTS                 =   'An invitation has already been sent to this email.'
114 ae497612 Olga Brani
INVITATION_CONSUMED_ERR                 =   'Invitation is used.'
115 ae497612 Olga Brani
UNKNOWN_USERS                           =   'Unknown users: %s'
116 11a71057 Kostas Papadimitriou
UNIQUE_EMAIL_IS_ACTIVE_CONSTRAIN_ERR    =   'More than one account with the same email & \'is_active\' field. Error.'
117 ae497612 Olga Brani
INVALID_ACTIVATION_KEY                  =   'Invalid activation key.'
118 11a71057 Kostas Papadimitriou
NEW_EMAIL_ADDR_RESERVED                 =   'The new email address you requested is already used by another account. Please provide a different one.'
119 11a71057 Kostas Papadimitriou
EMAIL_RESERVED                          =   'Email: %(email)s is already reserved.'
120 85ad2a86 Giorgos Korfiatis
NO_LOCAL_AUTH                           =   'Only external login providers are enabled for this account. You can not login with a local password.'
121 c0b26605 Sofia Papagiannaki
SWITCH_ACCOUNT_FAILURE                  =   'Account failed to switch. Invalid parameters.'
122 c4b1a172 Kostas Papadimitriou
SWITCH_ACCOUNT_SUCCESS_WITH_PROVIDER    =   'Account failed to switch to %(provider)s.'
123 c0b26605 Sofia Papagiannaki
SWITCH_ACCOUNT_SUCCESS                  =   'Account successfully switched to %(provider)s.'
124 ae497612 Olga Brani
125 ae497612 Olga Brani
# Field help text
126 11a71057 Kostas Papadimitriou
ADD_GROUP_MEMBERS_Q_HELP                =   'Add a comma separated list of user emails, eg. user1@user.com, user2@user.com'
127 11a71057 Kostas Papadimitriou
ASTAKOSUSER_GROUPS_HELP                 =   'In addition to the permissions assigned manually, \
128 11a71057 Kostas Papadimitriou
                                               this user will also get all permissions coming from his/her groups.'
129 ae497612 Olga Brani
130 ae497612 Olga Brani
EMAIL_SEND_ERR                          =   'Failed to send %s.'
131 ae497612 Olga Brani
ADMIN_NOTIFICATION_SEND_ERR             =   EMAIL_SEND_ERR % 'admin notification'
132 ae497612 Olga Brani
VERIFICATION_SEND_ERR                   =   EMAIL_SEND_ERR % 'verification'
133 ae497612 Olga Brani
INVITATION_SEND_ERR                     =   EMAIL_SEND_ERR % 'invitation'
134 ae497612 Olga Brani
GREETING_SEND_ERR                       =   EMAIL_SEND_ERR % 'greeting'
135 ae497612 Olga Brani
FEEDBACK_SEND_ERR                       =   EMAIL_SEND_ERR % 'feedback'
136 8d15889c Sofia Papagiannaki
CHANGE_EMAIL_SEND_ERR                   =   EMAIL_SEND_ERR % 'email change'
137 ae497612 Olga Brani
NOTIFICATION_SEND_ERR                   =   EMAIL_SEND_ERR % 'notification'
138 b8f05f8d Sofia Papagiannaki
DETAILED_NOTIFICATION_SEND_ERR          =   'Failed to send %(subject)s notification to %(recipients)s.'
139 ae497612 Olga Brani
140 11a71057 Kostas Papadimitriou
MISSING_NEXT_PARAMETER                  =   'The next parameter is missing.'
141 ae497612 Olga Brani
142 c0b26605 Sofia Papagiannaki
INVITATION_SENT                         =   'Invitation sent to %(email)s.'
143 11a71057 Kostas Papadimitriou
VERIFICATION_SENT                       =   'Your information has been submitted successfully. A verification email, with an activation link \
144 11a71057 Kostas Papadimitriou
                                               has been sent to the email address you provided. Please follow the activation link on this \
145 11a71057 Kostas Papadimitriou
                                               email to complete the registration process.'
146 e7cb4085 Kostas Papadimitriou
VERIFICATION_FAILED                     =   'Email verification process failed.'
147 11a71057 Kostas Papadimitriou
SWITCH_ACCOUNT_LINK_SENT                =   'This email is already associated with a local account, and a verification email has been sent \
148 11a71057 Kostas Papadimitriou
                                             to %(email)s. To complete the association process, go back to your Inbox and follow the link \
149 11a71057 Kostas Papadimitriou
                                             inside the verification email.'
150 11a71057 Kostas Papadimitriou
NOTIFICATION_SENT                       =   'Your request for an account has been submitted successfully, and is now pending approval. \
151 ae497612 Olga Brani
                                               You will be notified by email in the next few days. \
152 68a81d58 Olga Brani
                                               Thanks for your interest!'
153 11a71057 Kostas Papadimitriou
ACTIVATION_SENT                         =   'An email containing your activation link has been sent to your email address.'
154 c0b26605 Sofia Papagiannaki
155 11a71057 Kostas Papadimitriou
REGISTRATION_COMPLETED                  =   'Your registration completed successfully. You can now login to your new account!'
156 c0b26605 Sofia Papagiannaki
157 c0b26605 Sofia Papagiannaki
NO_RESPONSE                             =   'There is no response.'
158 c0b26605 Sofia Papagiannaki
NOT_ALLOWED_NEXT_PARAM                  =   'Not allowed next parameter.'
159 c0b26605 Sofia Papagiannaki
MISSING_KEY_PARAMETER                   =   'Missing key parameter.'
160 c0b26605 Sofia Papagiannaki
INVALID_KEY_PARAMETER                   =   'Invalid key.'
161 e1a80257 Sofia Papagiannaki
DOMAIN_VALUE_ERR                        =   'Enter a valid domain.'
162 e1a80257 Sofia Papagiannaki
QH_SYNC_ERROR                           =   'Failed to get synchronized with quotaholder.'
163 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.'
164 ccab6eb5 Sofia Papagiannaki
INVALID_PROJECT                         =   'Project %(id)s is invalid.'
165 ccab6eb5 Sofia Papagiannaki
NOT_ALIVE_PROJECT                       =   'Project %(id)s is not alive.'
166 db99f198 Giorgos Korfiatis
NOT_SUSPENDED_PROJECT                   =   'Project %(id)s is not suspended.'
167 2a965273 Sofia Papagiannaki
NOT_ALLOWED                             =   'You do not have the permissions to perform this action.'
168 11a71057 Kostas Papadimitriou
MEMBER_NUMBER_LIMIT_REACHED             =   'You have reached the maximum number of members for this Project.'
169 94777aaf Sofia Papagiannaki
MEMBER_JOIN_POLICY_CLOSED               =   'The Project\'s member join policy is closed.'
170 94777aaf Sofia Papagiannaki
MEMBER_LEAVE_POLICY_CLOSED              =   'The project\'s member leave policy is closed.'
171 11a71057 Kostas Papadimitriou
NOT_MEMBERSHIP_REQUEST                  =   'This is not a valid membership request.'
172 d4fc6292 Giorgos Korfiatis
NOT_ACCEPTED_MEMBERSHIP                 =   'This is not an accepted membership.'
173 11a71057 Kostas Papadimitriou
MEMBERSHIP_REQUEST_EXISTS               =   'The membership request already exists.'
174 758fc8ec Constantinos Venetsanopoulos
NO_APPLICANT                            =   'Project application requires at least one applicant. None found.'
175 758fc8ec Constantinos Venetsanopoulos
INVALID_PROJECT_START_DATE              =   'Project start date should be equal or greater than the current date.'
176 758fc8ec Constantinos Venetsanopoulos
INVALID_PROJECT_END_DATE                =   'Project end date should be equal or greater than than the current date.'
177 758fc8ec Constantinos Venetsanopoulos
INCONSISTENT_PROJECT_DATES              =   'Project end date should be greater than the project start date.'
178 11a71057 Kostas Papadimitriou
ADD_PROJECT_MEMBERS_Q_HELP              =   'Add a comma separated list of user emails, eg. user1@user.com, user2@user.com'
179 3f3dc4b7 Olga Brani
ADD_PROJECT_MEMBERS_Q_PLACEHOLDER       =   '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 5cc7d5b3 Giorgos Korfiatis
USER_MEMBERSHIP_ACCEPTED                =   '%s has been accepted in the project.'
187 5cc7d5b3 Giorgos Korfiatis
USER_MEMBERSHIP_REMOVED                 =   '%s has been removed from the project.'
188 bb6a4465 Giorgos Korfiatis
USER_LEFT_PROJECT                       =   'You have left the project.'
189 bb6a4465 Giorgos Korfiatis
USER_LEAVE_REQUEST_SUBMITTED            =   'Your request to leave the project has been submitted successfully.'
190 bb6a4465 Giorgos Korfiatis
USER_JOIN_REQUEST_SUBMITTED             =   'Your request to join the project has been submitted successfully.'
191 bb6a4465 Giorgos Korfiatis
USER_JOINED_PROJECT                     =   'You have joined the project.'
192 bb6a4465 Giorgos Korfiatis
USER_REQUEST_CANCELLED                  =   'Your request to join the project has been cancelled.'
193 01bdbd17 Giorgos Korfiatis
APPLICATION_CANNOT_APPROVE              =   "Cannot approve application %s in state '%s'"
194 01bdbd17 Giorgos Korfiatis
APPLICATION_CANNOT_DENY                 =   "Cannot deny application %s in state '%s'"
195 01bdbd17 Giorgos Korfiatis
APPLICATION_CANNOT_DISMISS              =   "Cannot dismiss application %s in state '%s'"
196 01bdbd17 Giorgos Korfiatis
APPLICATION_CANNOT_CANCEL               =   "Cannot cancel application %s in state '%s'"
197 84a1d7dd Georgios D. Tsoukalas
APPLICATION_CANCELLED                   =   "Your project application has been cancelled."
198 a75dbd7b Giorgos Korfiatis
199 c7c0ec58 Giorgos Korfiatis
REACHED_PENDING_APPLICATION_LIMIT = ("You have reached the maximum number "
200 c7c0ec58 Giorgos Korfiatis
                                     "of pending project applications: %s.")
201 c7c0ec58 Giorgos Korfiatis
202 c7c0ec58 Giorgos Korfiatis
PENDING_APPLICATION_LIMIT_ADD = \
203 c7c0ec58 Giorgos Korfiatis
    ("You are not allowed to create a new project "
204 c7c0ec58 Giorgos Korfiatis
     "because you have reached the maximum [%s] for "
205 c7c0ec58 Giorgos Korfiatis
     "pending project applications. "
206 c7c0ec58 Giorgos Korfiatis
     "Consider cancelling any unnecessary ones.")
207 c7c0ec58 Giorgos Korfiatis
208 c7c0ec58 Giorgos Korfiatis
PENDING_APPLICATION_LIMIT_MODIFY = \
209 c7c0ec58 Giorgos Korfiatis
    ("You are not allowed to modify this project "
210 c7c0ec58 Giorgos Korfiatis
     "because you have reached the maximum [%s] for "
211 c7c0ec58 Giorgos Korfiatis
     "pending project applications. "
212 c7c0ec58 Giorgos Korfiatis
     "Consider cancelling any unnecessary ones.")
213 01bdbd17 Giorgos Korfiatis
214 c4b1a172 Kostas Papadimitriou
# Auth providers messages
215 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_LOGIN_SUCCESS                  =   "Logged in successfully, using {method_prompt}."
216 cbc7a32c Kostas Papadimitriou
AUTH_PROVIDER_LOGOUT_SUCCESS                 =   "Logged out successfully from {service_name}."
217 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_LOGOUT_SUCCESS_EXTRA           =   "You may still be logged in at {title} though. Consider logging out from there too."
218 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_NOT_ACTIVE                     =   "'{method_prompt}' is disabled."
219 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_ADD_DISABLED                   =   "{method_prompt} is disabled for your account."
220 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_NOT_ACTIVE_FOR_USER            =   "You cannot login using '{method_prompt}'."
221 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_NOT_ACTIVE_FOR_CREATE          =   "Sign up using '{method_prompt}' is disabled."
222 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_NOT_ACTIVE_FOR_ADD             =   "You cannot add {method_prompt}."
223 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_ADDED                          =   "{method_prompt} enabled for this account."
224 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_SWITCHED                       =   "{method_prompt} changed for this account."
225 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_REMOVED                        =   "{method_prompt} removed for this account."
226 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_ADD_FAILED                     =   "Failed to add {method_prompt}."
227 cf40ee90 Kostas Papadimitriou
AUTH_PROVIDER_ADD_EXISTS                     =   "It seems that this '{method_prompt}' is already in use by another account."
228 450093ec Kostas Papadimitriou
AUTH_PROVIDER_LOGIN_TO_ADD                   =   "The new login method will be assigned once you login to your account."
229 450093ec Kostas Papadimitriou
AUTH_PROVIDER_INVALID_LOGIN                  =   "No account exists."
230 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_REQUIRED                       =   "{method_prompt} is required. Add one from your profile page."
231 f777df1d Kostas Papadimitriou
AUTH_PROVIDER_CANNOT_CHANGE_PASSWORD         =   "Changing password is not supported."
232 0e79735c Kostas Papadimitriou
AUTH_PROVIDER_SIGNUP_FROM_LOGIN              =   None
233 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_UNUSABLE_PASSWORD              =   '{method_prompt} is not enabled' \
234 9d20fe23 Kostas Papadimitriou
                                                 ' for your account. You can access your account by logging in with' \
235 9d20fe23 Kostas Papadimitriou
                                                 ' {available_methods_links}.'
236 97246b51 Kostas Papadimitriou
AUTH_PROVIDER_LOGIN_DISABLED                 =   AUTH_PROVIDER_UNUSABLE_PASSWORD
237 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_SIGNUP_FROM_LOGIN              =   ''
238 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_AUTHENTICATION_FAILED          =   'Authentication with this account failed.'
239 9d20fe23 Kostas Papadimitriou
240 9d20fe23 Kostas Papadimitriou
241 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_PENDING_REGISTRATION =  '''A pending registration exists for
242 9d20fe23 Kostas Papadimitriou
{title} account {username}. The email used for the registration is
243 9d20fe23 Kostas Papadimitriou
{user_email}. If you decide to procceed with the signup process once again,
244 9d20fe23 Kostas Papadimitriou
all pending registrations will be deleted.'''
245 9d20fe23 Kostas Papadimitriou
246 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_PENDING_RESEND_ACTIVATION      =   '<a href="{resend_activation_url}">Click here to resend activation email.</a>'
247 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_PENDING_MODERATION             =   'Your account request is pending moderation.'
248 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_PENDING_ACTIVATION             =   'Your account request is pending activation.'
249 e7cb4085 Kostas Papadimitriou
AUTH_PROVIDER_ACCOUNT_INACTIVE               =   'Your account is disabled.'
250 450093ec Kostas Papadimitriou
251 9d20fe23 Kostas Papadimitriou
AUTH_PROVIDER_ADD_TO_EXISTING_ACCOUNT        =   "You can add {method_prompt} to your existing account from your " \
252 9d20fe23 Kostas Papadimitriou
                                                 " <a href='{profile_url}'>profile page</a>"
253 564a2292 Kostas Papadimitriou
254 cfb7dd4f Giorgos Korfiatis
# Email subjects
255 cfb7dd4f Giorgos Korfiatis
_SITENAME = astakos_settings.SITENAME
256 cfb7dd4f Giorgos Korfiatis
INVITATION_EMAIL_SUBJECT = 'Invitation to %s' % _SITENAME
257 cfb7dd4f Giorgos Korfiatis
GREETING_EMAIL_SUBJECT = 'Welcome to %s' % _SITENAME
258 cfb7dd4f Giorgos Korfiatis
FEEDBACK_EMAIL_SUBJECT = 'Feedback from %s' % _SITENAME
259 cfb7dd4f Giorgos Korfiatis
VERIFICATION_EMAIL_SUBJECT = '%s account activation is needed' % _SITENAME
260 cfb7dd4f Giorgos Korfiatis
ACCOUNT_CREATION_SUBJECT = '%s account created (%%(user)s)' % _SITENAME
261 cfb7dd4f Giorgos Korfiatis
HELPDESK_NOTIFICATION_EMAIL_SUBJECT = \
262 cfb7dd4f Giorgos Korfiatis
    '%s account activated (%%(user)s)' % _SITENAME
263 cfb7dd4f Giorgos Korfiatis
EMAIL_CHANGE_EMAIL_SUBJECT = 'Email change on %s ' % _SITENAME
264 cfb7dd4f Giorgos Korfiatis
PASSWORD_RESET_EMAIL_SUBJECT = 'Password reset on %s ' % _SITENAME
265 cfb7dd4f Giorgos Korfiatis
PROJECT_CREATION_SUBJECT = \
266 cfb7dd4f Giorgos Korfiatis
    '%s project application created (%%(name)s)' % _SITENAME
267 cfb7dd4f Giorgos Korfiatis
PROJECT_APPROVED_SUBJECT = \
268 cfb7dd4f Giorgos Korfiatis
    '%s project application approved (%%(name)s)' % _SITENAME
269 cfb7dd4f Giorgos Korfiatis
PROJECT_DENIED_SUBJECT = \
270 cfb7dd4f Giorgos Korfiatis
    '%s project application denied (%%(name)s)' % _SITENAME
271 cfb7dd4f Giorgos Korfiatis
PROJECT_TERMINATION_SUBJECT = \
272 cfb7dd4f Giorgos Korfiatis
    '%s project terminated (%%(name)s)' % _SITENAME
273 cfb7dd4f Giorgos Korfiatis
PROJECT_SUSPENSION_SUBJECT = \
274 cfb7dd4f Giorgos Korfiatis
    '%s project suspended (%%(name)s)' % _SITENAME
275 cfb7dd4f Giorgos Korfiatis
PROJECT_MEMBERSHIP_CHANGE_SUBJECT = \
276 cfb7dd4f Giorgos Korfiatis
    '%s project membership changed (%%(name)s)' % _SITENAME
277 cfb7dd4f Giorgos Korfiatis
PROJECT_MEMBERSHIP_ENROLL_SUBJECT = \
278 cfb7dd4f Giorgos Korfiatis
    '%s project enrollment (%%(name)s)' % _SITENAME
279 cfb7dd4f Giorgos Korfiatis
PROJECT_MEMBERSHIP_REQUEST_SUBJECT = \
280 cfb7dd4f Giorgos Korfiatis
    '%s project membership request (%%(name)s)' % _SITENAME
281 cfb7dd4f Giorgos Korfiatis
PROJECT_MEMBERSHIP_LEAVE_REQUEST_SUBJECT = \
282 cfb7dd4f Giorgos Korfiatis
    '%s project membership leave request (%%(name)s)' % _SITENAME
283 cfb7dd4f Giorgos Korfiatis
284 cfb7dd4f Giorgos Korfiatis
285 450093ec Kostas Papadimitriou
messages = locals().keys()
286 450093ec Kostas Papadimitriou
for msg in messages:
287 450093ec Kostas Papadimitriou
    if msg == msg.upper():
288 450093ec Kostas Papadimitriou
        attr = "ASTAKOS_%s_MESSAGE" % msg
289 450093ec Kostas Papadimitriou
        settings_value = getattr(settings, attr, None)
290 450093ec Kostas Papadimitriou
        if settings_value:
291 badcb2a9 Kostas Papadimitriou
            locals()[msg] = settings_value