Mercurial > p > roundup > code
diff roundup/roundupdb.py @ 3790:9171e01ac932
use named variable slots in translation string
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Mon, 18 Dec 2006 11:34:41 +0000 |
| parents | 4efa50393b2d |
| children | 83748b2de465 |
line wrap: on
line diff
--- a/roundup/roundupdb.py Mon Dec 18 06:07:09 2006 +0000 +++ b/roundup/roundupdb.py Mon Dec 18 11:34:41 2006 +0000 @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.127 2006-11-10 11:03:42 a1s Exp $ +# $Id: roundupdb.py,v 1.128 2006-12-18 11:34:41 a1s Exp $ """Extending hyperdb with types specific to issue-tracking. """ @@ -594,7 +594,8 @@ if '\n' in change: value = self.indentChangeNoteValue(str(value)) oldvalue = self.indentChangeNoteValue(str(oldvalue)) - change = _('\nNow:\n%s\nWas:\n%s') % (value, oldvalue) + change = _('\nNow:\n%(new)s\nWas:\n%(old)s') % { + "new": value, "old": oldvalue} m.append('%s: %s'%(propname, change)) if m: m.insert(0, '----------')
