diff --git a/.tx/config b/.tx/config deleted file mode 100644 index 03c796f..0000000 --- a/.tx/config +++ /dev/null @@ -1,8 +0,0 @@ -[main] -host = https://www.transifex.com - -[xblocks.xblock-google-drive] -source_file = google_drive/translations/en/LC_MESSAGES/text.po -file_filter = google_drive/translations//LC_MESSAGES/text.po -source_lang = en -type = PO diff --git a/Makefile b/Makefile index cd7cde6..50b46cf 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 diff --git a/README.rst b/README.rst index 741915b..2fed165 100644 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/google_drive/conf/locale/config.yaml b/google_drive/conf/locale/config.yaml index 1e7adfd..60edc58 100644 --- a/google_drive/conf/locale/config.yaml +++ b/google_drive/conf/locale/config.yaml @@ -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 - diff --git a/requirements/ci.txt b/requirements/ci.txt index b4014ee..f4eb155 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -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 diff --git a/requirements/dev.in b/requirements/dev.in index c679bb8..11aed93 100644 --- a/requirements/dev.in +++ b/requirements/dev.in @@ -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 diff --git a/requirements/dev.txt b/requirements/dev.txt index 4904d1b..e5ed58b 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index 0e88226..44c48d9 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -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 diff --git a/requirements/pip.txt b/requirements/pip.txt index dfa2b77..6665603 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -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 diff --git a/requirements/quality.txt b/requirements/quality.txt index 4904d1b..e5ed58b 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/requirements/test.txt b/requirements/test.txt index 50cdbe4..0201330 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -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 @@ -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 @@ -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 @@ -101,7 +99,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 @@ -109,7 +107,7 @@ packaging==23.2 # 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 @@ -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 @@ -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