mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-02 07:47:32 +00:00
[i18n] Update source file
This commit is contained in:
parent
aef2e5669c
commit
f7ed31068d
@ -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.
|
||||
"""
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user