Migrate Wiki Ed Dashboard 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,
- Replace
rubyVariableCheck
withInsertableRubyVariable
validator. - An insertable suggester for
/\%{[^}]+}|%s/
(Variable eg:// %{title}
). - An insertable suggester for
/&(?:[a-z]+|#\d+);/
(Variable eg:
).
Example patch: https://gerrit.wikimedia.org/r/c/translatewiki/+/550918