Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 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 | 1bf9a4b4de33 |
| children | 6733a7cce7f4 |
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)
