Mercurial > kallithea
comparison rhodecode/model/validators.py @ 3925:8ddf35e02d05 beta
updated translations and added transifex link
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 01 Jun 2013 18:03:44 +0200 |
parents | 424b6c711a7f |
children | 3208aaefc9ca |
comparison
equal
deleted
inserted
replaced
3924:14afe4d1363d | 3925:8ddf35e02d05 |
---|---|
85 'username_exists': _(u'Username "%(username)s" already exists'), | 85 'username_exists': _(u'Username "%(username)s" already exists'), |
86 'system_invalid_username': | 86 'system_invalid_username': |
87 _(u'Username "%(username)s" is forbidden'), | 87 _(u'Username "%(username)s" is forbidden'), |
88 'invalid_username': | 88 'invalid_username': |
89 _(u'Username may only contain alphanumeric characters ' | 89 _(u'Username may only contain alphanumeric characters ' |
90 'underscores, periods or dashes and must begin with ' | 90 'underscores, periods or dashes and must begin with ' |
91 'alphanumeric character or underscore') | 91 'alphanumeric character or underscore') |
92 } | 92 } |
93 | 93 |
94 def validate_python(self, value, state): | 94 def validate_python(self, value, state): |
95 if value in ['default', 'new_user']: | 95 if value in ['default', 'new_user']: |
96 msg = M(self, 'system_invalid_username', state, username=value) | 96 msg = M(self, 'system_invalid_username', state, username=value) |