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/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 e5ed58b..e969f65 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -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 @@ -198,7 +194,6 @@ python-slugify==4.0.1 # via # code-annotations # cookiecutter - # transifex-client pytz==2024.1 # via # django @@ -214,7 +209,6 @@ requests==2.31.0 # -r requirements/base.in # caniusepython3 # cookiecutter - # transifex-client # xblock-sdk rich==13.7.0 # via cookiecutter @@ -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 @@ -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 @@ -264,7 +253,6 @@ urllib3==1.26.18 # via # botocore # requests - # transifex-client web-fragments==2.1.0 # via # xblock diff --git a/requirements/django.txt b/requirements/django.txt index 7eec28f..ddab664 100644 --- a/requirements/django.txt +++ b/requirements/django.txt @@ -1 +1 @@ -django==3.2.24 +django==3.2.25 diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index 44c48d9..1c6a4b5 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -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 diff --git a/requirements/quality.txt b/requirements/quality.txt index e5ed58b..e969f65 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -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 @@ -198,7 +194,6 @@ python-slugify==4.0.1 # via # code-annotations # cookiecutter - # transifex-client pytz==2024.1 # via # django @@ -214,7 +209,6 @@ requests==2.31.0 # -r requirements/base.in # caniusepython3 # cookiecutter - # transifex-client # xblock-sdk rich==13.7.0 # via cookiecutter @@ -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 @@ -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 @@ -264,7 +253,6 @@ urllib3==1.26.18 # via # botocore # requests - # transifex-client web-fragments==2.1.0 # via # xblock diff --git a/requirements/test.txt b/requirements/test.txt index 0201330..93b6ceb 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -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 @@ -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 @@ -158,7 +152,6 @@ requests==2.31.0 # via # -r requirements/base.in # cookiecutter - # transifex-client # xblock-sdk rich==13.7.0 # via cookiecutter @@ -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 @@ -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 @@ -199,7 +187,6 @@ urllib3==1.26.18 # via # botocore # requests - # transifex-client web-fragments==2.1.0 # via # xblock