from ConfigParser import ConfigParser

from pyramid.config import Configurator

import pkg_resources


def main(global_config, **settings):

    cp = ConfigParser()
    cp.readfp(pkg_resources.resource_stream('springboard', 'defaults.ini'))
    defaults = dict(cp.items('springboard:pyramid'))
    defaults.update(settings)

    config = Configurator(settings=defaults)
    config.include('springboard.config')
    config.override_asset(
        to_override='springboard:templates/',
        override_with='{{cookiecutter.app_name}}:templates/')
    config.add_static_view(
        'static', '{{cookiecutter.app_name}}:static', cache_max_age=3600)

    return config.make_wsgi_app()

@@ -640,16 +640,85 @@
 ge=3600)
+%0A    config.add_translation_dirs('%7B%7Bcookiecutter.app_name%7D%7D:locale/')
 %0A%0A    re

set up translation dir