Page MenuHomePhabricator

Allow to add exclude attribute in <language /> tag
Closed, InvalidPublic

Description

Problem

Currently, there is no way to exclude specific languages from <language /> output.

Solution

There should be an option like <language exclude="ru,bn,hi" /> to exclude the specific languages.

PageTranslationHooks.php's function languages take $params parameter. Catch exclude attribute from the array $params then explode it. Then check in foreach.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jayprakash12345 renamed this task from Add exclude parameter in <language /> tag to Allow to add exclude attribute in <language /> tag.Aug 26 2020, 7:27 AM

Currently, there is no way to exclude specific languages from <language /> output.

@Jayprakash12345: Please provide a use case when and why this would be useful, to avoid an XY problem.

Nikerabbit subscribed.

@Jayprakash12345 Feel free to reopen if you provide the use case. For now I am closing this.