mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
[i18n] Update source file
This commit is contained in:
@@ -5,15 +5,19 @@ from fabric.api import local, task
|
||||
from fabric.colors import red, green
|
||||
|
||||
@task
|
||||
def push():
|
||||
"""Update source language, and upload to Transifex.
|
||||
def make(default=True):
|
||||
"""Update source language.
|
||||
"""
|
||||
local('django-admin.py makemessages -l en -e py,html -i "thirdpart*"')
|
||||
local('django-admin.py makemessages -l en -e py,html -i "thirdpart*" -i "docs*"')
|
||||
|
||||
# some version of makemessages will produce "%%" in the string, replace that
|
||||
# to "%".
|
||||
_inplace_change('locale/en/LC_MESSAGES/django.po', '%%', '%')
|
||||
|
||||
@task
|
||||
def push():
|
||||
"""Push source file to Transifex.
|
||||
"""
|
||||
local('tx push -s')
|
||||
|
||||
@task
|
||||
@@ -22,7 +26,7 @@ def pull():
|
||||
"""
|
||||
local('tx pull')
|
||||
|
||||
@task(default=True)
|
||||
@task()
|
||||
def compile():
|
||||
"""Compile po files.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user