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 committed Feb 19, 2024
1 parent a86f8ce commit 001c541
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 169 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

10 changes: 6 additions & 4 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# make upgrade
Expand Down Expand Up @@ -66,11 +66,13 @@ 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
# via asgiref
urllib3==2.2.0
# via requests
urllib3==1.26.18
# via
# -c requirements/constraints.txt
# requests
virtualenv==20.25.0
# via tox
2 changes: 2 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@

# TODO: Many pinned dependencies should be unpinned and/or moved to this constraints file.
pylint==2.12.2

urllib3<2.0.0 # avoid dependencies conflicts between botocore and requests
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
45 changes: 13 additions & 32 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# make upgrade
Expand All @@ -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.44
# via fs-s3fs
botocore==1.34.39
botocore==1.34.44
# via
# boto3
# s3transfer
Expand Down Expand Up @@ -50,9 +50,7 @@ code-annotations==1.6.0
cookiecutter==2.5.0
# via xblock-sdk
coverage[toml]==7.4.1
# via
# coverage
# pytest-cov
# via pytest-cov
ddt==1.7.1
# via -r requirements/test.in
diff-cover==8.0.3
Expand Down Expand Up @@ -81,14 +79,8 @@ fs-s3fs==1.1.1
# via
# openedx-django-pyfs
# xblock-sdk
gitdb==4.0.11
# via gitpython
gitpython==3.1.41
# via transifex-client
idna==3.6
# via requests
importlib-metadata==7.0.1
# via build
iniconfig==2.0.0
# via pytest
isort==5.13.2
Expand Down Expand Up @@ -130,7 +122,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 +133,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 +171,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.1
# via
# -r requirements/test.in
# pytest-cov
Expand All @@ -194,11 +188,10 @@ python-dateutil==2.8.2
# arrow
# botocore
# xblock
python-slugify==4.0.1
python-slugify==8.0.4
# via
# code-annotations
# cookiecutter
# transifex-client
pytz==2024.1
# via
# django
Expand All @@ -214,7 +207,6 @@ requests==2.31.0
# -r requirements/base.in
# caniusepython3
# cookiecutter
# transifex-client
# xblock-sdk
rich==13.7.0
# via cookiecutter
Expand All @@ -230,9 +222,6 @@ six==1.16.0
# fs
# fs-s3fs
# python-dateutil
# transifex-client
smmap==5.0.1
# via gitdb
snowballstemmer==2.2.0
# via pydocstyle
sqlparse==0.4.4
Expand All @@ -250,21 +239,15 @@ tomli==2.0.1
# pip-tools
# pyproject-hooks
# pytest
transifex-client==0.14.4
# via -r requirements/dev.in
types-python-dateutil==2.8.19.20240106
# via arrow
typing-extensions==4.9.0
# via
# asgiref
# astroid
# pylint
# rich
# via asgiref
urllib3==1.26.18
# via
# -c requirements/constraints.txt
# botocore
# requests
# transifex-client
web-fragments==2.1.0
# via
# xblock
Expand All @@ -285,8 +268,6 @@ xblock-sdk==0.7.0
# via
# -r requirements/dev.in
# -r requirements/test.in
zipp==3.17.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
12 changes: 5 additions & 7 deletions requirements/pip-tools.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# make upgrade
Expand All @@ -8,23 +8,21 @@ build==1.0.3
# via pip-tools
click==8.1.7
# via pip-tools
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
# pip-tools
# pyproject-hooks
wheel==0.42.0
# via pip-tools
zipp==3.17.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
4 changes: 2 additions & 2 deletions requirements/pip.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# make upgrade
Expand All @@ -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.0
# via -r requirements/pip.in
Loading

0 comments on commit 001c541

Please sign in to comment.