Wikimedia

Migrate Phabricator to the new validator framework

Translatewiki.net is a translation community and a localisation platform for free and open source projects. It started out with localisation for MediaWiki. You can read more about it here.

We were previously using Message checkers to improve the quality of the translations but have since developed the new validator) framework. We want to get rid of the old message checkers, and replace them with the new validator framework. Validators differ between projects.

Each project has configurations located here. Configurations inform Translatwiki.net what type of file format the project uses for translations, and how it should be stored / presented on Translatewiki.net. They also contain the message checker and validator configuration.

Current configuration for the project can be found here. We need to do the following,

  • A validator to replicate - wikiParameterCheck. We can add a custom validator and use that instead of defining a regex everytime. This should be made insertable but not enforced. A similar validator is needed for Huggle.
  • Replace braceBalanceCheck with BraceBalanceValidator, that should be made insertable but not enforced.

Example patch: https://gerrit.wikimedia.org/r/c/translatewiki/+/549930

Task tags

  • yaml
  • php

Students who completed this task

Crutishnyk

Task type

  • code Code
close

2019