Skip to content

Commit 30946b3

Browse files
author
Alexander Smishlajev
committed
use named variable slots in translation string
1 parent 2b1ad9f commit 30946b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roundup/roundupdb.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundupdb.py,v 1.127 2006-11-10 11:03:42 a1s Exp $
19+
# $Id: roundupdb.py,v 1.128 2006-12-18 11:34:41 a1s Exp $
2020

2121
"""Extending hyperdb with types specific to issue-tracking.
2222
"""
@@ -594,7 +594,8 @@ def generateChangeNote(self, nodeid, oldvalues):
594594
if '\n' in change:
595595
value = self.indentChangeNoteValue(str(value))
596596
oldvalue = self.indentChangeNoteValue(str(oldvalue))
597-
change = _('\nNow:\n%s\nWas:\n%s') % (value, oldvalue)
597+
change = _('\nNow:\n%(new)s\nWas:\n%(old)s') % {
598+
"new": value, "old": oldvalue}
598599
m.append('%s: %s'%(propname, change))
599600
if m:
600601
m.insert(0, '----------')

0 commit comments

Comments
 (0)