X019

Untitled

Oct 3rd, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. if value not in self.charset[self._character_set]:
  2. msg = "'%s' not a valid collation for charset '%s'"
  3. raise ValueError(msg % (value, self._character_set))
  4.  
  5. ===========
  6. Changed to:
  7. ===========
  8.  
  9. if value not in self.charset[self._character_set]:
  10. msg = _("%(value)s not a valid collation for charset % (_character_set)s") % {'value':value,'_character_set':self._character_set}
  11. raise ValueError(msg)
Advertisement
Add Comment
Please, Sign In to add comment