Page MenuHomePhabricator

Refactor Translate $1 Insertable classes
Closed, ResolvedPublic

Description

Several translatewiki projects use $1, $2, $3, etc. as a parameter format. They should all use the same Insertable class, and it should be in the Translate extension rather than in the translatewiki repository.

Some projects, like MediaWiki and its extensions, use $1 and also {{GENDER}}, {{PLURAL}}, $letters (for tvar), etc.
If it's possible to put $1 in one class and the other insertables in other classes and then use them all, it would be nice, but not a requirement for this task. It's enough to get all the projects that need only $1 to use the same class.

@Aklapper, this can be done in Google-Code-In-2016.

Event Timeline

This task is a bit difficult to understand. Can you put in an example please ?

Change 329803 had a related patch set uploaded (by Sn1per):
Insertables suggester class for numerical parameters

https://gerrit.wikimedia.org/r/329803

Change 329806 had a related patch set uploaded (by Sn1per):
Replace redundant numeric parameter insertables suggesters

https://gerrit.wikimedia.org/r/329806

Change 329803 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Insertables suggester class for $1, $2 and allow multiple suggesters

https://gerrit.wikimedia.org/r/329803

Change 329806 merged by jenkins-bot:
[translatewiki@master] Replace redundant numeric parameter insertables suggesters

https://gerrit.wikimedia.org/r/329806

Nikerabbit removed a project: Patch-For-Review.

Apologies for review taking too long.