1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-20 18:32:41 +00:00

[locale] Add two factor source strings

This commit is contained in:
zhengxie
2017-10-30 15:04:11 +08:00
parent ad8aa9ebea
commit 4275447d09
19 changed files with 1177 additions and 5446 deletions

View File

@@ -9,7 +9,7 @@ from fabric.colors import red, green
def make(default=True, lang='en'):
"""Update source language.
"""
local('django-admin.py makemessages -l %s -e py,html -i "thirdpart*" -i "docs*"' % lang)
local('django-admin.py makemessages -l %s -e py,html -i "thirdpart*" -i "docs*" -i "seahub/two_factor/gateways" -i "seahub/two_factor/templates/two_factor/core/otp_required.html" -i "seahub/two_factor/templates/two_factor/core/phone_register.html" -i "seahub/two_factor/templates/two_factor/profile/profile.html"' % lang)
# some version of makemessages will produce "%%" in the string, replace that
# to "%".