Skip to content

Commit

Permalink
Merge pull request #39
Browse files Browse the repository at this point in the history
* kluo/update-translation-config:
  Update JS translation strings for Ginkgo
  Update translation config for consolidated tos and honor
  • Loading branch information
stvstnfrd committed Sep 26, 2018
2 parents d594e85 + 8dfb41e commit 27533fe
Show file tree
Hide file tree
Showing 10 changed files with 456 additions and 1,722 deletions.
12 changes: 3 additions & 9 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ source_file = conf/locale/en/LC_MESSAGES/theme.po
source_lang = en
type = PO

[stanford-openedx.tos]
file_filter = conf/locale/<lang>/LC_MESSAGES/tos.po
source_file = conf/locale/en/LC_MESSAGES/tos.po
[stanford-openedx.tos_and_honor]
file_filter = conf/locale/<lang>/LC_MESSAGES/tos_and_honor.po
source_file = conf/locale/en/LC_MESSAGES/tos_and_honor.po
source_lang = en
type = PO

Expand All @@ -109,12 +109,6 @@ source_file = conf/locale/en/LC_MESSAGES/privacy.po
source_lang = en
type = PO

[stanford-openedx.honor]
file_filter = conf/locale/<lang>/LC_MESSAGES/honor.po
source_file = conf/locale/en/LC_MESSAGES/honor.po
source_lang = en
type = PO

[stanford-openedx.copyright]
file_filter = conf/locale/<lang>/LC_MESSAGES/copyright.po
source_file = conf/locale/en/LC_MESSAGES/copyright.po
Expand Down
22 changes: 4 additions & 18 deletions conf/locale/stanford_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,10 @@ ignore_dirs:
- '*/terrain'
- '*/spec'
- '*/tests'
- '*/features'
- '*/djangoapps/*/features'
# Directories full of auto-generated JS
- lms/static/js/i18n
- cms/static/js/i18n
# Features not used by Stanford
- 'cms'
- 'common/djangoapps/course_mode'
- '*/management/commands'
- 'common/djangoapps/xblock_django'
- 'lms/djangoapps/dashboard'
- 'lms/djangoapps/instructor*'
- 'lms/djangoapps/teams'
- 'lms/templates/wiki'
- '*/word_cloud'
- 'openedx/stanford/lms/djangoapps/instructor'

# Third-party installed apps that we also extract strings from. When adding a
# file here, also add it to the django.po merge files below, and to the
Expand All @@ -129,21 +118,18 @@ ignore_dirs:
# See pavelib/utils/stanford_i18n_helpers.py for details.
segment:
theme.po:
- tos.po:
- lagunita/lms/templates/static_templates/tos.html
- tos_and_honor.po:
- lagunita/lms/templates/static_templates/tos_and_honor.html
- privacy.po:
- lagunita/lms/templates/static_templates/privacy.html
- honor.po:
- lagunita/lms/templates/static_templates/honor.html
- copyright.po:
- lagunita/lms/templates/static_templates/copyright.html

# How should the generate step merge files?
generate_merge:
theme.po:
- tos.po
- tos_and_honor.po
- privacy.po
- honor.po
- copyright.po
- theme.po
- stanford_django.po
Expand Down
16 changes: 0 additions & 16 deletions conf/locale/stanford_underscore.cfg

This file was deleted.

101 changes: 8 additions & 93 deletions lms/static/js/i18n/ar/djangojs.js

Large diffs are not rendered by default.

578 changes: 10 additions & 568 deletions lms/static/js/i18n/es-419/djangojs.js

Large diffs are not rendered by default.

99 changes: 37 additions & 62 deletions lms/static/js/i18n/mn/djangojs.js

Large diffs are not rendered by default.

683 changes: 121 additions & 562 deletions lms/static/js/i18n/ru/djangojs.js

Large diffs are not rendered by default.

191 changes: 34 additions & 157 deletions lms/static/js/i18n/vi/djangojs.js

Large diffs are not rendered by default.

474 changes: 238 additions & 236 deletions lms/static/js/i18n/zh-cn/djangojs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openedx/stanford/pavelib/utils/i18n_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def extract_platform_mako():


def extract_platform_underscore():
underscore_config = CONFIG.locale_dir / 'stanford_underscore.cfg'
underscore_config = CONFIG.locale_dir / 'babel_underscore.cfg'
underscore_file = CONFIG.source_messages_dir / 'stanford_underscore.po'
output = _extract_babel(underscore_config, underscore_file)
return output
Expand Down

0 comments on commit 27533fe

Please sign in to comment.