""" Collection of i18n and l10n utility methods. """ import re import logging from DateTime import DateTime from Products.CMFPlone.log import log from Products.CMFPlone.utils import safe_unicode # get the registered translation service and the dummy from Products.PageTemplates.GlobalTranslationService import \ getGlobalTranslationService # these are taken from PTS, used for format interpolation NAME_RE = r"[a-zA-Z][a-zA-Z0-9_]*" _interp_regex = re.compile(r'(?