Mercurial > p > roundup > code
diff roundup/cgi/cgitb.py @ 2426:cafdf8b7cc69
use templating translation service instead of commandline-oriented gettext()
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Wed, 09 Jun 2004 09:20:01 +0000 |
| parents | fc52d57c6c3e |
| children | 7500a9bb8bf9 |
line wrap: on
line diff
--- a/roundup/cgi/cgitb.py Wed Jun 09 07:04:06 2004 +0000 +++ b/roundup/cgi/cgitb.py Wed Jun 09 09:20:01 2004 +0000 @@ -1,7 +1,7 @@ # # This module was written by Ka-Ping Yee, <ping@lfw.org>. -# -# $Id: cgitb.py,v 1.10 2004-02-11 23:55:09 richard Exp $ +# +# $Id: cgitb.py,v 1.11 2004-06-09 09:20:01 a1s Exp $ """Extended CGI traceback handler by Ka-Ping Yee, <ping@lfw.org>. """ @@ -10,7 +10,10 @@ import sys, os, types, string, keyword, linecache, tokenize, inspect, cgi import pydoc, traceback -from roundup.i18n import _ +from roundup.cgi import templating + +def _(msgid): + return templating.translationService.gettext(msgid) def breaker(): return ('<body bgcolor="white">' +
