Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: remove Transifex calls for FC-0012 - OEP-58 #73

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

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
14 changes: 1 addition & 13 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,9 @@ fs-s3fs==1.1.1
# via
# openedx-django-pyfs
# xblock-sdk
gitdb==4.0.11
# via gitpython
gitpython==3.1.42
# via transifex-client
idna==3.6
# via requests
importlib-metadata==7.0.1
importlib-metadata==7.0.2
# via build
iniconfig==2.0.0
# via pytest
Expand Down Expand Up @@ -198,7 +194,6 @@ python-slugify==4.0.1
# via
# code-annotations
# cookiecutter
# transifex-client
pytz==2024.1
# via
# django
Expand All @@ -214,7 +209,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 +224,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,8 +241,6 @@ 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.10.0
Expand All @@ -264,7 +253,6 @@ urllib3==1.26.18
# via
# botocore
# requests
# transifex-client
web-fragments==2.1.0
# via
# xblock
Expand Down
2 changes: 1 addition & 1 deletion requirements/django.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
django==3.2.24
django==3.2.25
2 changes: 1 addition & 1 deletion requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build==1.0.3
# via pip-tools
click==8.1.7
# via pip-tools
importlib-metadata==7.0.1
importlib-metadata==7.0.2
# via build
packaging==23.2
# via build
Expand Down
14 changes: 1 addition & 13 deletions requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,9 @@ fs-s3fs==1.1.1
# via
# openedx-django-pyfs
# xblock-sdk
gitdb==4.0.11
# via gitpython
gitpython==3.1.42
# via transifex-client
idna==3.6
# via requests
importlib-metadata==7.0.1
importlib-metadata==7.0.2
# via build
iniconfig==2.0.0
# via pytest
Expand Down Expand Up @@ -198,7 +194,6 @@ python-slugify==4.0.1
# via
# code-annotations
# cookiecutter
# transifex-client
pytz==2024.1
# via
# django
Expand All @@ -214,7 +209,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 +224,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,8 +241,6 @@ 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.10.0
Expand All @@ -264,7 +253,6 @@ urllib3==1.26.18
# via
# botocore
# requests
# transifex-client
web-fragments==2.1.0
# via
# xblock
Expand Down
17 changes: 2 additions & 15 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,9 @@ fs-s3fs==1.1.1
# via
# openedx-django-pyfs
# xblock-sdk
gitdb==4.0.11
# via gitpython
gitpython==3.1.42
# via transifex-client
idna==3.6
# via requests
importlib-metadata==7.0.1
importlib-metadata==7.0.2
# via build
iniconfig==2.0.0
# via pytest
Expand Down Expand Up @@ -142,9 +138,7 @@ python-dateutil==2.8.2
# botocore
# xblock
python-slugify==4.0.1
# via
# cookiecutter
# transifex-client
# via cookiecutter
pytz==2024.1
# via
# django
Expand All @@ -158,7 +152,6 @@ requests==2.31.0
# via
# -r requirements/base.in
# cookiecutter
# transifex-client
# xblock-sdk
rich==13.7.0
# via cookiecutter
Expand All @@ -173,9 +166,6 @@ six==1.16.0
# fs
# fs-s3fs
# python-dateutil
# transifex-client
smmap==5.0.1
# via gitdb
sqlparse==0.4.4
# via django
text-unidecode==1.3
Expand All @@ -187,8 +177,6 @@ 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.10.0
Expand All @@ -199,7 +187,6 @@ urllib3==1.26.18
# via
# botocore
# requests
# transifex-client
web-fragments==2.1.0
# via
# xblock
Expand Down
Loading