if not conf['pylons.paths']['root']:
    conf['pylons.paths']['root'] = os.path.abspath(NAME_OF_YOUR_PROJECT)
if not conf.get('pylons.package'):
    conf['pylons.package'] = 'example'
set_lang(LANG, pylons_config=conf)
How to register a Pylons translator object?