diff -r ac0df9272162 roundup/cgi/PageTemplates/GlobalTranslationService.py --- a/roundup/cgi/PageTemplates/GlobalTranslationService.py Tue May 03 13:16:28 2022 -0400 +++ b/roundup/cgi/PageTemplates/GlobalTranslationService.py Wed May 04 07:49:48 2022 +0200 @@ -33,16 +33,3 @@ cre = re.compile(r'\$(?:(%s)|\{(%s)\})' % (NAME_RE, NAME_RE)) return cre.sub(repl, default or msgid) # XXX Not all of Zope.I18n.ITranslationService is implemented. - -translationService = DummyTranslationService() - -def setGlobalTranslationService(service): - """Sets the global translation service, and returns the previous one.""" - global translationService - old_service = translationService - translationService = service - return old_service - -def getGlobalTranslationService(): - """Returns the global translation service.""" - return translationService diff -r ac0df9272162 roundup/cgi/PageTemplates/TALES.py --- a/roundup/cgi/PageTemplates/TALES.py Tue May 03 13:16:28 2022 -0400 +++ b/roundup/cgi/PageTemplates/TALES.py Wed May 04 07:49:48 2022 +0200 @@ -24,7 +24,6 @@ from roundup.cgi import ZTUtils from weakref import ref from .MultiMapping import MultiMapping -from .GlobalTranslationService import getGlobalTranslationService ustr = str diff -r ac0df9272162 roundup/cgi/engine_zopetal.py --- a/roundup/cgi/engine_zopetal.py Tue May 03 13:16:28 2022 -0400 +++ b/roundup/cgi/engine_zopetal.py Wed May 04 07:49:48 2022 +0200 @@ -9,7 +9,7 @@ import os.path from roundup.cgi.templating import StringIO, context, TALLoaderBase -from roundup.cgi.PageTemplates import PageTemplate, GlobalTranslationService +from roundup.cgi.PageTemplates import PageTemplate from roundup.cgi.PageTemplates.Expressions import getEngine from roundup.cgi.TAL import TALInterpreter