Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / messages.py @ 674f9a52

History | View | Annotate | Download (7.3 kB)

1
# Copyright 2011-2012 GRNET S.A. All rights reserved.
2
#
3
# Redistribution and use in source and binary forms, with or
4
# without modification, are permitted provided that the following
5
# conditions are met:
6
#
7
#   1. Redistributions of source code must retain the above
8
#      copyright notice, this list of conditions and the following
9
#      disclaimer.
10
#
11
#   2. Redistributions in binary form must reproduce the above
12
#      copyright notice, this list of conditions and the following
13
#      disclaimer in the documentation and/or other materials
14
#      provided with the distribution.
15
#
16
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION HOWEVER CAUSED
24
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN
26
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
# POSSIBILITY OF SUCH DAMAGE.
28
#
29
# The views and conclusions contained in the software and
30
# documentation are those of the authors and should not be
31
# interpreted as representing official policies, either expressed
32
# or implied, of GRNET S.A.
33

    
34
ACCOUNT_AUTHENTICATION_FAILED           =   'Cannot authenticate account.'
35
ACCOUNT_INACTIVE                        =   'Inactive account.'
36
ACCOUNT_ALREADY_ACTIVE                  =   'Account is already active.'
37
TOKEN_UNKNOWN                           =   'There is no user matching this token.'
38

    
39
INVITATION_SENT                         =   'Invitation sent to %(emails.'
40
PROFILE_UPDATED                         =   'Profile has been updated successfully.'
41
FEEDBACK_SENT                           =   'Feedback successfully sent.'
42
EMAIL_CHANGED                           =   'Account email has been changed successfully.'
43
EMAIL_CHANGE_REGISTERED                 =   'Change email request has been registered succefully. \
44
                                               You are going to receive a verification email in the new address.'
45

    
46
OBJECT_CREATED                          =   'The %(verbose_names was created successfully.'
47
MEMBER_JOINED_GROUP                     =   '%(realnames has been successfully joined the group.'
48
MEMBER_REMOVED                          =   '%(realnames has been successfully removed from the group.'
49
BILLING_ERROR                           =   'Service response status: %(status)d' 
50
LOGOUT_SUCCESS                          =   'You have successfully logged out.'
51

    
52
GENERIC_ERROR                           =   'Something wrong has happened. \
53
                                               Please contact the administrators for more details.'
54

    
55
MAX_INVITATION_NUMBER_REACHED   =           'There are no invitations left.'
56
GROUP_MAX_PARTICIPANT_NUMBER_REACHED    =   'Group maximum participant number has been reached.'
57
NO_APPROVAL_TERMS                       =   'There are no approval terms.'
58
PENDING_EMAIL_CHANGE_REQUEST            =   'There is already a pending change email request.'
59
OBJECT_CREATED_FAILED                   =   'The %(verbose_names creation failed: %(reasons.'
60
GROUP_JOIN_FAILURE                      =   'Failed to join group.'
61
GROUPKIND_UNKNOWN                       =   'There is no such a group kind'
62
NOT_MEMBER                              =   'User is not member of the group.'
63
NOT_OWNER                               =   'User is not a group owner.'
64
OWNER_CANNOT_LEAVE_GROUP                =   'Owner cannot leave the group.'
65

    
66
# Field validation fields
67
REQUIRED_FIELD                          =   'This field is required.'
68
EMAIL_USED                              =   'This email address is already in use. Please supply a different email address.'
69
SHIBBOLETH_EMAIL_USED                   =   'This email is already associated with another shibboleth account.'
70
SHIBBOLETH_INACTIVE_ACC                 =   'This email is already associated with an inactive account. \
71
                                               You need to wait to be activated before being able to switch to a shibboleth account.'   
72

    
73
SIGN_TERMS                              =   'You have to agree with the terms.'
74
CAPTCHA_VALIDATION_ERR                  =   'You have not entered the correct words.'
75
SUSPENDED_LOCAL_ACC                     =   'Local login is not the current authentication method for this account.'
76
UNUSABLE_PASSWORD                       =   'This account has not a usable password.'
77
EMAIL_UNKNOWN                           =   'That e-mail address doesn\'t have an associated user account. \
78
                                               Are you sure you\'ve registered?'
79
INVITATION_EMAIL_EXISTS                 =   'There is already invitation for this email.'
80
INVITATION_CONSUMED_ERR                 =   'Invitation is used.'
81
UNKNOWN_USERS                           =   'Unknown users: %s'
82
UNIQUE_EMAIL_IS_ACTIVE_CONSTRAIN_ERR    =   'Another account with the same email & is_active combination found.'
83
INVALID_ACTIVATION_KEY                  =   'Invalid activation key.'
84
NEW_EMAIL_ADDR_RESERVED                 =   'The new email address is reserved.'
85
EMAIL_RESERVED                          =   'Email: %(email)s is reserved'
86

    
87
# Field help text
88
ADD_GROUP_MEMBERS_Q_HELP                =   'Add comma separated user emails, eg. user1@user.com, user2@user.com'
89
ASTAKOSUSER_GROUPS_HELP                 =   'In addition to the permissions manually assigned, \
90
                                               this user will also get all permissions granted to each group he/she is in.'
91
EMAIL_CHANGE_NEW_ADDR_HELP              =   'Your old email address will be used until you verify your new one.'
92

    
93
EMAIL_SEND_ERR                          =   'Failed to send %s.'
94
ADMIN_NOTIFICATION_SEND_ERR             =   EMAIL_SEND_ERR % 'admin notification'
95
VERIFICATION_SEND_ERR                   =   EMAIL_SEND_ERR % 'verification'
96
INVITATION_SEND_ERR                     =   EMAIL_SEND_ERR % 'invitation'
97
GREETING_SEND_ERR                       =   EMAIL_SEND_ERR % 'greeting'
98
FEEDBACK_SEND_ERR                       =   EMAIL_SEND_ERR % 'feedback'
99
CHANGE_EMAIL_SEND_ERR                   =   EMAIL_SEND_ERR % 'feedback'
100
NOTIFICATION_SEND_ERR                   =   EMAIL_SEND_ERR % 'notification'
101

    
102

    
103
MISSING_NEXT_PARAMETER                  =   'No next parameter'
104

    
105
VERIFICATION_SENT                       =   'Verification sent.'
106

    
107
SWITCH_ACCOUNT_LINK_SENT                =   'This email is already associated with another local account. \
108
                                               To change this account to a shibboleth one follow the link in the verification email sent to %(emails. \
109
                                               Otherwise just ignore it.'
110
NOTIFACATION_SENT                       =   'Your request for an account was successfully received and is now pending approval. \
111
                                               You will be notified by email in the next few days. \
112
                                               Thanks for your interest in ~okeanos! The GRNET team.'
113
REGISTRATION_COMPLETED                  =   'Registration completed. You can now login.'