Mercurial > kallithea
comparison rhodecode/model/forms.py @ 1472:aaec08ad9daf beta
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
author | Augusto Herrmann <augusto.herrmann@planejamento.gov.br> |
---|---|
date | Mon, 12 Sep 2011 00:51:53 -0300 |
parents | 9c0f5d558789 |
children | bf263968da47 87ec80c280bb |
comparison
equal
deleted
inserted
replaced
1466:ad5a543a9b2f | 1472:aaec08ad9daf |
---|---|
186 | 186 |
187 def validate_python(self, value, state): | 187 def validate_python(self, value, state): |
188 | 188 |
189 if value['password'] != value['password_confirmation']: | 189 if value['password'] != value['password_confirmation']: |
190 e_dict = {'password_confirmation': | 190 e_dict = {'password_confirmation': |
191 _('Password do not match')} | 191 _('Passwords do not match')} |
192 raise formencode.Invalid('', value, state, error_dict=e_dict) | 192 raise formencode.Invalid('', value, state, error_dict=e_dict) |
193 | 193 |
194 class ValidAuth(formencode.validators.FancyValidator): | 194 class ValidAuth(formencode.validators.FancyValidator): |
195 messages = { | 195 messages = { |
196 'invalid_password':_('invalid password'), | 196 'invalid_password':_('invalid password'), |