Skip to content

Commit

Permalink
chore: push_translations no longer exists as of OEP-58
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithEmad committed Oct 31, 2024
1 parent 7864f08 commit 6e6ea44
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 30 deletions.
5 changes: 1 addition & 4 deletions cookiecutter-django-app/{{cookiecutter.repo_name}}/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: clean clean_tox compile_translations coverage diff_cover docs dummy_translations \
extract_translations fake_translations help pii_check pull_translations push_translations \
extract_translations fake_translations help pii_check pull_translations \
quality requirements selfcheck test test-all upgrade validate install_transifex_client

.DEFAULT_GOAL := help
Expand Down Expand Up @@ -106,9 +106,6 @@ pull_translations:
@echo "Translations have been pulled via Atlas and compiled."
endif

push_translations: ## push source translation files (.po) from Transifex
tx push -s

dummy_translations: ## generate dummy translation (.po) files
cd {{cookiecutter.app_name}} && i18n_tool dummy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ The `make` targets listed below can be used to push or pull translations.
- Description
* - pull_translations
- Pull translations from Transifex
* - push_translations
- Push source translation files to Transifex

Fake Translations
*****************
Expand Down
5 changes: 1 addition & 4 deletions cookiecutter-django-ida/{{cookiecutter.repo_name}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
test coverage isort_check isort style lint quality pii_check validate \
migrate html_coverage upgrade extract_translation dummy_translations \
compile_translations fake_translations pull_translations \
push_translations start-devstack open-devstack pkg-devstack \
start-devstack open-devstack pkg-devstack \
detect_changed_source_translations validate_translations check_keywords \
install_transifex_client

Expand Down Expand Up @@ -142,9 +142,6 @@ pull_translations:
@echo "Translations have been pulled via Atlas and compiled."
endif

push_translations: ## push source translation files (.po) from Transifex
tx push -s

start-devstack: ## run a local development copy of the server
docker-compose --x-networking up

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ The `make` targets listed below can be used to push or pull translations.
- Description
* - pull_translations
- Pull translations from Transifex
* - push_translations
- Push source translation files to Transifex

Fake Translations
*****************
Expand Down
5 changes: 1 addition & 4 deletions cookiecutter-xblock/{{cookiecutter.repo_name}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.PHONY: dev.clean dev.build dev.run upgrade help requirements
.PHONY: extract_translations compile_translations
.PHONY: detect_changed_source_translations dummy_translations build_dummy_translations
.PHONY: validate_translations pull_translations push_translations install_transifex_clients
.PHONY: validate_translations pull_translations install_transifex_clients

REPO_NAME := {{cookiecutter.repo_name}}
PACKAGE_NAME := {{cookiecutter.package_name}}
Expand Down Expand Up @@ -86,9 +86,6 @@ validate_translations: build_dummy_translations detect_changed_source_translatio
pull_translations: ## pull translations from transifex
cd $(PACKAGE_NAME) && i18n_tool transifex pull

push_translations: extract_translations ## push translations to transifex
cd $(PACKAGE_NAME) && i18n_tool transifex push

install_transifex_client: ## Install the Transifex client
# Instaling client will skip CHANGELOG and LICENSE files from git changes
# so remind the user to commit the change first before installing client.
Expand Down
12 changes: 0 additions & 12 deletions cookiecutter-xblock/{{cookiecutter.repo_name}}/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,6 @@ The previous command will compile ``.po`` files using
After compiling the ``.po`` file(s), ``django-statici18n`` is used to create language specific catalogs. See
``django-statici18n`` `documentation <https://django-statici18n.readthedocs.io/en/latest/>`_ for more information.

To upload translations to transifex use the follow Make target:

.. code-block:: bash
make push_translations
See `config instructions <https://github.com/openedx/i18n-tools#transifex-commands>`_ for information on how to set up your
transifex credentials.

See `transifex documentation <https://docs.transifex.com/integrations/django>`_ for more details about integrating
django with transifex.

**Note:** The ``dev.run`` make target will automatically compile any translations.

**Note:** To check if the source translation files (``.po``) are up-to-date run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ The `make` targets listed below can be used to push or pull translations.
- Description
* - pull_translations
- Pull translations from Transifex
* - push_translations
- Push source translation files to Transifex

Fake Translations
*****************
Expand Down

0 comments on commit 6e6ea44

Please sign in to comment.