Skip to content

Commit

Permalink
Update translation config for consolidated tos and honor
Browse files Browse the repository at this point in the history
  • Loading branch information
kluo committed Sep 20, 2018
1 parent d594e85 commit 4d59deb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 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
9 changes: 3 additions & 6 deletions conf/locale/stanford_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,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

0 comments on commit 4d59deb

Please sign in to comment.