Skip to content

Commit

Permalink
feat: standardize make extract_translations
Browse files Browse the repository at this point in the history
Refs: FC-0012 OEP-58
  • Loading branch information
shadinaif committed Oct 4, 2023
1 parent 1a307c7 commit dfd34e8
Show file tree
Hide file tree
Showing 12 changed files with 1,413 additions and 1,796 deletions.
8 changes: 4 additions & 4 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
host = https://www.transifex.com

[o:open-edx:p:edx-platform:r:edx-enterprise]
file_filter = enterprise/locale/<lang>/LC_MESSAGES/django.po
source_file = enterprise/locale/en/LC_MESSAGES/django.po
file_filter = enterprise/conf/locale/<lang>/LC_MESSAGES/django.po
source_file = enterprise/conf/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[o:open-edx:p:edx-platform:r:edx-enterprise-js]
file_filter = enterprise/locale/<lang>/LC_MESSAGES/djangojs.po
source_file = enterprise/locale/en/LC_MESSAGES/djangojs.po
file_filter = enterprise/conf/locale/<lang>/LC_MESSAGES/djangojs.po
source_file = enterprise/conf/locale/en/LC_MESSAGES/djangojs.po
source_lang = en
type = PO

3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ dummy_translations: ## generate dummy translation (.po) files

extract_translations: ## extract strings to be translated, outputting .mo files
rm -rf docs/_build
./manage.py makemessages -l en -v1 -d django
./manage.py makemessages -l en -v1 -d djangojs -i "node_modules/*"
i18n_tool extract --no-segment

fake_translations: extract_translations dummy_translations compile_translations ## generate and compile dummy translation files

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,7 @@ locales:
# The locales used for fake-accented English, for testing.
dummy_locales:
- eo

ignore_dirs:
- node_modules

Loading

0 comments on commit dfd34e8

Please sign in to comment.