Skip to content

Commit 87e4096

Browse files
authored
Merge pull request #4189 from italia/localehelpers
fabfile: update i18n helpers
2 parents e393011 + f6172f3 commit 87e4096

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

fabfile.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@
66
fabfile_dir = os.path.dirname(__file__)
77

88

9-
def i18n():
9+
def i18n_push_source():
10+
"""rebuild and push the source language to transifex"""
1011
with lcd('readthedocs'):
1112
local('rm -rf rtd_tests/tests/builds/')
12-
local('tx pull')
13-
local('django-admin makemessages --all')
13+
local('django-admin makemessages -l en')
1414
local('tx push -s')
15+
local('django-admin compilemessages -l en')
16+
17+
18+
def i18n_pull():
19+
"""pull the updated translation from transifex"""
20+
with lcd('readthedocs'):
21+
local('rm -rf rtd_tests/tests/builds/')
22+
local('tx pull -f ')
23+
local('django-admin makemessages --all')
1524
local('django-admin compilemessages')
1625

1726

0 commit comments

Comments
 (0)