setup.py: update compile_translations command for new organization of translations files
This commit is contained in:
parent
9c5bcffa71
commit
91c9e0296a
17
MANIFEST.in
17
MANIFEST.in
|
@ -6,19 +6,28 @@ recursive-include authentic2/idp/static *.css *.js *.ico *.gif *.png *.jpg
|
|||
recursive-include authentic2/auth2_auth/auth2_openid/static *.css *.js *.ico *.gif *.png *.jpg
|
||||
|
||||
# templates
|
||||
recursive-include authentic2/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/saml/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/idp/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/idp/idp_openid/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/auth2_auth/auth2_ssl/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/auth2_auth/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/auth2_auth/auth2_oath/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/auth2_auth/auth2_openid/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/auth2_auth/auth2_ssl/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/authsaml2/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/idp/templates *.html *.txt *.xml
|
||||
recursive-include authentic2/idp/idp_openid/templates *.html *.txt *.xml
|
||||
|
||||
recursive-include authentic2/vendor/totp_js/js *.js
|
||||
recursive-include authentic2/saml/fixtures *.json
|
||||
recursive-include authentic2/locale *.po *.mo
|
||||
recursive-include authentic2/saml/locale *.po *.mo
|
||||
recursive-include authentic2/idp/locale *.po *.mo
|
||||
recursive-include authentic2/idp/idp_openid/locale *.po *.mo
|
||||
recursive-include authentic2/auth2_auth/locale *.po *.mo
|
||||
recursive-include authentic2/auth2_auth/auth2_ssl/locale *.po *.mo
|
||||
recursive-include authentic2/auth2_auth/auth2_oath/locale *.po *.mo
|
||||
recursive-include authentic2/auth2_auth/auth2_openid/locale *.po *.mo
|
||||
recursive-include authentic2/authsaml2/locale *.po *.mo
|
||||
recursive-include authentic2/attribute_aggregator/locale *.po *.mo
|
||||
recursive-include authentic2 README xrds.xml *.txt yadis.xrdf
|
||||
|
||||
include doc/*.rst
|
||||
|
|
11
setup.py
11
setup.py
|
@ -31,10 +31,13 @@ class compile_translations(Command):
|
|||
import sys
|
||||
from django.core.management.commands.compilemessages import \
|
||||
compile_messages
|
||||
curdir = os.getcwd()
|
||||
os.chdir(os.path.realpath('authentic2'))
|
||||
compile_messages(stderr=sys.stderr)
|
||||
os.chdir(curdir)
|
||||
for path, dirs, files in os.walk('authentic2'):
|
||||
if 'locale' not in dirs:
|
||||
continue
|
||||
curdir = os.getcwd()
|
||||
os.chdir(os.path.realpath(path))
|
||||
compile_messages(stderr=sys.stderr)
|
||||
os.chdir(curdir)
|
||||
|
||||
|
||||
class build(_build):
|
||||
|
|
Loading…
Reference in New Issue