use a local translation function (its been removed from pyramid.config.i18n)