~diegosarmentero/ubuntu-sso-client/forgotten-link

« back to all changes in this revision

Viewing changes to ubuntu_sso/utils/ui.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2012-03-06 14:13:10 UTC
  • mfrom: (897.3.10 login-titles)
  • Revision ID: tarmac-20120306141310-ugrtkwrepupaavrs
- Add proper titles and subtitles for the Login and Forgot password pages
  (LP: #945061).
- Made UI modules to setup the gui logging logger (LP: #947469).

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
CAPTCHA_REQUIRED_ERROR = _('The captcha is a required field')
46
46
CLOSE_AND_SETUP_LATER = _('Close window and setup later')
47
47
CONGRATULATIONS = _("Congratulations, {app_name} is installed!")
48
 
CONNECT_HELP_LABEL = _('To connect this computer to %(app_name)s ' \
49
 
                       'enter your details below.')
 
48
CONNECT_HELP_LABEL = _('To connect this computer to %(app_name)s enter your '
 
49
    'details below.')
50
50
EMAIL_LABEL = EMAIL1_ENTRY = _('Email address')
51
51
EMAIL2_ENTRY = _('Re-type Email address')
52
52
EMAIL_INVALID = _('The email must be a valid email address.')
61
61
EXISTING_ACCOUNT_CHOICE_BUTTON = _('Sign me in with my existing account')
62
62
FIELD_REQUIRED = _('This field is required.')
63
63
FORGOTTEN_PASSWORD_BUTTON = _('I\'ve forgotten my password')
 
64
FORGOTTEN_PASSWORD_TITLE = _('Reset password')
 
65
FORGOTTEN_PASSWORD_SUBTITLE = _('To reset your {app_name} password, enter '
 
66
    'your registered email address below. We will send instructions to reset '
 
67
    'your password.')
64
68
INVALID_EMAIL = _("Please enter a valid email address")
65
69
GENERIC_BACKEND_ERROR = _('There was a problem accessing the Ubuntu Single'
66
70
                          ' Sign On backend.')
72
76
LOGIN_HEADER_LABEL = _('Connect to %(app_name)s')
73
77
LOGIN_PASSWORD_ENTRY = _('Password')
74
78
LOGIN_PASSWORD_LABEL = LOGIN_PASSWORD_ENTRY
 
79
LOGIN_TITLE = _('Sign In to {app_name}')
 
80
LOGIN_SUBTITLE = CONNECT_HELP_LABEL
75
81
NAME_ENTRY = _('Name')
76
82
NAME_INVALID = _('The name must not be empty.')
77
83
NEXT = _('Next')
84
90
PASSWORD_DIGIT = _("At least one number")
85
91
PASSWORD1_ENTRY = RESET_PASSWORD1_ENTRY = _('Password')
86
92
PASSWORD2_ENTRY = RESET_PASSWORD2_ENTRY = _('Re-type Password')
87
 
PASSWORD_HELP = _('The password must have a minimum of 8 characters and ' \
88
 
                  'include one uppercase character and one number.')
 
93
PASSWORD_HELP = _('The password must have a minimum of 8 characters and '
 
94
    'include one uppercase character and one number.')
89
95
PASSWORD_LENGTH = _("At least 8 characters")
90
96
PASSWORD_MATCH = _("Passwords don't match")
91
 
PASSWORD_MISMATCH = _('The passwords don\'t match, please double check ' \
92
 
                      'and try entering them again.')
 
97
PASSWORD_MISMATCH = _('The passwords don\'t match, please double check '
 
98
    'and try entering them again.')
93
99
PASSWORD_MUST_CONTAIN = _("Your password must contain")
94
100
PASSWORD_TOO_WEAK = _('The password is too weak.')
95
101
PASSWORD_UPPER = _("At least one uppercase letter")
104
110
PROXY_CREDS_SAVE_BUTTON = _('Save and Connect')
105
111
PROXY_CREDS_USER_LABEL = _('Proxy username:')
106
112
RESET_TITLE = _("Reset password")
107
 
RESET_SUBTITLE = _("A password reset code has been sent to your e-mail."
108
 
                   "Please enter the code below along with your new password.")
 
113
RESET_SUBTITLE = _('A password reset code has been sent to your e-mail. '
 
114
    'Please enter the code below along with your new password.')
109
115
RETYPE_EMAIL = _("Retype email")
110
116
RETYPE_PASSWORD = _("Retype password")
111
117
REQUEST_PASSWORD_TOKEN_LABEL = _('To reset your %(app_name)s password,'
112
118
                                 ' enter your email address below:')
113
119
REQUEST_PASSWORD_TOKEN_TECH_ERROR = _('We are very Sorry! The service that'
114
 
                                      ' signs you on is not responding right'
115
 
                                      ' now\nPlease try again or come back in'
116
 
                                      ' a few minutes.')
 
120
    ' signs you on is not responding right now\nPlease try again or'
 
121
    ' come back in a few minutes.')
117
122
REQUEST_PASSWORD_TOKEN_WRONG_EMAIL = _('Sorry we did not recognize the email'
118
 
                                       ' address.')
 
123
    ' address.')
