-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
165 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
from django.core.management import execute_from_command_line | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault( | ||
"DJANGO_SETTINGS_MODULE", | ||
"recommender.conf.locale.settings" | ||
) | ||
|
||
execute_from_command_line(sys.argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
|
||
locales: | ||
- en # English - Source Language | ||
|
||
ignore_dirs: | ||
- public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
""" | ||
Django settings for xblock-drag-and-drop-v2 project. | ||
For more information on this file, see | ||
https://docs.djangoproject.com/en/1.11/topics/settings/ | ||
For the full list of settings and their values, see | ||
https://docs.djangoproject.com/en/1.11/ref/settings/ | ||
""" | ||
|
||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) | ||
from __future__ import absolute_import | ||
import os | ||
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | ||
|
||
|
||
# Quick-start development settings - unsuitable for production | ||
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/ | ||
|
||
# SECURITY WARNING: keep the secret key used in production secret! | ||
# This is just a container for running tests, it's okay to allow it to be | ||
# defaulted here if not present in environment settings | ||
SECRET_KEY = os.environ.get('SECRET_KEY', '",cB3Jr.?xu[x_Ci]!%HP>#^AVmWi@r/W3u,w?pY+~J!R>;WN+,3}Sb{K=Jp~;&k') | ||
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
# This is just a container for running tests | ||
DEBUG = True | ||
|
||
TEMPLATE_DEBUG = True | ||
|
||
ALLOWED_HOSTS = [] | ||
|
||
|
||
# Application definition | ||
|
||
INSTALLED_APPS = ( | ||
'statici18n', | ||
'recommender', | ||
) | ||
|
||
# Internationalization | ||
# https://docs.djangoproject.com/en/1.11/topics/i18n/ | ||
|
||
LANGUAGE_CODE = 'en' | ||
|
||
TIME_ZONE = 'UTC' | ||
|
||
USE_I18N = True | ||
|
||
USE_L10N = True | ||
|
||
USE_TZ = True | ||
|
||
|
||
# Static files (CSS, JavaScript, Images) | ||
# https://docs.djangoproject.com/en/1.11/howto/static-files/ | ||
|
||
STATIC_URL = '/static/' | ||
|
||
# statici18n | ||
# http://django-statici18n.readthedocs.io/en/latest/settings.html | ||
|
||
LANGUAGES = [ | ||
('ar', 'Arabic'), | ||
('de', 'German'), | ||
('en', 'English - Source Language'), | ||
('eo', 'Esperanto'), | ||
('es_419', 'Spanish (Latin America)'), | ||
('fr', 'French'), | ||
('he', 'Hebrew'), | ||
('hi', 'Hindi'), | ||
('it', 'Italian'), | ||
('ja', 'Japanese'), | ||
('ko', 'Korean (Korea)'), | ||
('nl', 'Dutch'), | ||
('pl', 'Polski'), | ||
('pt_BR', 'Portuguese (Brazil)'), | ||
('pt_PT', 'Portuguese (Portugal)'), | ||
('ru', 'Russian'), | ||
('tr', 'Turkish'), | ||
('zh_CN', 'Chinese (China)'), | ||
] | ||
|
||
LOCALE_PATHS = [os.path.join(BASE_DIR, "locale")] | ||
|
||
STATICI18N_DOMAIN = 'text' | ||
STATICI18N_NAMESPACE = 'RecommenderXBlockI18N' | ||
STATICI18N_PACKAGES = ( | ||
'recommender', | ||
) | ||
STATICI18N_ROOT = 'recommender/public/js' | ||
STATICI18N_OUTPUT_DIR = 'translations' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
temp reference. edx gettext is useless here