add config files for PyBabel and update.py

This commit is contained in:
Steve Strassmann
2013-04-24 11:17:02 -04:00
parent 111ec62bb6
commit 8ab467a9fc
3 changed files with 30 additions and 0 deletions

10
.gitignore vendored
View File

@@ -31,3 +31,13 @@ cover_html/
chromedriver.log
/nbproject
ghostdriver.log
/cms/doc/en/getting_started/
/conf/locale/en
/conf/locale/fr
create-dev-env.hack.sh
distribute-0.6.36.tar.gz
i18n/googleTranslate.hack.py
i18n/mitx/conf/locale/fr/LC_MESSAGES/django.po
i18n/split.py
.gitignore

19
conf/locale/babel.cfg Normal file
View File

@@ -0,0 +1,19 @@
# Extraction from Python source files
#[python: cms/**.py]
#[python: lms/**.py]
#[python: common/**.py]
# Extraction from Javscript source files
#[javascript: cms/**.js]
#[javascript: lms/**.js]
#[javascript: common/static/js/capa/**.js]
#[javascript: common/static/js/course_groups/**.js]
# do not extract from common/static/js/vendor/**
# Extraction from Mako templates
[mako: cms/templates/**.html]
input_encoding = utf-8
[mako: lms/templates/**.html]
input_encoding = utf-8
[mako: common/templates/**.html]
input_encoding = utf-8

1
conf/locale/config Normal file
View File

@@ -0,0 +1 @@
{"locales" : ["en", "fr", "de"]}