Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
Checks which language translations are available and sets them

        def setup_locales():
    """Checks which language translations are available and sets them"""
    set_available_locales()
        


src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/app.py   mediagoblin-spaetz(Download)
from mediagoblin.init.celery import setup_celery_from_config
from mediagoblin.init.plugins import setup_plugins
from mediagoblin.init import (get_jinja_loader, get_staticdirector,
    setup_global_and_app_config, setup_locales, setup_workbench, setup_database,
    setup_storage, setup_beaker_cache)
 
        # load all available locales
        setup_locales()
 
        # Set up plugins -- need to do this early so that plugins can

src/m/e/mediagoblin-0.6.1/mediagoblin/app.py   mediagoblin(Download)
from mediagoblin.init.celery import setup_celery_from_config
from mediagoblin.init.plugins import setup_plugins
from mediagoblin.init import (get_jinja_loader, get_staticdirector,
    setup_global_and_app_config, setup_locales, setup_workbench, setup_database,
    setup_storage)
 
        # load all available locales
        setup_locales()
 
        # Set up plugins -- need to do this early so that plugins can

src/j/o/JoshuaGoblin-HEAD/mediagoblin/app.py   JoshuaGoblin(Download)
from mediagoblin.init.celery import setup_celery_from_config
from mediagoblin.init.plugins import setup_plugins
from mediagoblin.init import (get_jinja_loader, get_staticdirector,
    setup_global_and_app_config, setup_locales, setup_workbench, setup_database,
    setup_storage)
 
        # load all available locales
        setup_locales()
 
        # Set up plugins -- need to do this early so that plugins can