Gerrit/L10n-bot

This page explains how to enable translation updates via translatewiki.net on projects hosted in Wikimedia Gerrit. For general guidance how to get a project set up on translatewiki.net, see setup of a new project on translatewiki.net.

Repository access
File a task in Phabricator using this [ https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?title=Give%20access%20to%20l10n-bot&description=Please%20check%20and%20grant%20the%20following%20access%20rights%20to%20the%20repository%20XYX%20if%20missing:%0A*%20l10n-bot%20group:%20CR%2B2%0A*%20l10n-bot-watcher%20group:%20V%2B2,%20Submit,%20Abandon,%20Remove%20reviewer&tags=Gerrit,Gerrit-Privilege-Requests template].

Translation checks
File a task in Phabricator using this [ https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?title=Please%20add%20mediawiki-i18n-check-docker%20to%20repository%20XYZ&description=Please%20add%20mediawiki-i18n-check-docker%20to%20gate-and-submit-l10n%20for%20repository%20XYZ&tags=Continuous-Integration-Config template] or submit a patch to integration/config repository in gerrit: You need to change section for your repository in /zuul/layout.yaml in integration/config and add these rows:

In case there is no section for the gerrit repository (which means there is no CI yet), they should add something like this.

Example commit: c/integration/config/+/467329

translatewiki.net Gerrit repository
All MediaWiki skins and extensions are already set up on the translatewiki.net end to attempt to auto-merge i18n patches. However, if you're adding translation updates to a different kind of repo, you will need to edit repoconfig.yaml file in the translatewiki.net Gerrit repository to enable automerge there (example commit).