...
Go to the https://github.com/openedx/openedx-translations repository and ensure it has the proper release branch e.g. you/test/z.1
open.release/zebrawood.master
.
6b Clone the openedx-translations Transifex project
Create a new Transifex project:
openedx-translations-zebrawood
.Add all the languages from the
openex-translatiosn
Transifex project.
6c Configure the GitHub Transifex App
...
Go to the Zebrawood Transifex project (
openedx-translations-zebrawood
) configuration settingsIn the Integrations tab, click on the GitHub App integration “Manage” “Install” button
Click on the three dots
...
menu → the Settings buttonConfigure the project integrations settings from the main/master project (https://github.apps.transifex.com/projects/o:open-edx:p:openedx-translations/openedx/openedx-translations ):
Select repo step:
Selected repository: openedx/openedx-Allow the integration
Grant permission to your account
Grant permission to the
openedx/openedx-translations
repository
Continue the wizard to configure the project integrations to the following:
Select repo step:
Selected repository:
openedx/openedx-translations
Selected branch: Set it to the release branch e.g.
open.release/zebrawood.master
Select files step:
Add a Set the path to your YAML configuration file : to
transifex.yml
Sync content step:
PULL CONTENT:
Fetch content automatically
PUSH CONTENT:
100% reviewed
Set “How would you like Transifex to push translations to GitHub?” to
Create a Pull Request
andNo grouping
Add a prefix to the commit message:
chore:
Click on the Update Settings button
Wait for the sync to complete. It takes about an hour.
☑️ Ensure that all the resources has been added.
6d Update the Transifex resources names and tags
The GitHub Transifex App integeration puts an inconvenient names for resources like "translations..frontend-app-something..src-i18n-transifex-input--main"
instead of "frontend-app-something"
.
This can be fixed with the following command locally:
Code Block |
---|
git clone https://github.com/openedx/openedx-translations.git
cd openedx-translations
mkvirtualenv openedx-translations
pip install -r requirements/requirements.txt
# Dry run the name fix
make TRANSIFEX_PROJECT_SLUG='openedx-translations-zebrawood' fix_transifex_resource_names_dry_run
# If runs without errors, run the actual command:
make TRANSIFEX_PROJECT_SLUG='openedx-translations-zebrawood' fix_transifex_resource_names |
🎁 Tagging a release or release candidate (Tagging Numbered Releases)
...