Skip to content

Commit

Permalink
Merge pull request #4212 from learningequality/0.14.x
Browse files Browse the repository at this point in the history
Merge 0.14.x to develop (fixed i18n issues)
  • Loading branch information
aronasorman committed Aug 6, 2015
2 parents e7ca2a9 + d38e0da commit e170567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kalite/i18n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LanguageNotFoundError(Exception):

def get_localized_exercise_dirpath(lang_code):
ka_lang_code = lang_code.lower()
return os.path.join(settings.USER_DATA_ROOT, "exercises", ka_lang_code) # Translations live in user data space
return os.path.join(settings.USER_STATIC_FILES, "perseus", "ke", "exercises", ka_lang_code) # Translations live in user data space


def get_locale_path(lang_code=None):
Expand Down Expand Up @@ -340,7 +340,7 @@ def _get_installed_language_packs():
# This is idiotic, it just assumes that every directory / file is
# a valid language code
for django_disk_code in os.listdir(locale_dir):

# Skip if it's a file
if not os.path.isdir(os.path.join(locale_dir, django_disk_code)):
continue
Expand Down

0 comments on commit e170567

Please sign in to comment.