Beispiel #1
0
def pull_translations(args):
    conf = fetch_config(args)

    with libgiza.app.BuildApp.new(pool_type=conf.runstate.runner,
                                  pool_size=conf.runstate.pool_size,
                                  force=conf.runstate.force).context() as app:
        app.extend_queue(pull_tasks(conf))
Beispiel #2
0
def pull_translations(args):
    conf = fetch_config(args)

    with libgiza.app.BuildApp.new(pool_type=conf.runstate.runner,
                                  pool_size=conf.runstate.pool_size,
                                  force=conf.runstate.force).context() as app:
        app.extend_queue(pull_tasks(conf))
Beispiel #3
0
def push_translations(args):
    """Sync translations with the transifex service."""

    conf = fetch_config(args)

    with libgiza.app.BuildApp.new(pool_type=conf.runstate.runner,
                                  pool_size=conf.runstate.pool_size,
                                  force=conf.runstate.force).context() as app:
        app.extend_queue(push_tasks(conf))
        update_transifex(conf)
Beispiel #4
0
def push_translations(args):
    """Sync translations with the transifex service."""

    conf = fetch_config(args)

    with libgiza.app.BuildApp.new(pool_type=conf.runstate.runner,
                                  pool_size=conf.runstate.pool_size,
                                  force=conf.runstate.force).context() as app:
        app.extend_queue(push_tasks(conf))
        update_transifex(conf)