Skip to content

Commit 87ff727

Browse files
author
Alexander Smishlajev
committed
send_message: translate UI strings (patch [SF#1462491])
1 parent d8a310d commit 87ff727

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

roundup/roundupdb.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.121 2006-01-27 02:39:42 richard Exp $
18+
# $Id: roundupdb.py,v 1.122 2006-04-06 05:57:17 a1s Exp $
1919

2020
"""Extending hyperdb with types specific to issue-tracking.
2121
"""
@@ -29,6 +29,7 @@
2929
from rfc2822 import encode_header
3030

3131
from roundup import password, date, hyperdb
32+
from roundup.i18n import _
3233

3334
# MessageSendError is imported for backwards compatibility
3435
from roundup.mailer import Mailer, straddr, MessageSendError
@@ -300,11 +301,13 @@ def send_message(self, nodeid, msgid, note, sendto, from_address=None,
300301
# add author information
301302
if authid:
302303
if len(self.get(nodeid,'messages')) == 1:
303-
m.append("New submission from %s%s:"%(authname, authaddr))
304+
m.append(_("New submission from %(authname)s%(authaddr)s:")
305+
% locals())
304306
else:
305-
m.append("%s%s added the comment:"%(authname, authaddr))
307+
m.append(_("%(authname)%(authaddr)s added the comment:")
308+
% locals())
306309
else:
307-
m.append("System message:")
310+
m.append(_("System message:"))
308311
m.append('')
309312

310313
# add the content

0 commit comments

Comments
 (0)