Skip to content

Commit 37775be

Browse files
author
Alexander Smishlajev
committed
use templating translation service instead of commandline-oriented gettext()
1 parent d461b3c commit 37775be

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roundup/cgi/cgitb.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# This module was written by Ka-Ping Yee, <[email protected]>.
3-
#
4-
# $Id: cgitb.py,v 1.10 2004-02-11 23:55:09 richard Exp $
3+
#
4+
# $Id: cgitb.py,v 1.11 2004-06-09 09:20:01 a1s Exp $
55

66
"""Extended CGI traceback handler by Ka-Ping Yee, <[email protected]>.
77
"""
@@ -10,7 +10,10 @@
1010
import sys, os, types, string, keyword, linecache, tokenize, inspect, cgi
1111
import pydoc, traceback
1212

13-
from roundup.i18n import _
13+
from roundup.cgi import templating
14+
15+
def _(msgid):
16+
return templating.translationService.gettext(msgid)
1417

1518
def breaker():
1619
return ('<body bgcolor="white">' +

0 commit comments

Comments
 (0)