Skip to content

Commit

Permalink
load i18n exercises into the app's static dir
Browse files Browse the repository at this point in the history
  • Loading branch information
aronasorman committed Jun 17, 2014
1 parent 9fc5599 commit 87c3f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -43,3 +43,4 @@ writeup/
/kalite/i18n/static/js/i18n
/TAGS
.tags
/kalite/i18n/static/
2 changes: 1 addition & 1 deletion kalite/i18n/__init__.py
Expand Up @@ -38,7 +38,7 @@ class LanguageNotFoundError(Exception):

def get_localized_exercise_dirpath(lang_code):
ka_lang_code = lang_code.lower()
return os.path.join(settings.KHAN_EXERCISES_DIRPATH, "exercises", ka_lang_code)
return os.path.join(os.path.dirname(__file__), 'static', 'khan-exercises', "exercises", ka_lang_code)


def get_locale_path(lang_code=None):
Expand Down

0 comments on commit 87c3f3a

Please sign in to comment.