changeset 3903:a90fa2e08a0a

LinkHTMLProperty wasn't translating menus Gabor Kmetyko reported that the Priority and Status dropdowns weren't being translated. It appears that LinkHTMLProperty wasn't calling self._() on the labels. (Although MultiLinkHTMLProperty was.) This should [SF#793837].
author Justus Pendleton <jpend@users.sourceforge.net>
date Fri, 14 Sep 2007 15:55:25 +0000
parents 21420ba64b0d
children 91008ec8f9a0
files roundup/cgi/templating.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Wed Sep 12 21:11:14 2007 +0000
+++ b/roundup/cgi/templating.py	Fri Sep 14 15:55:25 2007 +0000
@@ -1895,7 +1895,7 @@
                 lab = lab + ' (%s)'%', '.join(map(str, m))
 
             # and generate
-            lab = cgi.escape(lab)
+            lab = cgi.escape(self._(lab))
             l.append('<option %svalue="%s">%s</option>'%(s, optionid, lab))
         l.append('</select>')
         return '\n'.join(l)

Roundup Issue Tracker: http://roundup-tracker.org/