From 60d1dc6608351f3422e0fdc349d9169696cc2428 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Thu, 6 Sep 2018 12:58:08 +0300 Subject: [PATCH] fixup --- README.md | 18 ++++++++++++------ requirements-dev.txt | 3 +-- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d4e9934..6c07885 100644 --- a/README.md +++ b/README.md @@ -15,23 +15,29 @@ Notes: For information about working with translations, see the [Internationalization Support](http://edx.readthedocs.io/projects/xblock-tutorial/en/latest/edx_platform/edx_lms.html#internationalization-support) section of the [Open edX XBlock Tutorial](https://xblock-tutorial.readthedocs.io/en/latest/). -### Working with POEditor + +### Working with Transifex Prepare your environment: ``` -$ mkvirtualenv oppia-xblock +$ mkvirtualenv poll-xblock $ make requirements ``` -Also ensure that the [POEditor client](https://github.com/lukin0110/poeditor-client) has the correct API access token -by setting the environment varialbe `POEDITOR_TOKEN` to the value from your [account settings](https://poeditor.com/account/api). +Also ensure that the [Transifex client has the proper authentication](https://docs.transifex.com/client/init) +in the `~/.transifexrc` file. -Push new strings to POEditor: +Push new strings to Transifex: ``` $ make push_translations ``` -To get the latest translations from POEditor: +To get the latest translations from Transifex: ``` $ make pull_translations ``` + +For testing purposes it's faster to avoid Transifex and work on dummy Esperanto translations: +``` +$ make build_dummy_translations +``` diff --git a/requirements-dev.txt b/requirements-dev.txt index be1037c..92be60a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,6 +3,5 @@ Django==1.11 django-statici18n==1.8.2 Babel==1.3 -# TODO: Revert back to `poeditor-client==0.0.5`, once it's published on PyPI -git+https://github.com/lukin0110/poeditor-client@v0.0.5#egg=poeditor-client==0.0.5 +transifex-client==0.12.1 edx-i18n-tools==0.4.5