Skip to content

Commit 5e05a2a

Browse files
author
Alexander Smishlajev
committed
don't translate strings that never need translation
1 parent 41bafc9 commit 5e05a2a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

roundup/admin.py

Lines changed: 5 additions & 5 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: admin.py,v 1.75 2004-06-25 22:23:36 richard Exp $
19+
# $Id: admin.py,v 1.76 2004-07-13 10:21:32 a1s Exp $
2020

2121
'''Administration commands for maintaining Roundup trackers.
2222
'''
@@ -156,18 +156,18 @@ def sortfun(a, b):
156156
h = _(command.__doc__).split('\n')
157157
name = command.__name__[3:]
158158
usage = h[0]
159-
print _('''
159+
print '''
160160
<tr><td valign=top><strong>%(name)s</strong></td>
161161
<td><tt>%(usage)s</tt><p>
162-
<pre>''')%locals()
162+
<pre>''' % locals()
163163
indent = indent_re.match(h[3])
164164
if indent: indent = len(indent.group(1))
165165
for line in h[3:]:
166166
if indent:
167167
print line[indent:]
168168
else:
169169
print line
170-
print _('</pre></td></tr>\n')
170+
print '</pre></td></tr>\n'
171171

172172
def help_all(self):
173173
print _('''
@@ -234,7 +234,7 @@ def help_all(self):
234234
''')
235235
for name, command in self.commands.items():
236236
print _('%s:')%name
237-
print _(' '), _(command.__doc__)
237+
print ' ', _(command.__doc__)
238238

239239
def do_help(self, args, nl_re=re.compile('[\r\n]'),
240240
indent_re=re.compile(r'^(\s+)\S+')):

roundup/scripts/roundup_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.54 2004-07-04 12:52:06 a1s Exp $
20+
$Id: roundup_server.py,v 1.55 2004-07-13 10:24:19 a1s Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -132,10 +132,10 @@ def index(self):
132132
keys = self.TRACKER_HOMES.keys()
133133
keys.sort()
134134
for tracker in keys:
135-
w(_('<li><a href="%(tracker_url)s/index">%(tracker_name)s</a>\n')%{
135+
w('<li><a href="%(tracker_url)s/index">%(tracker_name)s</a>\n'%{
136136
'tracker_url': urllib.quote(tracker),
137137
'tracker_name': cgi.escape(tracker)})
138-
w(_('</ol></body></html>'))
138+
w('</ol></body></html>')
139139

140140
def inner_run_cgi(self):
141141
''' This is the inner part of the CGI handling

0 commit comments

Comments
 (0)