Page MenuHomePhabricator

Convert Translate to PSR-4
Open, MediumPublic

Description

Manually keeping autoloader class names up to date time consuming and unnecessary burden. Additionally it bloats extensions.json which can get thousands of lines long. Replacing the autoloader section with simple PSR-4 declaration makes it shorter.

Translate is mostly split into directories with some misc files here and there that need special consideration, so this should be relatively straighforward.

Slightly more complicated is to not break other code using Translate's classes, mainly TranslateSVG and CentralNotice come to my mind.

Event Timeline

Nikerabbit triaged this task as Medium priority.Apr 26 2018, 2:38 PM
Nikerabbit updated the task description. (Show Details)
Vvjjkkii renamed this task from Convert Translate to PSR-4 to l5daaaaaaa.Jul 1 2018, 1:13 AM
Vvjjkkii raised the priority of this task from Medium to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
Yann renamed this task from l5daaaaaaa to Convert Translate to PSR-4.Jul 1 2018, 12:06 PM
Yann lowered the priority of this task from High to Medium.
Yann updated the task description. (Show Details)
Yann added a subscriber: Aklapper.

Change 724782 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] TranslationAid: Move into namespace

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

Change 725017 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] ApiTranslationAids: Move to namespace

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

Change 724782 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] TranslationAid: Move into namespace

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

Change 725017 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] ApiTranslationAids: Move to namespace

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

Change 735936 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] Move StringMangler & StringMatcher to namespace

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

Change 736194 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] ArrayFlattener: Add strict types

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

Change 736202 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] ArrayFlattener: Move to namespace

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

Change 736229 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] TranslateReplaceTitle: Move to appropriate namespace

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

Change 735936 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Move StringMangler & StringMatcher to namespace

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

Change 736194 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] ArrayFlattener: Add strict types

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

Change 736202 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] ArrayFlattener: Move to namespace

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

Change 736229 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] TranslateReplaceTitle: Move to appropriate namespace

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