Skip to content

Commit

Permalink
wraps error messages in internationalisation helper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
george committed Jun 19, 2015
1 parent b093dc6 commit 6c67fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/controllers/user.py
Expand Up @@ -352,8 +352,8 @@ def _save_edit(self, id, context):
error_summary = e.error_summary
return self.edit(id, data_dict, errors, error_summary)
except UsernamePasswordError:
errors = {'oldpassword': [u'Password entered was incorrect']}
error_summary = {u'Old Password': u'incorrect password'}
errors = {'oldpassword': [_('Password entered was incorrect')]}
error_summary = {_('Old Password'): _('incorrect password')}
return self.edit(id, data_dict, errors, error_summary)

def login(self, error=None):
Expand Down

0 comments on commit 6c67fe2

Please sign in to comment.