mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-10 11:22:09 +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
|
from fabric.colors import red, green
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def push():
|
def make(default=True):
|
||||||
"""Update source language, and upload to Transifex.
|
"""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
|
# some version of makemessages will produce "%%" in the string, replace that
|
||||||
# to "%".
|
# to "%".
|
||||||
_inplace_change('locale/en/LC_MESSAGES/django.po', '%%', '%')
|
_inplace_change('locale/en/LC_MESSAGES/django.po', '%%', '%')
|
||||||
|
|
||||||
|
@task
|
||||||
|
def push():
|
||||||
|
"""Push source file to Transifex.
|
||||||
|
"""
|
||||||
local('tx push -s')
|
local('tx push -s')
|
||||||
|
|
||||||
@task
|
@task
|
||||||
@ -22,7 +26,7 @@ def pull():
|
|||||||
"""
|
"""
|
||||||
local('tx pull')
|
local('tx pull')
|
||||||
|
|
||||||
@task(default=True)
|
@task()
|
||||||
def compile():
|
def compile():
|
||||||
"""Compile po files.
|
"""Compile po files.
|
||||||
"""
|
"""
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user