'Convenience property to return a localizer'

@reify
def localizer(self):

    registry = self.registry
    current_locale_name = self.locale_name
    localizer = registry.queryUtility(ILocalizer, name=current_locale_name)
    if (localizer is None):
        tdirs = registry.queryUtility(ITranslationDirectories, default=[])
        localizer = make_localizer(current_locale_name, tdirs)
        registry.registerUtility(localizer, ILocalizer, name=current_locale_name)
    return localizer
