1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00

Update fabfile

This commit is contained in:
zhengxie 2014-11-01 13:40:07 +08:00
parent eb396fe8fe
commit 3e1373b7a0
2 changed files with 9 additions and 5 deletions

1
fabfile/__init__.py Normal file
View File

@ -0,0 +1 @@
from . import locale

View File

@ -1,10 +1,11 @@
"""
Tools for automating daily tasks.
Tools for i18n.
"""
from fabric.api import local
from fabric.api import local, task
from fabric.colors import red, green
def i18n_upload():
@task
def push():
"""Update source language, and upload to Transifex.
"""
local('django-admin.py makemessages -l en -e py,html -i "thirdpart*"')
@ -15,12 +16,14 @@ def i18n_upload():
local('tx push -s')
def i18n_pull():
@task
def pull():
"""Update local po files with Transifex.
"""
local('tx pull')
def i18n_compile():
@task(default=True)
def compile():
"""Compile po files.
"""
local('django-admin.py compilemessages')