summaryrefslogtreecommitdiff
path: root/scripts/driver
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/driver')
-rw-r--r--scripts/driver9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/driver b/scripts/driver
index 06cceadf0..e7882c0e6 100644
--- a/scripts/driver
+++ b/scripts/driver
@@ -79,6 +79,15 @@ def run_main():
# special one.
import Mailman.pythonlib.cgi
sys.modules['cgi'] = Mailman.pythonlib.cgi
+ #
+ # TBD: Stick the i18n translation function into the builtins. This is
+ # bogus because it's too magical, but it's also quite convenient
+ # during the i18n integration phase. This will change before the
+ # release!
+ import __builtin__
+ from Mailman.i18n import _
+ __builtin__._ = _
+ #
# The name of the module to run is passed in argv[1]. What we
# actually do is import the module named by argv[1] that lives in the
# Mailman.Cgi package. That module must have a main() function, which