119
124
RESET_CODE_ENTRY = _('Reset code')
120
125
RESET_EMAIL_ENTRY = _('Email address')
121
 
RESET_PASSWORD = _('Reset password')
122
 
SET_NEW_PASSWORD_LABEL = _('A password reset code has been sent to ' \
123
 
                           '%(email)s.\nPlease enter the code below ' \
124
 
                           'along with your new password.')
 
126
RESET_PASSWORD = RESET_TITLE
 
127
SET_NEW_PASSWORD_LABEL = _('A password reset code has been sent to '
 
128
    '%(email)s.\nPlease enter the code below along with your new password.')
125
129
SET_UP_ACCOUNT_BUTTON = _('Set Up Account')
126
130
SET_UP_ACCOUNT_CHOICE_BUTTON = _('I don\'t have an account yet - sign me up')
127
131
SIGN_IN_BUTTON = _('Sign In')
133
137
SSL_DIALOG_TITLE = _('SSL Certificate Not Valid')
134
138
SSL_DOMAIN_HELP = _('the domain whose ssl certificate we are going to show.')
135
139
SSL_EXPLANATION = _('You are trying to connect to a proxy server on'
136
 
                    ' %(domain)s. This server uses a secure connection,'
137
 
                    ' and the SSL certificate is not valid because:')
 
140
    ' %(domain)s. This server uses a secure connection, and the SSL '
 
141
    'certificate is not valid because:')
138
142
SSL_FIRST_REASON = _('The certificate has not been verified')
139
143
SSL_HEADER = _('Do you want to connect to this server?')
140
144
SSL_HELP_BUTTON = _('Get Help With SSL')
142
146
                 ' connect to %(app_name)s.')
143
147
SSL_REMEMBER_DECISION = _('Remember my settings for this certificate.')
144
148
SSL_SECOND_REASON = _('The name on the certificate isn\'t valid or doesn\'t'
145
 
                      ' match the name of the site')
 
149
    ' match the name of the site')
146
150
SSL_THIRD_REASON = _('The certificate has expired')
147
151
SUCCESS = _('You are now logged into %(app_name)s.')
148
152
SURNAME_ENTRY = _('Surname')
149
153
TERMS_TEXT = _("Terms of Service")
150
 
TITLE = _("Sign Up to {app_name}")
 
154
TITLE = REGISTER_TITLE = _("Sign Up to {app_name}")
151
155
TC_BUTTON = _('Show Terms & Conditions')
152
 
TC_NOT_ACCEPTED = _('Agreeing to the %(app_name)s Terms & Conditions is ' \
153
 
                    'required to subscribe.')
 
156
TC_NOT_ACCEPTED = _('Agreeing to the %(app_name)s Terms & Conditions is '
 
157
    'required to subscribe.')
154
158
TOS_LABEL = _("You can also find these terms at <a href='%(url)s'>%(url)s</a>")
155
159
TRY_AGAIN_BUTTON = _('Try again')
156
 
UNKNOWN_ERROR = _('There was an error when trying to complete the ' \
157
 
                  'process. Please check the information and try again.')
 
160
UNKNOWN_ERROR = _('There was an error when trying to complete the '
 
161
    'process. Please check the information and try again.')
158
162
VERIFICATION_CODE = _('Verification code')
159
 
VERIFY_EMAIL_CONTENT = _('Check %(email)s for an email from'
160
 
                         ' Ubuntu Single Sign On.'
161
 
                         ' This message contains a verification code.'
162
 
                         ' Enter the code in the field below and click OK'
163
 
                         ' to complete creating your %(app_name)s account.')
 
163
VERIFY_EMAIL_CONTENT = _('Check %(email)s for an email from Ubuntu Single '
 
164
    'Sign On. This message contains a verification code. Enter the code in '
 
165
    'the field below and click OK to complete creating your %(app_name)s '
 
166
    'account.')
164
167
VERIFY_EMAIL_TITLE = _('Enter verification code')
165
168
VERIFY_EMAIL_LABEL = ('<b>%s</b>\n\n' % VERIFY_EMAIL_TITLE +
166
169
                      VERIFY_EMAIL_CONTENT)