diff roundup/cgi/engine_zopetal.py @ 6658:408fd477761f

Add i18n object to roundupdb.Database This makes the i18n object accessible everywhere (including in detectors where localized error messages were impossible). See issue2551184
author Ralf Schlatterbeck <rsc@runtux.com>
date Tue, 03 May 2022 14:51:59 +0200
parents 808f7a8ed2b6
children bd4097fa0671
line wrap: on
line diff
--- a/roundup/cgi/engine_zopetal.py	Mon May 02 17:04:27 2022 -0400
+++ b/roundup/cgi/engine_zopetal.py	Tue May 03 14:51:59 2022 +0200
@@ -8,13 +8,11 @@
 import os
 import os.path
 
-from roundup.cgi.templating import StringIO, context, translationService, TALLoaderBase
+from roundup.cgi.templating import StringIO, context, TALLoaderBase
 from roundup.cgi.PageTemplates import PageTemplate, GlobalTranslationService
 from roundup.cgi.PageTemplates.Expressions import getEngine
 from roundup.cgi.TAL import TALInterpreter
 
-GlobalTranslationService.setGlobalTranslationService(translationService)
-
 
 class Loader(TALLoaderBase):
     templates = {}

Roundup Issue Tracker: http://roundup-tracker.org/