forked from openedx/openedx-app-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add
make translation_requirements
- Loading branch information
1 parent
320548c
commit 468850a
Showing
3 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
clean_translations_temp_directory: | ||
rm -rf I18N/ | ||
|
||
create_virtual_env: | ||
rm -rf .venv | ||
python3 -m venv .venv | ||
# TODO: Publish new version on pypi as `python3-localizable` | ||
. .venv/bin/activate && pip install git+https://github.com/Amr-Nash/python-localizable.git@15d3bf2 | ||
. .venv/bin/activate && pip install openedx-atlas==0.6.0 | ||
translation_requirements: | ||
pip install -r i18n_scripts/requirements.txt | ||
|
||
pull_translations: clean_translations_temp_directory create_virtual_env | ||
. .venv/bin/activate && atlas pull $(ATLAS_OPTIONS) translations/openedx-app-ios/I18N:I18N | ||
. .venv/bin/activate && python i18n_scripts/translation.py --split | ||
pull_translations: clean_translations_temp_directory | ||
atlas pull $(ATLAS_OPTIONS) translations/openedx-app-ios/I18N:I18N | ||
python i18n_scripts/translation.py --split | ||
make clean_translations_temp_directory | ||
|
||
|
||
extract_translations: clean_translations_temp_directory create_virtual_env | ||
. .venv/bin/activate && python i18n_scripts/translation.py --combine | ||
extract_translations: clean_translations_temp_directory | ||
python i18n_scripts/translation.py --combine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# TODO: Publish new version on pypi as `python3-localizable` https://github.com/chrisballinger/python-localizable/pull/4 | ||
https://github.com/Amr-Nash/python-localizable/archive/15d3bf2466d0de1a826d3f0ff1f365b0c1910f56.zip | ||
openedx-atlas==0.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters