Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9b3b2e72
Commit
9b3b2e72
authored
Jul 23, 2014
by
Kevin Luo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for theme translations and LANGUAGE_DICT override
parent
2c01984b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
lms/envs/aws.py
+1
-0
lms/startup.py
+3
-0
No files found.
lms/envs/aws.py
View file @
9b3b2e72
...
...
@@ -207,6 +207,7 @@ TIME_ZONE = ENV_TOKENS.get('TIME_ZONE', TIME_ZONE)
# Translation overrides
LANGUAGES
=
ENV_TOKENS
.
get
(
'LANGUAGES'
,
LANGUAGES
)
LANGUAGE_DICT
=
dict
(
LANGUAGES
)
LANGUAGE_CODE
=
ENV_TOKENS
.
get
(
'LANGUAGE_CODE'
,
LANGUAGE_CODE
)
USE_I18N
=
ENV_TOKENS
.
get
(
'USE_I18N'
,
USE_I18N
)
...
...
lms/startup.py
View file @
9b3b2e72
...
...
@@ -76,6 +76,9 @@ def enable_theme():
(
u'themes/{}'
.
format
(
settings
.
THEME_NAME
),
theme_root
/
'static'
)
)
# Include theme locale path for django translations lookup
settings
.
LOCALE_PATHS
=
(
theme_root
/
'conf/locale'
,)
+
settings
.
LOCALE_PATHS
def
enable_microsites
():
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment