Skip to content

Commit

Permalink
feat!: remove Transifex calls for FC-0012 - OEP-58
Browse files Browse the repository at this point in the history
  • Loading branch information
shadinaif authored and OmarIthawi committed Mar 12, 2024
1 parent a86f8ce commit 059f445
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 108 deletions.
8 changes: 0 additions & 8 deletions .tx/config

This file was deleted.

9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build_dummy_translations clean compile_translations coverage detect_changed_source_translations docs dummy_translations extract_translations help pull_translations push_translations quality requirements selfcheck test test-all upgrade validate validate_translations
.PHONY: build_dummy_translations clean compile_translations coverage detect_changed_source_translations docs dummy_translations extract_translations help quality requirements selfcheck test test-all upgrade validate validate_translations

.DEFAULT_GOAL := help

Expand Down Expand Up @@ -101,13 +101,6 @@ compile_translations: ## compile translation files, outputting .mo files for eac
detect_changed_source_translations: ## Determines if the source translation files are up-to-date, otherwise exit with a non-zero code.
i18n_tool changed

pull_translations: ## pull translations from Transifex
i18n_tool transifex pull
make compile_translations

push_translations: extract_translations ## push source translation files (.po) to Transifex
i18n_tool transifex push

dummy_translations: ## generate dummy translation (.po) files
i18n_tool dummy

Expand Down
30 changes: 0 additions & 30 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,36 +77,6 @@ might also have to prepend ``PYTHONPATH=".:/path/to/xblock"`` to the
command above. (``/path/to/xblock`` is the path to the xblock-sdk, where
the workbench resides).

Working with translations
-------------------------

For information about working with translations, see the `Internationalization Support`_ section of
the `Open edX XBlock Tutorial`_.

Prepare your virtualenv and ensure that the `Transifex authentication file`_
(``~/.transifexrc``) is properly set up.

Push new strings to Transifex:

.. code:: bash
$ make push_translations
To get the latest translations from Transifex:

.. code:: bash
$ make pull_translations
For testing purposes it's faster to avoid Transifex and work on dummy Esperanto translations:

.. code:: bash
$ make build_dummy_translations
.. _Internationalization Support: http://edx.readthedocs.io/projects/xblock-tutorial/en/latest/edx_platform/edx_lms.html#internationalization-support
.. _Open edX XBlock Tutorial: https://xblock-tutorial.readthedocs.io/en/latest/
.. _Transifex authentication file: https://openedx.atlassian.net/wiki/display/OpenOPS/Running+Fullstack
Expand Down
13 changes: 0 additions & 13 deletions google_drive/conf/locale/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,7 @@

locales:
- en # English - Source Language
- eo # Esperanto
- ar # Arabic
- es_419 # Spanish (Latin America)
- ja_JP # Japanese
- fr # French
- fr_CA # French (Canada)
- he # Hebrew
- hi # Hindi
- ko_KR # Korean (Korea)
- pt_BR # Portuguese (Brazil)
- ru # Russian
- zh_CN # Chinese (China)

# The locales used for fake-accented English, for testing.
dummy_locales:
- eo

8 changes: 4 additions & 4 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ tomli==2.0.1
# via
# pyproject-api
# tox
tox==4.12.1
tox==4.13.0
# via -r requirements/ci.in
typing-extensions==4.9.0
typing-extensions==4.10.0
# via asgiref
urllib3==2.2.0
urllib3==2.2.1
# via requests
virtualenv==20.25.0
virtualenv==20.25.1
# via tox
1 change: 0 additions & 1 deletion requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@

diff-cover # Changeset diff test coverage
pip-tools # Requirements file management
transifex-client # Client for Transifex.com to push and pull translation files
xblock-sdk # XBlock SDK to render Django templates properly
pypng
28 changes: 14 additions & 14 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ backports-functools-lru-cache==2.0.0
# via caniusepython3
binaryornot==0.4.4
# via cookiecutter
boto3==1.34.39
boto3==1.34.49
# via fs-s3fs
botocore==1.34.39
botocore==1.34.49
# via
# boto3
# s3transfer
Expand All @@ -47,12 +47,10 @@ click-log==0.4.0
# via edx-lint
code-annotations==1.6.0
# via edx-lint
cookiecutter==2.5.0
cookiecutter==2.6.0
# via xblock-sdk
coverage[toml]==7.4.1
# via
# coverage
# pytest-cov
coverage[toml]==7.4.3
# via pytest-cov
ddt==1.7.1
# via -r requirements/test.in
diff-cover==8.0.3
Expand Down Expand Up @@ -83,7 +81,7 @@ fs-s3fs==1.1.1
# xblock-sdk
gitdb==4.0.11
# via gitpython
gitpython==3.1.41
gitpython==3.1.42
# via transifex-client
idna==3.6
# via requests
Expand Down Expand Up @@ -130,7 +128,7 @@ mock==5.1.0
# via -r requirements/test.in
nose==1.3.7
# via -r requirements/test.in
openedx-django-pyfs==3.4.1
openedx-django-pyfs==3.5.0
# via xblock
packaging==23.2
# via
Expand All @@ -141,7 +139,7 @@ path==16.10.0
# via edx-i18n-tools
pbr==6.0.0
# via stevedore
pip-tools==7.3.0
pip-tools==7.4.0
# via -r requirements/dev.in
platformdirs==4.2.0
# via pylint
Expand Down Expand Up @@ -179,8 +177,10 @@ pypng==0.20220715.0
# -r requirements/dev.in
# xblock-sdk
pyproject-hooks==1.0.0
# via build
pytest==8.0.0
# via
# build
# pip-tools
pytest==8.0.2
# via
# -r requirements/test.in
# pytest-cov
Expand Down Expand Up @@ -237,7 +237,7 @@ snowballstemmer==2.2.0
# via pydocstyle
sqlparse==0.4.4
# via django
stevedore==5.1.0
stevedore==5.2.0
# via code-annotations
text-unidecode==1.3
# via python-slugify
Expand All @@ -254,7 +254,7 @@ transifex-client==0.14.4
# via -r requirements/dev.in
types-python-dateutil==2.8.19.20240106
# via arrow
typing-extensions==4.9.0
typing-extensions==4.10.0
# via
# asgiref
# astroid
Expand Down
6 changes: 4 additions & 2 deletions requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ importlib-metadata==7.0.1
# via build
packaging==23.2
# via build
pip-tools==7.3.0
pip-tools==7.4.0
# via -r requirements/pip-tools.in
pyproject-hooks==1.0.0
# via build
# via
# build
# pip-tools
tomli==2.0.1
# via
# build
Expand Down
2 changes: 1 addition & 1 deletion requirements/pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ wheel==0.42.0
# The following packages are considered to be unsafe in a requirements file:
pip==24.0
# via -r requirements/pip.in
setuptools==69.0.3
setuptools==69.1.1
# via -r requirements/pip.in
28 changes: 14 additions & 14 deletions requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ backports-functools-lru-cache==2.0.0
# via caniusepython3
binaryornot==0.4.4
# via cookiecutter
boto3==1.34.39
boto3==1.34.49
# via fs-s3fs
botocore==1.34.39
botocore==1.34.49
# via
# boto3
# s3transfer
Expand All @@ -47,12 +47,10 @@ click-log==0.4.0
# via edx-lint
code-annotations==1.6.0
# via edx-lint
cookiecutter==2.5.0
cookiecutter==2.6.0
# via xblock-sdk
coverage[toml]==7.4.1
# via
# coverage
# pytest-cov
coverage[toml]==7.4.3
# via pytest-cov
ddt==1.7.1
# via -r requirements/test.in
diff-cover==8.0.3
Expand Down Expand Up @@ -83,7 +81,7 @@ fs-s3fs==1.1.1
# xblock-sdk
gitdb==4.0.11
# via gitpython
gitpython==3.1.41
gitpython==3.1.42
# via transifex-client
idna==3.6
# via requests
Expand Down Expand Up @@ -130,7 +128,7 @@ mock==5.1.0
# via -r requirements/test.in
nose==1.3.7
# via -r requirements/test.in
openedx-django-pyfs==3.4.1
openedx-django-pyfs==3.5.0
# via xblock
packaging==23.2
# via
Expand All @@ -141,7 +139,7 @@ path==16.10.0
# via edx-i18n-tools
pbr==6.0.0
# via stevedore
pip-tools==7.3.0
pip-tools==7.4.0
# via -r requirements/dev.in
platformdirs==4.2.0
# via pylint
Expand Down Expand Up @@ -179,8 +177,10 @@ pypng==0.20220715.0
# -r requirements/dev.in
# xblock-sdk
pyproject-hooks==1.0.0
# via build
pytest==8.0.0
# via
# build
# pip-tools
pytest==8.0.2
# via
# -r requirements/test.in
# pytest-cov
Expand Down Expand Up @@ -237,7 +237,7 @@ snowballstemmer==2.2.0
# via pydocstyle
sqlparse==0.4.4
# via django
stevedore==5.1.0
stevedore==5.2.0
# via code-annotations
text-unidecode==1.3
# via python-slugify
Expand All @@ -254,7 +254,7 @@ transifex-client==0.14.4
# via -r requirements/dev.in
types-python-dateutil==2.8.19.20240106
# via arrow
typing-extensions==4.9.0
typing-extensions==4.10.0
# via
# asgiref
# astroid
Expand Down
26 changes: 13 additions & 13 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ asgiref==3.7.2
# via django
binaryornot==0.4.4
# via cookiecutter
boto3==1.34.39
boto3==1.34.49
# via fs-s3fs
botocore==1.34.39
botocore==1.34.49
# via
# boto3
# s3transfer
Expand All @@ -32,12 +32,10 @@ click==8.1.7
# via
# cookiecutter
# pip-tools
cookiecutter==2.5.0
cookiecutter==2.6.0
# via xblock-sdk
coverage[toml]==7.4.1
# via
# coverage
# pytest-cov
coverage[toml]==7.4.3
# via pytest-cov
ddt==1.7.1
# via -r requirements/test.in
diff-cover==8.0.3
Expand All @@ -63,7 +61,7 @@ fs-s3fs==1.1.1
# xblock-sdk
gitdb==4.0.11
# via gitpython
gitpython==3.1.41
gitpython==3.1.42
# via transifex-client
idna==3.6
# via requests
Expand Down Expand Up @@ -101,15 +99,15 @@ mock==5.1.0
# via -r requirements/test.in
nose==1.3.7
# via -r requirements/test.in
openedx-django-pyfs==3.4.1
openedx-django-pyfs==3.5.0
# via xblock
packaging==23.2
# via
# build
# pytest
path==16.10.0
# via edx-i18n-tools
pip-tools==7.3.0
pip-tools==7.4.0
# via -r requirements/dev.in
pluggy==1.4.0
# via
Expand All @@ -126,8 +124,10 @@ pypng==0.20220715.0
# -r requirements/dev.in
# xblock-sdk
pyproject-hooks==1.0.0
# via build
pytest==8.0.0
# via
# build
# pip-tools
pytest==8.0.2
# via
# -r requirements/test.in
# pytest-cov
Expand Down Expand Up @@ -191,7 +191,7 @@ transifex-client==0.14.4
# via -r requirements/dev.in
types-python-dateutil==2.8.19.20240106
# via arrow
typing-extensions==4.9.0
typing-extensions==4.10.0
# via
# asgiref
# rich
Expand Down

0 comments on commit 059f445

Please sign in to comment.