Skip to content

Commit fff8712

Browse files
author
Justus Pendleton
committed
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].
1 parent ea7f777 commit fff8712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ def menu(self, size=None, height=None, showid=0, additional=[], value=None,
18951895
lab = lab + ' (%s)'%', '.join(map(str, m))
18961896

18971897
# and generate
1898-
lab = cgi.escape(lab)
1898+
lab = cgi.escape(self._(lab))
18991899
l.append('<option %svalue="%s">%s</option>'%(s, optionid, lab))
19001900
l.append('</select>')
19011901
return '\n'.join(l)

0 commit comments

Comments
 (0)